Package | Description |
---|---|
org.apache.zookeeper.server.quorum |
Modifier and Type | Method and Description |
---|---|
Vote |
QuorumPeer.getCurrentVote() |
Vote |
FastLeaderElection.getVote() |
Vote |
FastLeaderElection.lookForLeader()
Starts a new round of leader election.
|
Vote |
Election.lookForLeader() |
Modifier and Type | Method and Description |
---|---|
protected SyncedLearnerTracker |
FastLeaderElection.getVoteTracker(Map<Long,Vote> votes,
Vote vote)
Given a set of votes, return the SyncedLearnerTracker which is used to
determines if have sufficient to declare the end of the election round.
|
void |
QuorumPeer.setCurrentVote(Vote v) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
FastLeaderElection.checkLeader(Map<Long,Vote> votes,
long leader,
long electionEpoch)
In the case there is a leader elected, and a quorum supporting
this leader, we have to check if the leader has voted and acked
that it is leading.
|
protected SyncedLearnerTracker |
FastLeaderElection.getVoteTracker(Map<Long,Vote> votes,
Vote vote)
Given a set of votes, return the SyncedLearnerTracker which is used to
determines if have sufficient to declare the end of the election round.
|
Copyright © 2008–2020 The Apache Software Foundation. All rights reserved.