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()
CPPersistenceService
isEnabled
in interface CPPersistenceService
public CPMetadataStore getCPMetadataStore()
CPPersistenceService
CPMember
identity of
the local Hazelcast member.getCPMetadataStore
in interface CPPersistenceService
public RaftStateStore createRaftStateStore(@Nonnull RaftGroupId groupId, @Nullable LogFileStructure logFileStructure)
CPPersistenceService
RaftStateStore
that is going to be used by the local Raft node
of the given CP group.createRaftStateStore
in interface CPPersistenceService
public void removeRaftStateStore(@Nonnull RaftGroupId groupId)
CPPersistenceService
removeRaftStateStore
in interface CPPersistenceService
public void reset()
CPPersistenceService
reset
in interface CPPersistenceService
Copyright © 2019 Hazelcast, Inc.. All rights reserved.