Package org.infinispan.globalstate.impl
Class GlobalStateManagerImpl
java.lang.Object
org.infinispan.globalstate.impl.GlobalStateManagerImpl
- All Implemented Interfaces:
GlobalStateManager
GlobalStateManagerImpl. This global component manages persistent state across restarts as well as global
configurations. The information is stored in a Properties file. On a graceful shutdown it persists the following
information:
version = full version (e.g. major.minor.micro.qualifier) timestamp = timestamp using ISO-8601
as well as any additional information contributed by registered GlobalStateProviders
- Since:
- 8.1
- Author:
- Tristan Tarrant
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteScopedState(String scope) Delete the persistent state for the given scopereadScopedState(String scope) Reads the persistent state for the specified scope.voidregisterStateProvider(GlobalStateProvider provider) Registers a state provider within this state managervoidstart()voidstop()voidPersists the global state by contacting all registered scope providersvoidPersists the specified scoped state
-
Field Details
-
VERSION
- See Also:
-
TIMESTAMP
- See Also:
-
VERSION_MAJOR
- See Also:
-
-
Constructor Details
-
GlobalStateManagerImpl
public GlobalStateManagerImpl()
-
-
Method Details
-
start
public void start() -
stop
public void stop() -
writeGlobalState
public void writeGlobalState()Description copied from interface:GlobalStateManagerPersists the global state by contacting all registered scope providers- Specified by:
writeGlobalStatein interfaceGlobalStateManager
-
writeScopedState
Description copied from interface:GlobalStateManagerPersists the specified scoped state- Specified by:
writeScopedStatein interfaceGlobalStateManager
-
deleteScopedState
Description copied from interface:GlobalStateManagerDelete the persistent state for the given scope- Specified by:
deleteScopedStatein interfaceGlobalStateManager
-
readScopedState
Description copied from interface:GlobalStateManagerReads the persistent state for the specified scope.- Specified by:
readScopedStatein interfaceGlobalStateManager
-
registerStateProvider
Description copied from interface:GlobalStateManagerRegisters a state provider within this state manager- Specified by:
registerStateProviderin interfaceGlobalStateManager
-