|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface DatabaseClusterMBean
| Method Summary | |
|---|---|
void |
activate(String databaseId)
Synchronizes, using the default strategy, and reactivates the specified database. |
void |
activate(String databaseId,
String syncId)
Synchronizes, using the specified strategy, and reactivates the specified database. |
void |
addActivationListener(DatabaseActivationListener listener)
|
void |
addDeactivationListener(DatabaseDeactivationListener listener)
|
void |
addSynchronizationListener(SynchronizationListener listener)
|
void |
deactivate(String databaseId)
Deactivates the specified database. |
void |
flushMetaDataCache()
Flushes this cluster's cache of DatabaseMetaData. |
Set<String> |
getActiveDatabases()
Returns a collection of active databases in this cluster. |
String |
getDefaultSynchronizationStrategy()
Returns the default synchronization strategy used by this cluster. |
Set<String> |
getInactiveDatabases()
Returns a collection of inactive databases in this cluster. |
Set<String> |
getSynchronizationStrategies()
Returns the set of synchronization strategies available to this cluster. |
URL |
getUrl()
Returns the URL of the configuration file for this cluster. |
String |
getVersion()
Return the current HA-JDBC version |
boolean |
isAlive(String databaseId)
Determines whether or not the specified database is responsive |
void |
remove(String databaseId)
Removes the specified database/DataSource from the cluster. |
void |
removeActivationListener(DatabaseActivationListener listener)
|
void |
removeDeactivationListener(DatabaseDeactivationListener listener)
|
void |
removeSynchronizationListener(SynchronizationListener listener)
|
String |
toString()
Provided so that mbean proxies will use mbean toString() implementation |
| Method Detail |
|---|
boolean isAlive(String databaseId)
databaseId - a database identifier
IllegalArgumentException - if no database exists with the specified identifier.void deactivate(String databaseId)
databaseId - a database identifier
IllegalArgumentException - if no database exists with the specified identifier.
IllegalStateException - if mbean could not be re-registered using inactive database interface.void activate(String databaseId)
databaseId - a database identifier
IllegalArgumentException - if no database exists with the specified identifier.
IllegalStateException - if synchronization fails, or if mbean could not be re-registered using active database interface.
void activate(String databaseId,
String syncId)
databaseId - a database identifiersyncId - the class name of a synchronization strategy
IllegalArgumentException - if no database exists with the specified identifier, or no synchronization strategy exists with the specified identifier.
IllegalStateException - if synchronization fails, or if mbean could not be re-registered using active database interface.Set<String> getActiveDatabases()
Set<String> getInactiveDatabases()
String getVersion()
void remove(String databaseId)
databaseId - a database identifier
IllegalStateException - if database is still active, or if mbean unregistration fails.void flushMetaDataCache()
Set<String> getSynchronizationStrategies()
String getDefaultSynchronizationStrategy()
URL getUrl()
String toString()
toString in class Objectvoid addActivationListener(DatabaseActivationListener listener)
void removeActivationListener(DatabaseActivationListener listener)
void addDeactivationListener(DatabaseDeactivationListener listener)
void removeDeactivationListener(DatabaseDeactivationListener listener)
void addSynchronizationListener(SynchronizationListener listener)
void removeSynchronizationListener(SynchronizationListener listener)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||