|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.zookeeper.server.quorum.Learner
org.apache.zookeeper.server.quorum.Follower
public class Follower
This class has the control logic for the Follower.
Field Summary |
---|
Fields inherited from class org.apache.zookeeper.server.quorum.Learner |
---|
bufferedOutput, leaderIs, leaderOs, LOG, sock |
Method Summary | |
---|---|
protected long |
getLastQueued()
The zxid of the last operation queued |
long |
getZxid()
The zxid of the last operation seen |
protected void |
processPacket(QuorumPacket qp)
Examine the packet received in qp and dispatch based on its contents. |
void |
shutdown()
Shutdown the Peer |
String |
toString()
|
Methods inherited from class org.apache.zookeeper.server.quorum.Learner |
---|
connectToLeader, findLeader, getPendingRevalidationsCount, getSocket, ping, registerWithLeader, revalidate, syncWithLeader |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public String toString()
toString
in class Object
protected void processPacket(QuorumPacket qp) throws IOException
qp
-
IOException
public long getZxid()
protected long getLastQueued()
public void shutdown()
Learner
shutdown
in class Learner
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |