org.apache.zookeeper.server.quorum
Class AuthFastLeaderElection

java.lang.Object
  extended by org.apache.zookeeper.server.quorum.AuthFastLeaderElection
All Implemented Interfaces:
Election

public class AuthFastLeaderElection
extends Object
implements Election


Nested Class Summary
static class AuthFastLeaderElection.Notification
           
static class AuthFastLeaderElection.ToSend
           
 
Constructor Summary
AuthFastLeaderElection(QuorumPeer self)
           
AuthFastLeaderElection(QuorumPeer self, boolean auth)
           
 
Method Summary
 Vote lookForLeader()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthFastLeaderElection

public AuthFastLeaderElection(QuorumPeer self,
                              boolean auth)

AuthFastLeaderElection

public AuthFastLeaderElection(QuorumPeer self)
Method Detail

lookForLeader

public Vote lookForLeader()
                   throws InterruptedException
Specified by:
lookForLeader in interface Election
Throws:
InterruptedException