|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.zookeeper.server.quorum.AuthFastLeaderElection
public class AuthFastLeaderElection
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 |
---|
public AuthFastLeaderElection(QuorumPeer self, boolean auth)
public AuthFastLeaderElection(QuorumPeer self)
Method Detail |
---|
public void shutdown()
shutdown
in interface Election
public Vote lookForLeader() throws java.lang.InterruptedException
lookForLeader
in interface Election
java.lang.InterruptedException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |