org.apache.zookeeper.server.quorum
Class LeaderBean

java.lang.Object
  extended by org.apache.zookeeper.server.ZooKeeperServerBean
      extended by org.apache.zookeeper.server.quorum.LeaderBean
All Implemented Interfaces:
ZKMBeanInfo, LeaderMXBean, ZooKeeperServerMXBean

public class LeaderBean
extends ZooKeeperServerBean
implements LeaderMXBean

Leader MBean interface implementation.


Field Summary
 
Fields inherited from class org.apache.zookeeper.server.ZooKeeperServerBean
zks
 
Constructor Summary
LeaderBean(Leader leader, ZooKeeperServer zks)
           
 
Method Summary
 String followerInfo()
           
 String getCurrentZxid()
          Current zxid of cluster.
 String getName()
           
 
Methods inherited from class org.apache.zookeeper.server.ZooKeeperServerBean
getAvgRequestLatency, getClientPort, getMaxClientCnxnsPerHost, getMaxRequestLatency, getMaxSessionTimeout, getMinRequestLatency, getMinSessionTimeout, getOutstandingRequests, getPacketsReceived, getPacketsSent, getStartTime, getTickTime, getVersion, isHidden, resetLatency, resetMaxLatency, resetStatistics, setMaxClientCnxnsPerHost, setMaxSessionTimeout, setMinSessionTimeout, setTickTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.zookeeper.server.ZooKeeperServerMXBean
getAvgRequestLatency, getClientPort, getMaxClientCnxnsPerHost, getMaxRequestLatency, getMaxSessionTimeout, getMinRequestLatency, getMinSessionTimeout, getOutstandingRequests, getPacketsReceived, getPacketsSent, getStartTime, getTickTime, getVersion, resetLatency, resetMaxLatency, resetStatistics, setMaxClientCnxnsPerHost, setMaxSessionTimeout, setMinSessionTimeout, setTickTime
 

Constructor Detail

LeaderBean

public LeaderBean(Leader leader,
                  ZooKeeperServer zks)
Method Detail

getName

public String getName()
Specified by:
getName in interface ZKMBeanInfo
Overrides:
getName in class ZooKeeperServerBean
Returns:
a string identifying the MBean

getCurrentZxid

public String getCurrentZxid()
Description copied from interface: LeaderMXBean
Current zxid of cluster.

Specified by:
getCurrentZxid in interface LeaderMXBean

followerInfo

public String followerInfo()
Specified by:
followerInfo in interface LeaderMXBean
Returns:
information on current followers


Copyright © 2011 The Apache Software Foundation