Class AuthFastLeaderElection
- java.lang.Object
-
- org.apache.zookeeper.server.quorum.AuthFastLeaderElection
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AuthFastLeaderElection.Notification
Deprecated.static class
AuthFastLeaderElection.ToSend
Deprecated.
-
Constructor Summary
Constructors Constructor Description AuthFastLeaderElection(QuorumPeer self)
Deprecated.AuthFastLeaderElection(QuorumPeer self, boolean auth)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description Vote
lookForLeader()
Deprecated.Invoked in QuorumPeer to find or elect a new leader.void
shutdown()
Deprecated.There is nothing to shutdown in this implementation of leader election, so we simply have an empty method.
-
-
-
Constructor Detail
-
AuthFastLeaderElection
public AuthFastLeaderElection(QuorumPeer self, boolean auth)
Deprecated.
-
AuthFastLeaderElection
public AuthFastLeaderElection(QuorumPeer self)
Deprecated.
-
-
Method Detail
-
shutdown
public void shutdown()
Deprecated.There is nothing to shutdown in this implementation of leader election, so we simply have an empty method.
-
lookForLeader
public Vote lookForLeader() throws java.lang.InterruptedException
Deprecated.Invoked in QuorumPeer to find or elect a new leader.- Specified by:
lookForLeader
in interfaceElection
- Throws:
java.lang.InterruptedException
-
-