public class ApplicationStateManagerImpl extends java.lang.Object implements ApplicationStateManager, org.apache.hivemind.PoolManageable
Constructor and Description |
---|
ApplicationStateManagerImpl() |
Modifier and Type | Method and Description |
---|---|
void |
activateService() |
boolean |
exists(java.lang.String objectName)
Checks to see if the named object exists.
|
void |
flush()
Asks each
StateObjectManager to store each object obtained. |
java.lang.Object |
get(java.lang.String objectName)
Gets the named application state object, creating it if necessary.
|
void |
passivateService() |
void |
setRegistry(StateObjectManagerRegistry registry) |
void |
store(java.lang.String objectName,
java.lang.Object stateObject)
Stores a new state object, replacing the old one.
|
public ApplicationStateManagerImpl()
public void activateService()
activateService
in interface org.apache.hivemind.PoolManageable
public void passivateService()
passivateService
in interface org.apache.hivemind.PoolManageable
public boolean exists(java.lang.String objectName)
ApplicationStateManager
exists
in interface ApplicationStateManager
objectName
- the name of the application state objectpublic java.lang.Object get(java.lang.String objectName)
ApplicationStateManager
get
in interface ApplicationStateManager
objectName
- the name of the application state objectpublic void store(java.lang.String objectName, java.lang.Object stateObject)
ApplicationStateManager
store
in interface ApplicationStateManager
objectName
- the name of the object to storestateObject
- the new object, possibly nullpublic void flush()
ApplicationStateManager
StateObjectManager
to store each object obtained.flush
in interface ApplicationStateManager
public void setRegistry(StateObjectManagerRegistry registry)