インタフェース org.objectweb.cjdbc.common.jmx.mbeans.DatabaseBackendMBean

すべてのメンバ一覧

説明

MBeanInterface to the DatabaseBackend

作者:
Nicolas Modrzyk
バージョン:
1.0

DatabaseBackendMBean.java38 行で定義されています。

Public メソッド

boolean hasTables (ArrayList tables)

関数

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 ()
Vector getPendingRequests ()
ArrayList getActiveTransactions ()
boolean checkDatabaseSchema ()
DatabaseSchema getDatabaseSchema ()
void checkDriverCompliance () throws Exception
String getURL ()
boolean isSchemaStatic ()
String getDriverPath ()
void setLastKnownCheckpoint (String checkpoint)
String getLastKnownCheckpoint ()


メソッド

boolean org.objectweb.cjdbc.common.jmx.mbeans.DatabaseBackendMBean.checkDatabaseSchema  )  [package]
 

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

戻り値:
true if comptaible, false otherwise

void org.objectweb.cjdbc.common.jmx.mbeans.DatabaseBackendMBean.checkDriverCompliance  )  throws Exception [package]
 

Check if the driver used by this backend is compliant with C-JDBC needs.

例外:
Exception if the driver is not compliant

void org.objectweb.cjdbc.common.jmx.mbeans.DatabaseBackendMBean.disable  )  [package]
 

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.

void org.objectweb.cjdbc.common.jmx.mbeans.DatabaseBackendMBean.disableRead  )  [package]
 

Disables the database backend for reads. This does not affect write ability

参照元 org.objectweb.cjdbc.console.text.commands.dbadmin.DisableRead.parse().

void org.objectweb.cjdbc.common.jmx.mbeans.DatabaseBackendMBean.disableWrite  )  [package]
 

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.

参照元 org.objectweb.cjdbc.console.text.commands.dbadmin.DisableWrite.parse().

void org.objectweb.cjdbc.common.jmx.mbeans.DatabaseBackendMBean.enableRead  )  [package]
 

Enables the database backend for reads. This method should only be called when the backend is synchronized with the others.

参照元 org.objectweb.cjdbc.console.text.commands.dbadmin.EnableRead.parse().

void org.objectweb.cjdbc.common.jmx.mbeans.DatabaseBackendMBean.enableWrite  )  [package]
 

Enables the database backend for writes. This method should only be called when the backend is synchronized with the others.

参照元 org.objectweb.cjdbc.console.text.commands.dbadmin.EnableWrite.parse().

ArrayList org.objectweb.cjdbc.common.jmx.mbeans.DatabaseBackendMBean.getActiveTransactions  )  [package]
 

Returns the list of active transactions for this backend.

戻り値:
ArrayList of Long, corresponding to active transaction identifier.

String org.objectweb.cjdbc.common.jmx.mbeans.DatabaseBackendMBean.getConnectionTestStatement  )  [package]
 

Returns the SQL statement to use to check the connection validity.

戻り値:
a String containing a SQL statement

DatabaseSchema org.objectweb.cjdbc.common.jmx.mbeans.DatabaseBackendMBean.getDatabaseSchema  )  [package]
 

Returns the schema of this database.

戻り値:
the schema of this database. Returns null if the schema has not been set.

String org.objectweb.cjdbc.common.jmx.mbeans.DatabaseBackendMBean.getDriverClassName  )  [package]
 

Returns the database native JDBC driver class name.

戻り値:
the driver class name

String org.objectweb.cjdbc.common.jmx.mbeans.DatabaseBackendMBean.getDriverPath  )  [package]
 

Returns the driver path.

戻り値:
the driver path

String org.objectweb.cjdbc.common.jmx.mbeans.DatabaseBackendMBean.getLastKnownCheckpoint  )  [package]
 

Returns the lastKnownCheckpoint value.

戻り値:
Returns the lastKnownCheckpoint.

