public class BerkeleyDBStateManager extends CloseablePoolProvider<com.sleepycat.je.Environment,com.sleepycat.je.DatabaseException> implements StateManager, SerializedDurabilityListener
CLEAR_LOCAL_STATE| Constructor and Description |
|---|
BerkeleyDBStateManager(DatabaseCluster<?,?> cluster,
File file,
com.sleepycat.je.EnvironmentConfig config,
PoolFactory poolFactory) |
| Modifier and Type | Method and Description |
|---|---|
void |
activated(DatabaseEvent event)
Triggered after database is successfully activated.
|
void |
afterInvocation(byte[] transactionId,
byte phase) |
void |
afterInvocation(InvocationEvent event) |
void |
afterInvoker(byte[] transactionId,
byte phase,
String databaseId,
byte[] result) |
void |
afterInvoker(InvokerEvent event) |
void |
beforeInvocation(byte[] transactionId,
byte phase,
byte exceptionType) |
void |
beforeInvocation(InvocationEvent event) |
void |
beforeInvoker(byte[] transactionId,
byte phase,
String databaseId) |
void |
beforeInvoker(InvokerEvent event) |
com.sleepycat.je.Environment |
create() |
void |
deactivated(DatabaseEvent event)
Triggered after database is successfully deactivated.
|
Set<String> |
getActiveDatabases() |
boolean |
isEnabled() |
boolean |
isValid(com.sleepycat.je.Environment environment) |
Map<InvocationEvent,Map<String,InvokerEvent>> |
recover() |
void |
setActiveDatabases(Set<String> databases) |
void |
start()
Called upon database cluster start.
|
void |
stop()
Called when database cluster is stopped.
|
closegetExceptionClass, getProvidedClasspublic BerkeleyDBStateManager(DatabaseCluster<?,?> cluster, File file, com.sleepycat.je.EnvironmentConfig config, PoolFactory poolFactory)
public void start()
Lifecyclepublic void stop()
Lifecyclepublic Set<String> getActiveDatabases()
getActiveDatabases in interface StateManagerpublic void setActiveDatabases(Set<String> databases)
setActiveDatabases in interface StateManagerpublic void activated(DatabaseEvent event)
DatabaseClusterListeneractivated in interface DatabaseClusterListenerevent - indicates the database that was activatedpublic void deactivated(DatabaseEvent event)
DatabaseClusterListenerdeactivated in interface DatabaseClusterListenerevent - indicates the database that was deactivatedpublic void beforeInvocation(InvocationEvent event)
beforeInvocation in interface DurabilityListenerpublic void afterInvocation(InvocationEvent event)
afterInvocation in interface DurabilityListenerpublic void beforeInvoker(InvokerEvent event)
beforeInvoker in interface DurabilityListenerpublic void afterInvoker(InvokerEvent event)
afterInvoker in interface DurabilityListenerpublic void beforeInvocation(byte[] transactionId, byte phase, byte exceptionType)
beforeInvocation in interface SerializedDurabilityListenerpublic void afterInvocation(byte[] transactionId, byte phase)
afterInvocation in interface SerializedDurabilityListenerpublic void beforeInvoker(byte[] transactionId, byte phase, String databaseId)
beforeInvoker in interface SerializedDurabilityListenerpublic void afterInvoker(byte[] transactionId, byte phase, String databaseId, byte[] result)
afterInvoker in interface SerializedDurabilityListenerpublic Map<InvocationEvent,Map<String,InvokerEvent>> recover()
recover in interface StateManagerpublic boolean isEnabled()
isEnabled in interface StateManagerpublic com.sleepycat.je.Environment create() throws com.sleepycat.je.DatabaseException
create in interface PoolProvider<com.sleepycat.je.Environment,com.sleepycat.je.DatabaseException>com.sleepycat.je.DatabaseExceptionPoolProvider.create()public boolean isValid(com.sleepycat.je.Environment environment)
isValid in interface PoolProvider<com.sleepycat.je.Environment,com.sleepycat.je.DatabaseException>PoolProvider.isValid(java.lang.Object)Copyright © 2004–2014 Paul Ferraro. All rights reserved.