Class OnDemandRaftState
java.lang.Object
org.opendaylight.controller.cluster.raft.client.messages.OnDemandRaftState
- Direct Known Subclasses:
OnDemandShardState
The response to a GetOnDemandRaftState message.
- Author:
- Thomas Pantelis
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
OnDemandRaftState.AbstractBuilder<B extends OnDemandRaftState.AbstractBuilder<B,
T>, T extends OnDemandRaftState> static class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OnDemandRaftState.Builder
builder()
long
long
long
long
long
long
long
long
long
long
long
long
boolean
boolean
isVoting()
-
Constructor Details
-
OnDemandRaftState
protected OnDemandRaftState()
-
-
Method Details
-
builder
-
getLastLogIndex
public long getLastLogIndex() -
getLastLogTerm
public long getLastLogTerm() -
getCurrentTerm
public long getCurrentTerm() -
getCommitIndex
public long getCommitIndex() -
getLastApplied
public long getLastApplied() -
getLastIndex
public long getLastIndex() -
getLastTerm
public long getLastTerm() -
getSnapshotIndex
public long getSnapshotIndex() -
getSnapshotTerm
public long getSnapshotTerm() -
getReplicatedToAllIndex
public long getReplicatedToAllIndex() -
getInMemoryJournalDataSize
public long getInMemoryJournalDataSize() -
getInMemoryJournalLogSize
public long getInMemoryJournalLogSize() -
getLeader
-
getRaftState
-
getVotedFor
-
isSnapshotCaptureInitiated
public boolean isSnapshotCaptureInitiated() -
isVoting
public boolean isVoting() -
getFollowerInfoList
-
getPeerAddresses
-
getPeerVotingStates
-
getCustomRaftPolicyClassName
-