org.apache.zookeeper.server.quorum
Class LeaderElection

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

public class LeaderElection
extends Object
implements Election


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

Constructor Detail

LeaderElection

public LeaderElection(QuorumPeer self)
Method Detail

lookForLeader

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