org.apache.zookeeper.server.quorum
Class AuthFastLeaderElection
java.lang.Object
org.apache.zookeeper.server.quorum.AuthFastLeaderElection
- All Implemented Interfaces:
- Election
public class AuthFastLeaderElection
- extends Object
- implements Election
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 |
AuthFastLeaderElection
public AuthFastLeaderElection(QuorumPeer self,
boolean auth)
AuthFastLeaderElection
public AuthFastLeaderElection(QuorumPeer self)
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 InterruptedException
- Invoked in QuorumPeer to find or elect a new leader.
- Specified by:
lookForLeader
in interface Election
- Throws:
InterruptedException
Copyright © 2012 The Apache Software Foundation