|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
JMX Interface of the C-JDBC Controller.
| Method Summary | |
void |
addDriver(byte[] bytes)
Reads a driver binary data |
java.lang.String |
addDriver(java.lang.String filename)
Reads a driver JAR file. |
void |
addVirtualDatabases(java.lang.String xml)
Registers one or several virtual databases in the controller. |
void |
addVirtualDatabases(java.lang.String xml,
java.lang.String virtualName,
boolean autoEnable,
java.lang.String checkPoint)
Registers one or several virtual databases in the controller. |
java.lang.String |
getBindName()
Gets the controller name. |
int |
getPortNumber()
Return this controller port number |
java.lang.String |
getVersionNumber()
Gets the controller version. |
java.util.ArrayList |
getVirtualDatabases()
Gets the name of the available virtual databases. |
java.lang.String |
loadXML(java.lang.String filename)
Reads a XML configuration file. |
java.lang.String |
loadXmlConfiguration(java.lang.String filename,
java.lang.String virtualName,
boolean autoEnable,
java.lang.String checkPoint)
Reads an xml configuration file and search information to load the specified database |
void |
refreshLogConfiguration()
Refreshs the logging system configuration by re-reading the log4j.properties
file. |
java.lang.String |
removeVirtualDatabase(java.lang.String virtualname)
Prevent the controller from accessing a virtual database thereafter |
java.lang.String |
saveConfiguration()
Save current configuration of the controller to a default file location. |
void |
shutdown(int level)
Turns the controller down by using default shutdown level |
java.lang.String |
viewConfiguration()
Retrieve the configuration about this controller in xml format. |
java.lang.String |
viewInfo()
Retrieve the information about this controller in xml format. |
| Method Detail |
public java.lang.String getBindName()
String value containing the controller name.public int getPortNumber()
int containing the port code number
public java.lang.String getVersionNumber()
throws java.rmi.RemoteException
String value containing the version number
java.rmi.RemoteException - if an error occurs
public java.util.ArrayList getVirtualDatabases()
throws java.lang.Exception
ArrayList containing information
java.lang.Exception - if an error occurs
public void addVirtualDatabases(java.lang.String xml)
throws ControllerException
This function expects the content of an XML file conforming to the C-JDBC
DTD to be given as a single String object.
xml - XML code to parse
ControllerException - if an error occurs while interpreting XML
public void addVirtualDatabases(java.lang.String xml,
java.lang.String virtualName,
boolean autoEnable,
java.lang.String checkPoint)
throws ControllerException
This function expects the content of an XML file conforming to the C-JDBC
DTD to be given as a single String object.
xml - XML code to parsevirtualName - name of the virtual databaseautoEnable - specify if should be enabled as soon as it is addedcheckPoint - the checkpoint to use to enable the database
ControllerException - if an error occurs while interpreting XML
public void refreshLogConfiguration()
throws ControllerException
log4j.properties
file.
ControllerException - if the log4j.properties file
cannot be found in classpath
public java.lang.String loadXML(java.lang.String filename)
throws java.lang.Exception
filename - XML configuration file name
java.lang.Exception - if an error occurs
public java.lang.String loadXmlConfiguration(java.lang.String filename,
java.lang.String virtualName,
boolean autoEnable,
java.lang.String checkPoint)
throws java.lang.Exception
filename - the path to the xml filevirtualName - the virtual database we want to loadautoEnable - Specifiy whether the backends should be enabledcheckPoint - Recover from specified checkpoint if needed
java.lang.Exception - if an error occurs
public void shutdown(int level)
throws ControllerException
level - Smart,Fast or Immediate.
ControllerException - if unknown level or other error occurs.
public java.lang.String addDriver(java.lang.String filename)
throws java.lang.Exception
filename - name of the file
java.lang.Exception - if an error occurs
public void addDriver(byte[] bytes)
throws java.lang.Exception
bytes - the data in a byte array
java.lang.Exception - if fails
public java.lang.String removeVirtualDatabase(java.lang.String virtualname)
throws java.lang.Exception
virtualname - the virtual database name to remove
java.lang.Exception - if fails
public java.lang.String viewInfo()
throws java.lang.Exception
java.lang.Exception - if fails
public java.lang.String viewConfiguration()
throws java.lang.Exception
java.lang.Exception - if fails
public java.lang.String saveConfiguration()
throws java.lang.Exception
java.lang.Exception - if fails
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||