net.sf.hajdbc.sql
Interface DataSourceDatabaseClusterMBean

All Superinterfaces:
DatabaseCluster<DataSource>, DatabaseClusterMBean, Lifecycle
All Known Implementing Classes:
DataSourceDatabaseCluster

public interface DataSourceDatabaseClusterMBean
extends DatabaseClusterMBean, DatabaseCluster<DataSource>

Author:
Paul Ferraro

Method Summary
 void add(String databaseId, String name)
          Adds a new DataSource to this cluster using the specified identifier and JNDI name.
 
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 name)
Adds a new DataSource to this cluster using the specified identifier and JNDI name.

Parameters:
databaseId - a database identifier
name - the JNDI name use to lookup the DataSource
Throws:
IllegalArgumentException - if this database already exists, or no DataSource was found using the specified name.
IllegalStateException - if mbean registration fails.