org.apache.zookeeper.server.quorum
Class Follower

java.lang.Object
  extended by org.apache.zookeeper.server.quorum.Learner
      extended by org.apache.zookeeper.server.quorum.Follower

public class Follower
extends Learner

This class has the control logic for the Follower.


Field Summary
 
Fields inherited from class org.apache.zookeeper.server.quorum.Learner
bufferedOutput, leaderIs, leaderOs, leaderProtocolVersion, 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

toString

public String toString()
Overrides:
toString in class Object

processPacket

protected void processPacket(QuorumPacket qp)
                      throws IOException
Examine the packet received in qp and dispatch based on its contents.

Parameters:
qp -
Throws:
IOException

getZxid

public long getZxid()
The zxid of the last operation seen

Returns:
zxid

getLastQueued

protected long getLastQueued()
The zxid of the last operation queued

Returns:
zxid

shutdown

public void shutdown()
Description copied from class: Learner
Shutdown the Peer

Overrides:
shutdown in class Learner


Copyright © 2011 The Apache Software Foundation