| net.sf.hajdbc.DatabaseCluster
DatabaseCluster | public interface DatabaseCluster (Code) | | author: Paul Ferraro< Parameters: D - > either java.sql.Driver or javax.sql.DataSource |
activate | public boolean activate(Database<D> database, StateManager stateManager)(Code) | | Activates the specified database
Parameters: database - a database descriptor true, if the database was activated, false it was already active |
deactivate | public boolean deactivate(Database<D> database, StateManager stateManager)(Code) | | Deactivates the specified database
Parameters: database - a database descriptor true, if the database was deactivated, false it was already inactive |
getAliveMap | public Map<Boolean, List<Database<D>>> getAliveMap(Collection<Database<D>> databases)(Code) | | Determines whether the specified databases are alive.
Parameters: databases - a collection of database descriptors a map of alive status to set of database descriptors |
getBalancer | public Balancer<D> getBalancer()(Code) | | Returns the Balancer implementation used by this database cluster.
an implementation of Balancer |
getDatabase | public Database<D> getDatabase(String id)(Code) | | Returns the database identified by the specified id
Parameters: id - a database identifier a database descriptor throws: IllegalArgumentException - if no database exists with the specified identifier |
getDatabaseMetaDataCache | public DatabaseMetaDataCache getDatabaseMetaDataCache()(Code) | | Returns a DatabaseMetaData cache.
a DatabaseMetaDataCache implementation |
getDialect | public Dialect getDialect()(Code) | | Returns a dialect capable of returning database vendor specific values.
an implementation of Dialect |
getId | public String getId()(Code) | | Returns the identifier of this cluster.
an identifier |
getLockManager | public LockManager getLockManager()(Code) | | Returns a LockManager capable of acquiring named read/write locks on the specific objects in this database cluster.
a LockManager implementation |
getNonTransactionalExecutor | public ExecutorService getNonTransactionalExecutor()(Code) | | Returns an executor service used to execute non-transactional database writes.
an implementation of ExecutorService |
getStateManager | public StateManager getStateManager()(Code) | | Returns a StateManager for persisting database cluster state.
a StateManager implementation |
getTransactionalExecutor | public ExecutorService getTransactionalExecutor()(Code) | | Returns an executor service used to execute transactional database writes.
an implementation of ExecutorService |
isActive | public boolean isActive()(Code) | | Indicates whether or not this cluster is active, i.e. started, but not yet stopped.
true, if this cluster is active, false otherwise. |
isCurrentDateEvaluationEnabled | public boolean isCurrentDateEvaluationEnabled()(Code) | | Indicates whether or not non-deterministic CURRENT_DATE SQL functions will be evaluated to deterministic static values.
true, if temporal SQL replacement is enabled, false otherwise. |
isCurrentTimeEvaluationEnabled | public boolean isCurrentTimeEvaluationEnabled()(Code) | | Indicates whether or not non-deterministic CURRENT_TIME functions will be evaluated to deterministic static values.
true, if temporal SQL replacement is enabled, false otherwise. |
isCurrentTimestampEvaluationEnabled | public boolean isCurrentTimestampEvaluationEnabled()(Code) | | Indicates whether or not non-deterministic CURRENT_TIMESTAMP functions will be evaluated to deterministic static values.
true, if temporal SQL replacement is enabled, false otherwise. |
isIdentityColumnDetectionEnabled | public boolean isIdentityColumnDetectionEnabled()(Code) | | Indicates whether or not identity column detection is enabled for this cluster.
true, if identity column detection is enabled, false otherwise. |
isRandEvaluationEnabled | public boolean isRandEvaluationEnabled()(Code) | | Indicates whether or not non-deterministic RAND() functions will be replaced by evaluated to static values.
true, if temporal SQL replacement is enabled, false otherwise. |
isSequenceDetectionEnabled | public boolean isSequenceDetectionEnabled()(Code) | | Indicates whether or not sequence detection is enabled for this cluster.
true, if sequence detection is enabled, false otherwise. |
setLockManager | public void setLockManager(LockManager lockManager)(Code) | | Sets the LockManager implementation capable of acquiring named read/write locks on the specific objects in this database cluster.
|
setStateManager | public void setStateManager(StateManager stateManager)(Code) | | Sets the StateManager implementation for persisting database cluster state.
|
start | public void start() throws Exception(Code) | | Starts this database cluster.
throws: Exception - if cluster could not be started |
stop | public void stop()(Code) | | Stops this database cluster
|
|
|