public final class NopCPPersistenceService extends Object implements CPPersistenceService
| Modifier and Type | Field and Description |
|---|---|
static CPPersistenceService |
INSTANCE |
| Constructor and Description |
|---|
NopCPPersistenceService() |
| Modifier and Type | Method and Description |
|---|---|
RaftStateStore |
createRaftStateStore(RaftGroupId groupId,
LogFileStructure logFileStructure)
Creates a
RaftStateStore that is going to be used by the local Raft node
of the given CP group. |
CPMetadataStore |
getCPMetadataStore()
Returns the utility that is used for storing
CPMember identity of
the local Hazelcast member. |
boolean |
isEnabled()
Returns if the CP state persistence is enabled or not.
|
void |
removeRaftStateStore(RaftGroupId groupId)
Removes the store associated with groupId,
removes all persisted state and releases acquired resources.
|
void |
reset()
Deletes all persisted data from the storage.
|
public static final CPPersistenceService INSTANCE
public boolean isEnabled()
CPPersistenceServiceisEnabled in interface CPPersistenceServicepublic CPMetadataStore getCPMetadataStore()
CPPersistenceServiceCPMember identity of
the local Hazelcast member.getCPMetadataStore in interface CPPersistenceServicepublic RaftStateStore createRaftStateStore(@Nonnull RaftGroupId groupId, @Nullable LogFileStructure logFileStructure)
CPPersistenceServiceRaftStateStore that is going to be used by the local Raft node
of the given CP group.createRaftStateStore in interface CPPersistenceServicepublic void removeRaftStateStore(@Nonnull RaftGroupId groupId)
CPPersistenceServiceremoveRaftStateStore in interface CPPersistenceServicepublic void reset()
CPPersistenceServicereset in interface CPPersistenceServiceCopyright © 2019 Hazelcast, Inc.. All rights reserved.