org.apache.zookeeper.server.quorum
Class LeaderBean
java.lang.Object
org.apache.zookeeper.server.ZooKeeperServerBean
org.apache.zookeeper.server.quorum.LeaderBean
- All Implemented Interfaces:
- ZKMBeanInfo, LeaderMXBean, ZooKeeperServerMXBean
public class LeaderBean
- extends ZooKeeperServerBean
- implements LeaderMXBean
Leader MBean interface implementation.
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 |
LeaderBean
public LeaderBean(Leader leader,
ZooKeeperServer zks)
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 © 2012 The Apache Software Foundation