Class Snapshot
java.lang.Object
org.opendaylight.controller.cluster.raft.persisted.Snapshot
- All Implemented Interfaces:
Serializable
Represents a snapshot of the raft data.
- Author:
- Thomas Pantelis
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
Implementations of this interface are used as the state payload for a snapshot. -
Method Summary
Modifier and TypeMethodDescriptionstatic Snapshot
create
(Snapshot.State state, List<ReplicatedLogEntry> entries, long lastIndex, long lastTerm, long lastAppliedIndex, long lastAppliedTerm, long electionTerm, String electionVotedFor, ServerConfigurationPayload serverConfig) long
long
long
long
long
getState()
toString()
-
Method Details
-
create
public static Snapshot create(Snapshot.State state, List<ReplicatedLogEntry> entries, long lastIndex, long lastTerm, long lastAppliedIndex, long lastAppliedTerm, long electionTerm, String electionVotedFor, ServerConfigurationPayload serverConfig) -
getState
-
getUnAppliedEntries
-
getLastTerm
public long getLastTerm() -
getLastAppliedIndex
public long getLastAppliedIndex() -
getLastAppliedTerm
public long getLastAppliedTerm() -
getLastIndex
public long getLastIndex() -
getElectionTerm
public long getElectionTerm() -
getElectionVotedFor
-
getServerConfiguration
-
toString
-