Z
- either java.sql.Driver or javax.sql.DataSourceD
- database implementationpublic interface DatabaseCluster<Z,D extends Database<Z>> extends Lifecycle
Modifier and Type | Method and Description |
---|---|
boolean |
activate(D database,
StateManager manager)
Activates the specified database
|
void |
addConfigurationListener(DatabaseClusterConfigurationListener<Z,D> listener) |
void |
addListener(DatabaseClusterListener listener) |
void |
addSynchronizationListener(SynchronizationListener listener) |
boolean |
deactivate(D database,
StateManager manager)
Deactivates the specified database
|
Balancer<Z,D> |
getBalancer()
Returns the Balancer implementation used by this database cluster.
|
D |
getDatabase(String id)
Returns the database identified by the specified id
|
DatabaseMetaDataCache<Z,D> |
getDatabaseMetaDataCache()
Returns a DatabaseMetaData cache.
|
Decoder |
getDecoder() |
Dialect |
getDialect()
Returns a dialect capable of returning database vendor specific values.
|
Durability<Z,D> |
getDurability() |
ExecutorService |
getExecutor() |
String |
getId()
Returns the identifier of this cluster.
|
InputSinkStrategy<? extends Object> |
getInputSinkStrategy() |
LockManager |
getLockManager()
Returns a LockManager capable of acquiring named read/write locks on the specific objects in this database cluster.
|
StateManager |
getStateManager()
Returns a StateManager for persisting database cluster state.
|
ThreadFactory |
getThreadFactory() |
TransactionIdentifierFactory<? extends Object> |
getTransactionIdentifierFactory() |
TransactionMode |
getTransactionMode() |
boolean |
isActive()
Indicates whether or not this cluster is active, i.e.
|
boolean |
isCurrentDateEvaluationEnabled()
Indicates whether or not non-deterministic CURRENT_DATE SQL functions will be evaluated to deterministic static values.
|
boolean |
isCurrentTimeEvaluationEnabled()
Indicates whether or not non-deterministic CURRENT_TIME functions will be evaluated to deterministic static values.
|
boolean |
isCurrentTimestampEvaluationEnabled()
Indicates whether or not non-deterministic CURRENT_TIMESTAMP functions will be evaluated to deterministic static values.
|
boolean |
isIdentityColumnDetectionEnabled()
Indicates whether or not identity column detection is enabled for this cluster.
|
boolean |
isRandEvaluationEnabled()
Indicates whether or not non-deterministic RAND() functions will be replaced by evaluated to static values.
|
boolean |
isSequenceDetectionEnabled()
Indicates whether or not sequence detection is enabled for this cluster.
|
void |
removeConfigurationListener(DatabaseClusterConfigurationListener<Z,D> listener) |
void |
removeListener(DatabaseClusterListener listener) |
void |
removeSynchronizationListener(SynchronizationListener listener) |
boolean activate(D database, StateManager manager)
database
- a database descriptormanager
- a state managerboolean deactivate(D database, StateManager manager)
database
- a database descriptormanager
- a state managerD getDatabase(String id)
id
- a database identifierIllegalArgumentException
- if no database exists with the specified identifierBalancer<Z,D> getBalancer()
Balancer
TransactionMode getTransactionMode()
ExecutorService getExecutor()
Dialect getDialect()
Dialect
LockManager getLockManager()
StateManager getStateManager()
DatabaseMetaDataCache<Z,D> getDatabaseMetaDataCache()
DatabaseMetaDataCache
implementationboolean isSequenceDetectionEnabled()
boolean isIdentityColumnDetectionEnabled()
boolean isCurrentDateEvaluationEnabled()
boolean isCurrentTimeEvaluationEnabled()
boolean isCurrentTimestampEvaluationEnabled()
boolean isRandEvaluationEnabled()
boolean isActive()
void addListener(DatabaseClusterListener listener)
void removeListener(DatabaseClusterListener listener)
void addSynchronizationListener(SynchronizationListener listener)
void removeSynchronizationListener(SynchronizationListener listener)
void addConfigurationListener(DatabaseClusterConfigurationListener<Z,D> listener)
void removeConfigurationListener(DatabaseClusterConfigurationListener<Z,D> listener)
Durability<Z,D> getDurability()
ThreadFactory getThreadFactory()
Decoder getDecoder()
TransactionIdentifierFactory<? extends Object> getTransactionIdentifierFactory()
InputSinkStrategy<? extends Object> getInputSinkStrategy()
Copyright © 2004–2014 Paul Ferraro. All rights reserved.