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.PoolManageablepublic void passivateService()
passivateService in interface org.apache.hivemind.PoolManageablepublic boolean exists(java.lang.String objectName)
ApplicationStateManagerexists in interface ApplicationStateManagerobjectName - the name of the application state objectpublic java.lang.Object get(java.lang.String objectName)
ApplicationStateManagerget in interface ApplicationStateManagerobjectName - the name of the application state objectpublic void store(java.lang.String objectName, java.lang.Object stateObject)
ApplicationStateManagerstore in interface ApplicationStateManagerobjectName - the name of the object to storestateObject - the new object, possibly nullpublic void flush()
ApplicationStateManagerStateObjectManager to store each object obtained.flush in interface ApplicationStateManagerpublic void setRegistry(StateObjectManagerRegistry registry)