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 java.lang.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()
          Invoked in QuorumPeer to find or elect a new leader.
 void shutdown()
          There is nothing to shutdown in this implementation of leader election, so we simply have an empty method.
 
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

shutdown

public void shutdown()
There is nothing to shutdown in this implementation of leader election, so we simply have an empty method.

Specified by:
shutdown in interface Election

lookForLeader

public Vote lookForLeader()
                   throws java.lang.InterruptedException
Invoked in QuorumPeer to find or elect a new leader.

Specified by:
lookForLeader in interface Election
Throws:
java.lang.InterruptedException


Copyright © 2012 The Apache Software Foundation