Uses of Class
org.apache.zookeeper.server.quorum.Vote
-
Packages that use Vote Package Description org.apache.zookeeper.server.quorum -
-
Uses of Vote in org.apache.zookeeper.server.quorum
Fields in org.apache.zookeeper.server.quorum declared as Vote Modifier and Type Field Description Vote
LeaderElection.ElectionResult. vote
Vote
LeaderElection.ElectionResult. winner
Methods in org.apache.zookeeper.server.quorum that return Vote Modifier and Type Method Description Vote
QuorumPeer. getCurrentVote()
Vote
AuthFastLeaderElection. lookForLeader()
Deprecated.Invoked in QuorumPeer to find or elect a new leader.Vote
Election. lookForLeader()
Vote
FastLeaderElection. lookForLeader()
Starts a new round of leader election.Vote
LeaderElection. lookForLeader()
Deprecated.Invoked in QuorumPeer to find or elect a new leader.Methods in org.apache.zookeeper.server.quorum with parameters of type Vote Modifier and Type Method Description void
QuorumPeer. setCurrentVote(Vote v)
protected boolean
FastLeaderElection. termPredicate(java.util.HashMap<java.lang.Long,Vote> votes, Vote vote)
Termination predicate.Method parameters in org.apache.zookeeper.server.quorum with type arguments of type Vote Modifier and Type Method Description protected boolean
FastLeaderElection. checkLeader(java.util.HashMap<java.lang.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(java.util.HashMap<java.net.InetSocketAddress,Vote> votes, java.util.HashSet<java.lang.Long> heardFrom)
Deprecated.protected boolean
FastLeaderElection. ooePredicate(java.util.HashMap<java.lang.Long,Vote> recv, java.util.HashMap<java.lang.Long,Vote> ooe, FastLeaderElection.Notification n)
This predicate checks that a leader has been elected.protected boolean
FastLeaderElection. termPredicate(java.util.HashMap<java.lang.Long,Vote> votes, Vote vote)
Termination predicate.
-