| Package | Description | 
|---|---|
| org.apache.zookeeper.server.quorum | 
| Modifier and Type | Field and Description | 
|---|---|
Vote | 
LeaderElection.ElectionResult.vote  | 
Vote | 
LeaderElection.ElectionResult.winner  | 
| Modifier and Type | Method and Description | 
|---|---|
Vote | 
QuorumPeer.getCurrentVote()  | 
Vote | 
FastLeaderElection.getVote()  | 
Vote | 
AuthFastLeaderElection.lookForLeader()
Deprecated.  
Invoked in QuorumPeer to find or elect a new leader. 
 | 
Vote | 
FastLeaderElection.lookForLeader()
Starts a new round of leader election. 
 | 
Vote | 
Election.lookForLeader()  | 
Vote | 
LeaderElection.lookForLeader()
Deprecated.  
Invoked in QuorumPeer to find or elect a new leader. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
QuorumPeer.setCurrentVote(Vote v)  | 
protected boolean | 
FastLeaderElection.termPredicate(Map<Long,Vote> votes,
             Vote vote)
Termination predicate. 
 | 
| 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 LeaderElection.ElectionResult | 
LeaderElection.countVotes(HashMap<InetSocketAddress,Vote> votes,
          HashSet<Long> heardFrom)
Deprecated.  
  | 
protected boolean | 
FastLeaderElection.termPredicate(Map<Long,Vote> votes,
             Vote vote)
Termination predicate. 
 | 
Copyright © 2008–2021 The Apache Software Foundation. All rights reserved.