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 StateManager
public Map<InvocationEvent,Map<String,InvokerEvent>> recover()
recover
in interface StateManager
public void setActiveDatabases(Set<String> databases)
setActiveDatabases
in interface StateManager
public void activated(DatabaseEvent event)
DatabaseClusterListener
activated
in interface DatabaseClusterListener
event
- indicates the database that was activatedpublic void deactivated(DatabaseEvent event)
DatabaseClusterListener
deactivated
in interface DatabaseClusterListener
event
- indicates the database that was deactivatedpublic void afterInvocation(InvocationEvent event)
afterInvocation
in interface DurabilityListener
public void beforeInvocation(InvocationEvent event)
beforeInvocation
in interface DurabilityListener
public void afterInvoker(InvokerEvent event)
afterInvoker
in interface DurabilityListener
public void beforeInvoker(InvokerEvent event)
beforeInvoker
in interface DurabilityListener
public boolean isEnabled()
isEnabled
in interface StateManager
public void start()
Lifecycle
Copyright © 2004–2014 Paul Ferraro. All rights reserved.