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 GlobalStateProvider
s
- Since:
- 8.1
- Author:
- Tristan Tarrant
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteScopedState
(String scope) Delete the persistent state for the given scopereadScopedState
(String scope) Reads the persistent state for the specified scope.void
registerStateProvider
(GlobalStateProvider provider) Registers a state provider within this state managervoid
start()
void
stop()
void
Persists the global state by contacting all registered scope providersvoid
Persists 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:GlobalStateManager
Persists the global state by contacting all registered scope providers- Specified by:
writeGlobalState
in interfaceGlobalStateManager
-
writeScopedState
Description copied from interface:GlobalStateManager
Persists the specified scoped state- Specified by:
writeScopedState
in interfaceGlobalStateManager
-
deleteScopedState
Description copied from interface:GlobalStateManager
Delete the persistent state for the given scope- Specified by:
deleteScopedState
in interfaceGlobalStateManager
-
readScopedState
Description copied from interface:GlobalStateManager
Reads the persistent state for the specified scope.- Specified by:
readScopedState
in interfaceGlobalStateManager
-
registerStateProvider
Description copied from interface:GlobalStateManager
Registers a state provider within this state manager- Specified by:
registerStateProvider
in interfaceGlobalStateManager
- Parameters:
provider
-
-