net.sf.hajdbc.sql
Interface DriverDatabaseClusterMBean

All Superinterfaces:
DatabaseCluster<Driver>, DatabaseClusterMBean, Lifecycle
All Known Implementing Classes:
DriverDatabaseCluster

public interface DriverDatabaseClusterMBean
extends DatabaseClusterMBean, DatabaseCluster<Driver>

Author:
Paul Ferraro

Method Summary
 void add(String databaseId, String driver, String url)
          Adds a new database to this cluster using the specified identifier, url, and driver.
 
Methods inherited from interface net.sf.hajdbc.DatabaseClusterMBean
activate, activate, addActivationListener, addDeactivationListener, addSynchronizationListener, deactivate, flushMetaDataCache, getActiveDatabases, getDefaultSynchronizationStrategy, getInactiveDatabases, getSynchronizationStrategies, getUrl, getVersion, isAlive, remove, removeActivationListener, removeDeactivationListener, removeSynchronizationListener, toString
 
Methods inherited from interface net.sf.hajdbc.DatabaseCluster
activate, deactivate, getAliveMap, getBalancer, getDatabase, getDatabaseMetaDataCache, getDialect, getId, getLockManager, getNonTransactionalExecutor, getStateManager, getTransactionalExecutor, isActive, isCurrentDateEvaluationEnabled, isCurrentTimeEvaluationEnabled, isCurrentTimestampEvaluationEnabled, isIdentityColumnDetectionEnabled, isRandEvaluationEnabled, isSequenceDetectionEnabled, setLockManager, setStateManager
 
Methods inherited from interface net.sf.hajdbc.Lifecycle
start, stop
 

Method Detail

add

void add(String databaseId,
         String driver,
         String url)
Adds a new database to this cluster using the specified identifier, url, and driver.

Parameters:
databaseId - a database identifier
url - a JDBC url
driver - a JDBC driver class name
Throws:
IllegalArgumentException - if this database already exists, if the specified driver is invalid, or if the specified url is invalid.
IllegalStateException - if mbean registration fails.