- <init>
Constructor of FastLeaderElection. It takes two parameters, one is the
QuorumPeer object that instan
- checkLeader
In the case there is a leader elected, and a quorum supporting this leader, we
have to check if the
- getVote
- buildMsg
- getInitId
Returns the initial vote value of server identifier.
- getInitLastLoggedZxid
Returns initial last logged zxid.
- learningState
A learning state can be either FOLLOWING or OBSERVING. This method simply
decides which one dependin
- sendNotifications
Send notifications to all peers upon a change in our vote
- starter
This method is invoked by the constructor. Because it is a part of the starting
procedure of the obj
- totalOrderPredicate
Check if a pair (server id, zxid) succeeds our current vote.
- updateProposal
- getPeerEpoch
Returns the initial vote value of the peer epoch.