Public Member Functions | |
void | enableBackend (String databaseBackendName) throws VirtualDatabaseException |
Package Functions | |
void | enableBackendFromCheckpoint (String backendName) throws VirtualDatabaseException |
void | enableAllBackends () throws VirtualDatabaseException |
void | enableAllBackendsFromCheckpoint () throws VirtualDatabaseException |
void | disableBackend (String databaseBackendName) throws VirtualDatabaseException |
void | disableBackendWithCheckpoint (String databaseBackendName, String checkpointName) throws VirtualDatabaseException |
void | disableAllBackends () throws VirtualDatabaseException |
void | disableAllBackendsWithCheckpoint (String checkpoint) throws VirtualDatabaseException |
ArrayList | getAllBackendNames () throws VirtualDatabaseException |
void | replicateBackend (String backendName, String newBackendName, Map parameters) throws VirtualDatabaseException |
void | removeBackend (String backend) throws VirtualDatabaseException |
void | transferBackend (String backend, String controllerDestination) throws VirtualDatabaseException |
void | removeCheckpoint (String checkpoint) throws VirtualDatabaseException |
void | setBackendLastKnownCheckpoint (String backendName, String checkpoint) throws VirtualDatabaseException |
ArrayList | viewCheckpointNames () |
void | backupBackendWithCheckpoint (String backendName, String checkpointName, ArrayList tables) throws VirtualDatabaseException |
File[] | getAvailableDumpFiles () |
boolean | removeDumpFile (File dumpFile) |
void | restoreDumpOnBackend (String databaseBackendName, String checkpointName) throws VirtualDatabaseException, BackupException, OctopusException |
String | getBackendInformation (String backendName) throws VirtualDatabaseException |
String | getBackendSchema (String backendName) throws VirtualDatabaseException |
String | getBackendState (String backendName) throws VirtualDatabaseException |
String | getXml () |
boolean | checkAdminAuthentication (String adminLogin, String adminPassword) throws VirtualDatabaseException |
String | getVirtualDatabaseName () |
boolean | hasRecoveryLog () |
boolean | hasResultCache () |
boolean | isDistributed () |
void | shutdown (int level) throws VirtualDatabaseException |
String[] | viewBackendInformation (String backendName) throws VirtualDatabaseException |
Hashtable | viewGroupBackends () throws VirtualDatabaseException |
String | viewOwningController () |
String[][] | retrieveBackendsData () throws Exception |
String[] | viewControllerList () |
int | getCurrentNbOfThreads () |
void | cleanMonitoringData () throws VirtualDatabaseException |
void | setMonitoringToActive (boolean active) throws VirtualDatabaseException |
Definition at line 43 of file VirtualDatabaseMBean.java.
|
Create a backup of a specific backend. Note the backend will be disabled during backup, and will be put back to its previous state after backup.
|
|
Authenticate a user for a given virtual database
Referenced by org.objectweb.cjdbc.console.text.module.VirtualDatabaseAdmin.login(), and org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionLoadAuthenticatedDatabase(). |
|
Clean data collected by the current monitoring system, to avoid memory problems. Monitor does not have to be active.
|
|
Disable all backends for this virtual database
Referenced by org.objectweb.cjdbc.console.text.commands.dbadmin.DisableAll.parse(). |
|
Disable all backends and store a checkpoint
Referenced by org.objectweb.cjdbc.console.text.commands.dbadmin.DisableAll.parse(). |
|
Disables a backend that is currently enabled on this virtual database (without further check).
Referenced by org.objectweb.cjdbc.console.text.commands.dbadmin.Disable.parse(), and org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionExecuteBackendDrop(). |
|
Disables a backend once all the pending write queries are executed. A checkpoint is inserted in the recovery log. The backend must belong to this virtual database and be in the enabled state.
Referenced by org.objectweb.cjdbc.console.text.commands.dbadmin.Disable.parse(), and org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionExecuteBackendDrop(). |
|
Enable all the backends without any check.
|
|
Enable all backends from their last known states that has been recorded in the recovery log, and enable only the backends which where properly disabled.
Referenced by org.objectweb.cjdbc.console.text.commands.dbadmin.EnableAll.parse(). |
|
Enables a backend that has been previously added to this virtual database and that is in the disabled state. The backend is enabled without further check.
Referenced by org.objectweb.cjdbc.console.text.commands.dbadmin.Enable.parse(), and org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionExecuteBackendDrop(). |
|
Enable the given backend from its last known checkpoint
Referenced by org.objectweb.cjdbc.console.text.commands.dbadmin.EnableWrite.parse(), org.objectweb.cjdbc.console.text.commands.dbadmin.Enable.parse(), and org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionExecuteBackendDrop(). |
|
Get a list of all DatabaseBackend names.
Referenced by org.objectweb.cjdbc.console.text.commands.dbadmin.ShowBackendState.parse(), and org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionLoadBackendsList(). |
|
Get all available dump files for this virtual database
Referenced by org.objectweb.cjdbc.console.text.commands.dbadmin.ViewDumpNames.parse(), and org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionLoadDumpList(). |
|
Return information about the specified backend.
|
|
The getXml() method does not return the schema if it is not static anymore, to avoid confusion between static and dynamic schema. This method returns a static view of the schema, whatever the dynamic precision is.
|
|
Return the state of a given database backend
|
|
Returns the currentNbOfThreads.
|
|
Gets the virtual database name to be used by the client (C-JDBC driver)
|
|
Retrieves this
Referenced by org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionLoadXmlDatabase(). |
|
Indicate if there is a recovery log defined for this virtual database
Referenced by org.objectweb.cjdbc.console.text.commands.dbadmin.EnableWrite.parse(), org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionExecuteBackendDrop(), and org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionLoadAuthenticatedDatabase(). |
|
Indicate if there is a result cache defined for this virtual database
|
|
Tells whether this database is distributed or not
Referenced by org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionLoadBackendsList(). |
|
Remove a backend from the virtual database list. Do not check whether it is enabled or not, and do not perform backup operation
Referenced by org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionRemoveBackend(). |
|
Disable all backends and store a checkpoint
Referenced by org.objectweb.cjdbc.console.text.commands.dbadmin.RemoveCheckpoint.parse(). |
|
Delete a dump file from the controller repository
Referenced by org.objectweb.cjdbc.console.text.commands.dbadmin.RemoveDumpFile.parse(), and org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionDeleteDump(). |
|
Add an additionnal backend to the virtual database with connection managers identical to the backend replicated.
Referenced by org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionCreateBackendExecute(). |
|
Recopy all the data of a previous dump recorded by octopus into the named backend. This disables the backend and leave it disabled after recovery process. The user has to call the
Referenced by org.objectweb.cjdbc.console.text.commands.dbadmin.Restore.parse(). |
|
Retrieves an array of data on the backends for this virtual database
Referenced by org.objectweb.cjdbc.console.text.commands.dbadmin.ShowBackends.parse(). |
|
Sets the last known checkpoint of a backend. This will also update the value in the recovery log
|
|
If a monitoring section exists, we can set the monitoring on or off by calling this method. If monitoring is not defined we throw an exception.
|
|
Shutdown this virtual database. Finish all threads and stop connection to backends
Referenced by org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionShutdownDatabase(). |
|
Transfer the backend to the destinated controller. Note that this does nothing in a non-distributed environment
Referenced by org.objectweb.cjdbc.console.text.commands.dbadmin.TransferBackend.parse(), and org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionExecuteTransfer(). |
|
Returns an array of information on this backend The method above is not used at the moment ... This one is by the GUI.
Referenced by org.objectweb.cjdbc.console.gui.CjdbcGui.actionSetBackendState(). |
|
Returns an array of names of all the checkpoint available in the recovery log of this virtual dabase.
Referenced by org.objectweb.cjdbc.console.text.commands.dbadmin.ViewCheckpointNames.parse(). |
|
Return the list of controllers defining this virtual database. If the database is not distributed this returns the same as
Referenced by org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionLoadAuthenticatedDatabase(), and org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionSelectNewDatabase(). |
|
Returns a mapping of controller jmx names with their backends Note the method is only useful in distributed environment
Referenced by org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionLoadBackendsList(). |
|
Name of the controller owning this virtual database
|