Class SyncedLearnerTracker
- java.lang.Object
-
- org.apache.zookeeper.server.quorum.SyncedLearnerTracker
-
- Direct Known Subclasses:
Leader.Proposal
public class SyncedLearnerTracker extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SyncedLearnerTracker.QuorumVerifierAcksetPair
-
Field Summary
Fields Modifier and Type Field Description protected ArrayList<SyncedLearnerTracker.QuorumVerifierAcksetPair>
qvAcksetPairs
-
Constructor Summary
Constructors Constructor Description SyncedLearnerTracker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
ackSetsToString()
boolean
addAck(Long sid)
void
addQuorumVerifier(QuorumVerifier qv)
boolean
hasAllQuorums()
boolean
hasSid(long sid)
-
-
-
Field Detail
-
qvAcksetPairs
protected ArrayList<SyncedLearnerTracker.QuorumVerifierAcksetPair> qvAcksetPairs
-
-
Method Detail
-
addQuorumVerifier
public void addQuorumVerifier(QuorumVerifier qv)
-
addAck
public boolean addAck(Long sid)
-
hasSid
public boolean hasSid(long sid)
-
hasAllQuorums
public boolean hasAllQuorums()
-
ackSetsToString
public String ackSetsToString()
-
-