String org.objectweb.cjdbc.common.jmx.mbeans.DatabaseBackendMBean.getName  )  [package]
 

Returns the backend logical name.

戻り値:
the backend logical name

参照元 org.objectweb.cjdbc.console.gui.CjdbcGui.actionSetBackendState().

Vector org.objectweb.cjdbc.common.jmx.mbeans.DatabaseBackendMBean.getPendingRequests  )  [package]
 

Returns the list of pending requests for this backend.

戻り値:
Vector of AbstractRequests

String org.objectweb.cjdbc.common.jmx.mbeans.DatabaseBackendMBean.getState  )  [package]
 

Returns a description of the state of the backend

参照:
org.objectweb.cjdbc.common.jmx.notifications.CjdbcNotificationList
戻り値:
a string description of the state. Can be enabled, disabled, recovering, backuping ...

参照元 org.objectweb.cjdbc.console.gui.CjdbcGui.actionSetBackendState().

String org.objectweb.cjdbc.common.jmx.mbeans.DatabaseBackendMBean.getURL  )  [package]
 

Returns the JDBC URL used to access the database.

戻り値:
a JDBC URL

boolean org.objectweb.cjdbc.common.jmx.mbeans.DatabaseBackendMBean.hasStoredProcedure String  procedureName  )  [package]
 

Returns true if this backend has the given stored procedure in its schema. The caller must ensure that the database schema has been defined

引数:
procedureName The stored procedure name to look for
戻り値:
true if procedure name is found in the schema

boolean org.objectweb.cjdbc.common.jmx.mbeans.DatabaseBackendMBean.hasTable String  table  )  [package]
 

Returns true if this backend has the given table in its schema. The caller must ensure that the database schema has been defined,

引数:
table The table name to look for
戻り値:
true if tables is found in the schema

boolean org.objectweb.cjdbc.common.jmx.mbeans.DatabaseBackendMBean.hasTables ArrayList  tables  ) 
 

Returns true if this backend has the given list of tables in its schema. The caller must ensure that the database schema has been defined

引数:
tables the list of table names (ArrayList of String) to look for
戻り値:
true if all the tables are found

boolean org.objectweb.cjdbc.common.jmx.mbeans.DatabaseBackendMBean.isDisabled  )  [package]
 

Is the backend completely disabled ? This usually means it has a known state with a checkpoint associated to it.

戻り値:
true if the backend is disabled

boolean org.objectweb.cjdbc.common.jmx.mbeans.DatabaseBackendMBean.isInitialized  )  throws Exception [package]
 

Tests if this backend is enabled (active and synchronized).

戻り値:
true if this backend is enabled
例外:
Exception if an error occurs

boolean org.objectweb.cjdbc.common.jmx.mbeans.DatabaseBackendMBean.isReadEnabled  )  [package]
 

Tests if this backend is read enabled (active and synchronized).

戻り値:
true if this backend is enabled.

boolean org.objectweb.cjdbc.common.jmx.mbeans.DatabaseBackendMBean.isSchemaStatic  )  [package]
 

戻り値:
Returns the schemaIsStatic.

boolean org.objectweb.cjdbc.common.jmx.mbeans.DatabaseBackendMBean.isWriteEnabled  )  [package]
 

Tests if this backend is write enabled (active and synchronized).

戻り値:
true if this backend is enabled.

参照元 org.objectweb.cjdbc.console.text.commands.dbadmin.EnableWrite.parse().

void org.objectweb.cjdbc.common.jmx.mbeans.DatabaseBackendMBean.setLastKnownCheckpoint String  checkpoint  )  [package]
 

setLastKnownCheckpoint for this backend

引数:
checkpoint the checkpoint

参照元 org.objectweb.cjdbc.console.text.commands.dbadmin.DisableWrite.parse().


このインタフェースの説明は次のファイルから生成されました:
CJDBCversion1.0.4に対してTue Oct 12 15:16:09 2004に生成されました。 doxygen 1.3.8