|
|||||||||||
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)
Adds a driver jar file sent in its binary form in the drivers directory of the controller. |
void |
addVirtualDatabases(java.lang.String xml)
Registers one or several virtual databases in the controller. |
java.lang.String |
generateLogReport()
Generate a log report on the controller now |
java.lang.String |
generateReport()
Generate a report on the controller now |
int |
getBacklogSize()
Get the controller socket backlog size. |
java.lang.String |
getControllerName()
Gets the controller name. |
java.lang.String |
getJmxName()
Gets the JMX name of the controller. |
java.lang.String |
getLoggingConfiguration()
Get the configuration of the logging now. |
int |
getPortNumber()
Return this controller port number |
java.lang.String |
getVersionNumber()
Gets the controller version. |
java.util.ArrayList |
getVirtualDatabaseNames()
Returns the names of currently available virtual databases. |
java.lang.String |
getXml()
Return the xml version of the controller.xml file without doc type declaration, just data. |
boolean |
hasVirtualDatabase(java.lang.String name)
Tests if a VirtualDatabase of a given name exists in this
controller. |
boolean |
isShuttingDown()
Is the controller shutting down ? |
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 |
setBacklogSize(int size)
Set the controller socket backlog size. |
void |
shutdown(int level)
Turns the controller down by using default shutdown level |
void |
updateLogConfigurationFile(java.lang.String newConfiguration)
Update the log4j configuration file with the given content Also call refreshLogConfiguration method |
java.lang.String |
viewLogConfigurationFile()
Retrieve the content of the log4j configuration file |
Method Detail |
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 XMLpublic java.util.ArrayList getVirtualDatabaseNames()
String
objects.public boolean hasVirtualDatabase(java.lang.String name)
VirtualDatabase
of a given name exists in this
controller.
name
- the virtual database name
true
if the virtual database existspublic java.lang.String removeVirtualDatabase(java.lang.String virtualname) throws java.lang.Exception
virtualname
- the virtual database name to remove
java.lang.Exception
- if failspublic void addDriver(byte[] bytes) throws java.lang.Exception
bytes
- the data in a byte array
java.lang.Exception
- if failspublic java.lang.String generateLogReport() throws java.lang.Exception
java.lang.Exception
- if failspublic java.lang.String generateReport() throws java.lang.Exception
java.lang.Exception
- if failspublic java.lang.String getLoggingConfiguration() throws java.lang.Exception
String
representing the logging configuration
java.lang.Exception
- if the logging configuration can not be returnedpublic java.lang.String saveConfiguration() throws java.lang.Exception
java.lang.Exception
- if failspublic void shutdown(int level) throws ControllerException
level
- Smart,Fast or Immediate.
ControllerException
- if unknown level or other error occurs.public int getBacklogSize()
public java.lang.String getControllerName()
String
value containing the controller name.public java.lang.String getJmxName()
String
value containing the jmx name of the
controllerpublic int getPortNumber()
int
containing the port code numberpublic java.lang.String getVersionNumber() throws java.rmi.RemoteException
String
value containing the version number
java.rmi.RemoteException
- if an error occurspublic java.lang.String getXml()
public boolean isShuttingDown()
public void setBacklogSize(int size)
size
- backlog sizepublic void refreshLogConfiguration() throws ControllerException
log4j.properties
file.
ControllerException
- if the log4j.properties
file
cannot be found in classpathpublic void updateLogConfigurationFile(java.lang.String newConfiguration) throws java.io.IOException, ControllerException
refreshLogConfiguration
method
newConfiguration
- the content of the new log4j configuration
java.io.IOException
- if cannot access the log4j file
ControllerException
- if could not refresh the logspublic java.lang.String viewLogConfigurationFile() throws java.io.IOException
String
java.io.IOException
- if IO problems
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |