Public Member Functions | |
boolean | hasTables (ArrayList tables) |
Package Functions | |
boolean | hasTable (String table) |
boolean | hasStoredProcedure (String procedureName) |
boolean | isInitialized () throws Exception |
boolean | isReadEnabled () |
boolean | isWriteEnabled () |
boolean | isDisabled () |
void | enableRead () |
void | enableWrite () |
void | disableRead () |
void | disableWrite () |
void | disable () |
String | getConnectionTestStatement () |
String | getDriverClassName () |
String | getName () |
String | getState () |
ArrayList | getPendingRequestsDescription (int count, boolean fromFirst, boolean clone) |
ArrayList | getActiveTransactions () |
boolean | checkDatabaseSchema () |
DatabaseSchema | getDatabaseSchema () |
void | checkDriverCompliance () throws Exception |
String | getURL () |
boolean | isSchemaStatic () |
String | getDriverPath () |
void | setLastKnownCheckpoint (String checkpoint) |
String | getLastKnownCheckpoint () |
boolean | isJDBCConnected () |
String | getSchemaXml (boolean expandSchema) |
String | getXml () |
Definition at line 37 of file DatabaseBackendMBean.java.
|
Checks that the current database schema is compatible with all schema gathered from each connection manager. If no schema has been defined, the first gathered schema is used as the current database schema. For each schema that is not compatible with the current schema, a warning is issued on the logger for that backend
|
|
Check if the driver used by this backend is compliant with C-JDBC needs.
|
|
Sets the database backend state to disable. This state is just an indication and it has no semantic effect. It is up to the request manager (especially the load balancer) to ensure that no more requests are sent to this backend. |
|
Disables the database backend for reads. This does not affect write ability Referenced by org.objectweb.cjdbc.console.text.commands.dbadmin.DisableRead.parse(). |
|
Disables the database backend for writes. This does not affect read ability although the backend will not be coherent anymore as soon as a write as occured. This should be used in conjunction with a checkpoint to recover missing writes. Referenced by org.objectweb.cjdbc.console.text.commands.dbadmin.DisableWrite.parse(). |
|
Enables the database backend for reads. This method should only be called when the backend is synchronized with the others. Referenced by org.objectweb.cjdbc.console.text.commands.dbadmin.EnableRead.parse(). |
|
Enables the database backend for writes. This method should only be called when the backend is synchronized with the others. Referenced by org.objectweb.cjdbc.console.text.commands.dbadmin.EnableWrite.parse(). |
|
Returns the list of active transactions for this backend.
|
|
Returns the SQL statement to use to check the connection validity.
|
|
Returns the schema of this database.
|
|
Returns the database native JDBC driver class name.
|
|
Returns the driver path.
|
|
Returns the lastKnownCheckpoint value.
Referenced by org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionExecuteBackendDrop(). |
|
Returns the backend logical name.
|
|
Returns the list of pending requests for this 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.
|
|
Returns a description of the state of the backend
Referenced by org.objectweb.cjdbc.console.gui.CjdbcGui.actionSetBackendState(). |
|
Returns the JDBC URL used to access the database.
|
|
Return a string description of the backend in xml format. This does not include the schema description if the dynamic precision is not set to static.
|
|
Returns
|
|
Returns
|
|
Returns
|
|
Is the backend completely disabled ? This usually means it has a known state with a checkpoint associated to it.
|
|
Tests if this backend is enabled (active and synchronized).
|
|
Is the backend accessible ?
Referenced by org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionTestBackendConnection(). |
|
Tests if this backend is read enabled (active and synchronized).
Referenced by org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionRestoreBackend(). |
|
|
|
Tests if this backend is write enabled (active and synchronized).
Referenced by org.objectweb.cjdbc.console.text.commands.dbadmin.EnableWrite.parse(). |
|
setLastKnownCheckpoint for this backend
Referenced by org.objectweb.cjdbc.console.text.commands.dbadmin.DisableWrite.parse(), org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionSetCheckpoint(), and org.objectweb.cjdbc.console.gui.CjdbcGui.publicActionUnSetCheckpoint(). |