public class LeaderSnapshot extends Object
| Modifier and Type | Method and Description |
|---|---|
LogIndex |
getCommitted() |
LogIndex |
getHead() |
Collection<ReplicaSnapshot> |
getReplicas() |
KetchLeader.State |
getState() |
long |
getTerm() |
boolean |
isIdle() |
String |
toString() |
public Collection<ReplicaSnapshot> getReplicas()
public KetchLeader.State getState()
public boolean isIdle()
true if the leader is not running a round to reach
consensus, and has no rounds queued.public long getTerm()
getState() is
currently KetchLeader.State.LEADER.@Nullable public LogIndex getHead()
@Nullable public LogIndex getCommitted()
Copyright © 2017 Eclipse JGit Project. All rights reserved.