Class FollowerBean
- java.lang.Object
-
- org.apache.zookeeper.server.ZooKeeperServerBean
-
- org.apache.zookeeper.server.quorum.FollowerBean
-
- All Implemented Interfaces:
ZKMBeanInfo,FollowerMXBean,ZooKeeperServerMXBean
public class FollowerBean extends ZooKeeperServerBean implements FollowerMXBean
Follower MBean interface implementation.
-
-
Field Summary
-
Fields inherited from class org.apache.zookeeper.server.ZooKeeperServerBean
zks
-
-
Constructor Summary
Constructors Constructor Description FollowerBean(Follower follower, ZooKeeperServer zks)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetElectionTimeTaken()java.lang.StringgetLastQueuedZxid()java.lang.StringgetName()intgetPendingRevalidationCount()java.lang.StringgetQuorumAddress()-
Methods inherited from class org.apache.zookeeper.server.ZooKeeperServerBean
getAvgRequestLatency, getClientPort, getFsyncThresholdExceedCount, getJuteMaxBufferSize, getMaxClientCnxnsPerHost, getMaxRequestLatency, getMaxSessionTimeout, getMinRequestLatency, getMinSessionTimeout, getNumAliveConnections, getOutstandingRequests, getPacketsReceived, getPacketsSent, getStartTime, getTickTime, getVersion, isHidden, resetFsyncThresholdExceedCount, 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, getFsyncThresholdExceedCount, getJuteMaxBufferSize, getMaxClientCnxnsPerHost, getMaxRequestLatency, getMaxSessionTimeout, getMinRequestLatency, getMinSessionTimeout, getNumAliveConnections, getOutstandingRequests, getPacketsReceived, getPacketsSent, getStartTime, getTickTime, getVersion, resetFsyncThresholdExceedCount, resetLatency, resetMaxLatency, resetStatistics, setMaxClientCnxnsPerHost, setMaxSessionTimeout, setMinSessionTimeout, setTickTime
-
-
-
-
Constructor Detail
-
FollowerBean
public FollowerBean(Follower follower, ZooKeeperServer zks)
-
-
Method Detail
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceZKMBeanInfo- Overrides:
getNamein classZooKeeperServerBean- Returns:
- a string identifying the MBean
-
getQuorumAddress
public java.lang.String getQuorumAddress()
- Specified by:
getQuorumAddressin interfaceFollowerMXBean- Returns:
- socket address
-
getLastQueuedZxid
public java.lang.String getLastQueuedZxid()
- Specified by:
getLastQueuedZxidin interfaceFollowerMXBean- Returns:
- last queued zxid
-
getPendingRevalidationCount
public int getPendingRevalidationCount()
- Specified by:
getPendingRevalidationCountin interfaceFollowerMXBean- Returns:
- count of pending revalidations
-
getElectionTimeTaken
public long getElectionTimeTaken()
- Specified by:
getElectionTimeTakenin interfaceFollowerMXBean- Returns:
- time taken for leader election in milliseconds.
-
-