public class Snapshot extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static interface |
Snapshot.State
Implementations of this interface are used as the state payload for a snapshot.
|
Modifier and Type | Method and Description |
---|---|
static Snapshot |
create(Snapshot.State state,
List<ReplicatedLogEntry> entries,
long lastIndex,
long lastTerm,
long lastAppliedIndex,
long lastAppliedTerm,
long electionTerm,
String electionVotedFor,
ServerConfigurationPayload serverConfig) |
long |
getElectionTerm() |
String |
getElectionVotedFor() |
long |
getLastAppliedIndex() |
long |
getLastAppliedTerm() |
long |
getLastIndex() |
long |
getLastTerm() |
ServerConfigurationPayload |
getServerConfiguration() |
Snapshot.State |
getState() |
List<ReplicatedLogEntry> |
getUnAppliedEntries() |
String |
toString() |
public static Snapshot create(Snapshot.State state, List<ReplicatedLogEntry> entries, long lastIndex, long lastTerm, long lastAppliedIndex, long lastAppliedTerm, long electionTerm, String electionVotedFor, ServerConfigurationPayload serverConfig)
public Snapshot.State getState()
public List<ReplicatedLogEntry> getUnAppliedEntries()
public long getLastTerm()
public long getLastAppliedIndex()
public long getLastAppliedTerm()
public long getLastIndex()
public long getElectionTerm()
public String getElectionVotedFor()
public ServerConfigurationPayload getServerConfiguration()
Copyright © 2019 OpenDaylight. All rights reserved.