| net.sf.hajdbc.DatabaseClusterMBean
All known Subclasses: net.sf.hajdbc.sql.AbstractDatabaseCluster,
DatabaseClusterMBean | public interface DatabaseClusterMBean (Code) | | author: Paul Ferraro version: $Revision: 1679 $ since: 1.0 |
activate | public void activate(String databaseId)(Code) | | Synchronizes, using the default strategy, and reactivates the specified database.
Parameters: databaseId - a database identifier throws: IllegalArgumentException - if no database exists with the specified identifier. throws: IllegalStateException - if synchronization fails, or if mbean could not be re-registered using active database interface. |
activate | public void activate(String databaseId, String syncId)(Code) | | Synchronizes, using the specified strategy, and reactivates the specified database.
Parameters: databaseId - a database identifier Parameters: syncId - the class name of a synchronization strategy throws: IllegalArgumentException - if no database exists with the specified identifier, or no synchronization strategy exists with the specified identifier. throws: IllegalStateException - if synchronization fails, or if mbean could not be re-registered using active database interface. |
deactivate | public void deactivate(String databaseId)(Code) | | Deactivates the specified database.
Parameters: databaseId - a database identifier throws: IllegalArgumentException - if no database exists with the specified identifier. throws: IllegalStateException - if mbean could not be re-registered using inactive database interface. |
flushMetaDataCache | public void flushMetaDataCache()(Code) | | Flushes this cluster's cache of DatabaseMetaData.
|
getActiveDatabases | public Set<String> getActiveDatabases()(Code) | | Returns a collection of active databases in this cluster.
a list of database identifiers |
getDefaultSynchronizationStrategy | public String getDefaultSynchronizationStrategy()(Code) | | Returns the default synchronization strategy used by this cluster.
a synchronization strategy identifier |
getInactiveDatabases | public Set<String> getInactiveDatabases()(Code) | | Returns a collection of inactive databases in this cluster.
a collection of database identifiers |
getSynchronizationStrategies | public Set<String> getSynchronizationStrategies()(Code) | | Returns the set of synchronization strategies available to this cluster.
a set of synchronization strategy identifiers |
getUrl | public URL getUrl()(Code) | | Returns the URL of the configuration file for this cluster.
a URL |
getVersion | public String getVersion()(Code) | | Return the current HA-JDBC version
the current version |
isAlive | public boolean isAlive(String databaseId)(Code) | | Determines whether or not the specified database is responsive
Parameters: databaseId - a database identifier true, if the database is alive, false otherwise throws: IllegalArgumentException - if no database exists with the specified identifier. |
remove | public void remove(String databaseId)(Code) | | Removes the specified database/DataSource from the cluster.
Parameters: databaseId - a database identifier throws: IllegalStateException - if database is still active, or if mbean unregistration fails. |
toString | public String toString()(Code) | | Provided so that mbean proxies will use mbean toString() implementation
string representation of this cluster |
|
|