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.lookForLeader()
Starts a new round of leader election.
|
Vote |
Election.lookForLeader() |
Vote |
AuthFastLeaderElection.lookForLeader()
Deprecated.
Invoked in QuorumPeer to find or elect a new leader.
|
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(java.util.HashMap<java.lang.Long,Vote> votes,
Vote vote)
Termination predicate.
|
Modifier and Type | Method and 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.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.
|
Copyright © 2016 The Apache Software Foundation