Class Follower

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

public class Follower extends Learner
This class has the control logic for the Follower.
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • processPacket

      protected void processPacket(QuorumPacket qp) throws Exception
      Examine the packet received in qp and dispatch based on its contents.
      Parameters:
      qp -
      Throws:
      IOException
      Exception
    • 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
    • getSyncedObserverSize

      public Integer getSyncedObserverSize()
    • getSyncedObserversInfo

      public Iterable<Map<String,Object>> getSyncedObserversInfo()
    • resetObserverConnectionStats

      public void resetObserverConnectionStats()
    • shutdown

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