public class SimpleStateManager extends Object implements StateManager
CLEAR_LOCAL_STATE| Constructor and Description |
|---|
SimpleStateManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
activated(DatabaseEvent event)
Triggered after database is successfully activated.
|
void |
afterInvocation(InvocationEvent event) |
void |
afterInvoker(InvokerEvent event) |
void |
beforeInvocation(InvocationEvent event) |
void |
beforeInvoker(InvokerEvent event) |
void |
deactivated(DatabaseEvent event)
Triggered after database is successfully deactivated.
|
Set<String> |
getActiveDatabases() |
boolean |
isEnabled() |
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.
|
public SimpleStateManager()
public Set<String> getActiveDatabases()
getActiveDatabases in interface StateManagerpublic Map<InvocationEvent,Map<String,InvokerEvent>> recover()
recover 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 afterInvocation(InvocationEvent event)
afterInvocation in interface DurabilityListenerpublic void beforeInvocation(InvocationEvent event)
beforeInvocation in interface DurabilityListenerpublic void afterInvoker(InvokerEvent event)
afterInvoker in interface DurabilityListenerpublic void beforeInvoker(InvokerEvent event)
beforeInvoker in interface DurabilityListenerpublic boolean isEnabled()
isEnabled in interface StateManagerpublic void start()
LifecycleCopyright © 2004–2014 Paul Ferraro. All rights reserved.