All Packages Class Hierarchy This Package Previous Next Index
Class EVEDemo.MW.Main
java.lang.Object
|
+----EVEDemo.MW.Main
- public class Main
- extends Object
The main class in the "middleware" layer.
Here, we initialize the object structure by loading all the views from
the VKB, the ISs from the MKB. Instantiating an object of the IS class
reads the appropriate information from the DB
The RMI-support has been discontinued.
-
AliveCounter
- The Flag which will be changed by the alived user.
-
changed
- has there been a change made?
-
DBManagers
- a vector of DBManager objects to connect to physical databases
-
DEBUG
- Debug flag
-
expTime
- The Global variable to terminate the process.
-
lcount
- XIN: Please explain or remove
count total local queries.
-
localDBManager
- a handle (type DBManager) for the local DB-Manager
-
mainMKB
-
the MKB object
-
mainVKB
-
the VKB object
-
mainVSA
-
the VSA object
-
props
- handle to eve.properties
-
queryEngine
- a handle to the Query Engine
-
rcount
- XIN: Please explain or remove.
count total remote queries.
-
Views
-
the vector of View objects
-
Main()
- Constructed for create Main object in the Start class.
-
addAttribute(String, String, String, String)
-
-
addRelation(String, String, Vector, Vector)
- Adds a relation by calling the appropriate method in the
MKB
-
AliveMsg()
- The current connect user will use this function to increase the counter.
-
changeAttributeName(String, String, String, String)
- Renames an attribute by calling the appropriate method in the
MKB
-
changeRelationName(String, String, String)
- Renames a relation by calling the appropriate method in the
MKB
-
createDBManager(String, String, String, String, String)
- Constructed used by MKBParser.
-
deleteAttribute(String, String, String)
- Deletes an attribute by calling the appropriate method in the
MKB.
-
deleteRelation(String, String)
- Deletes a relation by calling the appropriate method in the
MKB
-
getAllViews()
- return the collection of views.
-
getAllViewsFromVKB()
-
Get all view names from the VKB and create View objects for
each name.
-
getChangeStatus()
- Returns if there has been a capability change and resets
"changed" bit to false.
-
getCorrectDefinitionx(String)
- An attempt at fixing some RMI problem.
-
getCorrectOldDefinitionx(String)
- An attempt at fixing some RMI problem.
-
getDBManagerFromISName(String)
- searches for a DBManager from an IS name
-
getDBManagers()
- this vector contains objects of class DBManager
-
getISfromName(String)
- searches for an IS object by name
-
getLocalDBManager()
-
-
getMKB()
- returns a handle to the Main MKB
-
getMyIcon(String)
-
-
getQueryEngine()
-
-
getTable(String, String)
- Get extent of a single relation as a Table
object.
-
getViewExtent(String, boolean)
- Get Extent of a specific view.
-
getVKB()
-
-
incLcount()
- XIN: Please explain or remove
increase the lcount
-
incRcount()
- XIN: Please explain or remove.
increase the rcount
-
isISChangeRunning()
- Returns if a user is currently able to make capability changes
-
reset()
- Reset Middle Layer.
-
saveViews(Main)
- Save all Views
-
startUpdate()
- this method is used to demonstrate incremental view
maintenance and is currently not used.
DEBUG
public static final boolean DEBUG
- Debug flag
rcount
public static int rcount
- XIN: Please explain or remove.
count total remote queries.
lcount
public static int lcount
- XIN: Please explain or remove
count total local queries.
Views
private Vector Views
- the vector of View objects
DBManagers
Vector DBManagers
- a vector of DBManager objects to connect to physical databases
localDBManager
DBManager localDBManager
- a handle (type DBManager) for the local DB-Manager
mainMKB
private MKB mainMKB
- the MKB object
mainVKB
private VKB mainVKB
- the VKB object
mainVSA
private VSA mainVSA
- the VSA object
queryEngine
private QueryEngine queryEngine
- a handle to the Query Engine
changed
private boolean changed
- has there been a change made?
props
Properties props
- handle to eve.properties
expTime
public static double expTime
- The Global variable to terminate the process.
it's only used for batch mode of data update
detection. It will stores the time spend on a specific
experiments.
AliveCounter
private static int AliveCounter
- The Flag which will be changed by the alived user.
Main
public Main()
- Constructed for create Main object in the Start class.
incRcount
public static synchronized void incRcount()
- XIN: Please explain or remove.
increase the rcount
incLcount
public static synchronized void incLcount()
- XIN: Please explain or remove
increase the lcount
getMKB
public MKB getMKB()
- returns a handle to the Main MKB
getAllViewsFromVKB
private Vector getAllViewsFromVKB()
- Get all view names from the VKB and create View objects for
each name.
We construct a view object for each view name that we find in
the VKB and then instantiate it with default parameters (the
handles to InformationSources, ISs, MKB, VKB)
deleteAttribute
public boolean deleteAttribute(String isName,
String relName,
String attName)
- Deletes an attribute by calling the appropriate method in the
MKB.
- Parameters:
- isName - name of the IS the attribute is in
- relName - name of the relation the attribute is in
- attName - name of the attribute to delete
addAttribute
public boolean addAttribute(String isName,
String relName,
String attName,
String attType)
changeAttributeName
public boolean changeAttributeName(String isName,
String relName,
String attName,
String newName)
- Renames an attribute by calling the appropriate method in the
MKB
- Parameters:
- isName - name of the IS the attribute is in
- relName - name of the relation the attribute is in
- attName - name of the attribute to rename
- newName - new name of the attribute
addRelation
public boolean addRelation(String isName,
String relName,
Vector attNames,
Vector attTypes)
- Adds a relation by calling the appropriate method in the
MKB
- Parameters:
- isName - name of the IS the relation is in
- relName - name of the relation to add
- attNames - names of the attribute to add to relName
- attTypes - types of the attributes
deleteRelation
public boolean deleteRelation(String isName,
String relName)
- Deletes a relation by calling the appropriate method in the
MKB
- Parameters:
- isName - name of the IS the relation is in
- relName - name of the relation to delete
changeRelationName
public boolean changeRelationName(String isName,
String relName,
String newName)
- Renames a relation by calling the appropriate method in the
MKB
- Parameters:
- isName - name of the IS the relation is in
- relName - name of the relation to rename
- newName - new name of the relation
getISfromName
public IS getISfromName(String theIS)
- searches for an IS object by name
- Returns:
- null if IS with this name not found
getChangeStatus
public boolean getChangeStatus()
- Returns if there has been a capability change and resets
"changed" bit to false.
isISChangeRunning
public boolean isISChangeRunning()
- Returns if a user is currently able to make capability changes
reset
public void reset()
- Reset Middle Layer.
To do: change static trade-off
parameters to something more dynamic. The database is not being
reset here anymore, this is done with the separate class
"resetDB" from a shell script.
AliveMsg
public void AliveMsg()
- The current connect user will use this function to increase the counter.
getCorrectDefinitionx
public String getCorrectDefinitionx(String theViewName)
- An attempt at fixing some RMI problem. Not needed anymore?
(koeller 030799)
getCorrectOldDefinitionx
public String getCorrectOldDefinitionx(String theViewName)
- An attempt at fixing some RMI problem. Not needed anymore?
(koeller 030799)
getAllViews
public synchronized Vector getAllViews()
- return the collection of views.
if it doesn't exist yet, get it through getAllViewsFromVKB()
If it does exist, refresh the views.
koeller 030799: Added support for the QC-Module. This is a
new function aimed at selecting one of several view version
suggested by the QC-Module. The vector Views contains
views like before, but here the new "Versions" attribute (a
vector of objects of class "version") is initialized.
saveViews
public void saveViews(Main something)
- Save all Views
getViewExtent
public Table getViewExtent(String viewName,
boolean old_view_extent)
- Get Extent of a specific view. Calls the QueryEngine class.
- Parameters:
- viewName - Name of the View.
getTable
public Table getTable(String isName,
String SQL)
- Get extent of a single relation as a Table
object. this is for displaying a relation extent in the applet
- Parameters:
- isName, - SQL-query
startUpdate
public void startUpdate()
- this method is used to demonstrate incremental view
maintenance and is currently not used. Will have to be fixed
later. It's disabled now.
getMyIcon
public ImageIcon getMyIcon(String filename)
createDBManager
public DBManager createDBManager(String ISName,
String sDBType,
String sDBURL,
String sUsername,
String sPassword)
- Constructed used by MKBParser. It used to create an IS object with
associated DBManager.
getDBManagerFromISName
public DBManager getDBManagerFromISName(String theIS)
- searches for a DBManager from an IS name
- Returns:
- null if IS with this name not found
getDBManagers
public Vector getDBManagers()
- this vector contains objects of class DBManager
getLocalDBManager
public DBManager getLocalDBManager()
getVKB
public VKB getVKB()
getQueryEngine
public QueryEngine getQueryEngine()
All Packages Class Hierarchy This Package Previous Next Index