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 long
getElectionTimeTaken()
java.lang.String
getLastQueuedZxid()
java.lang.String
getName()
int
getPendingRevalidationCount()
java.lang.String
getQuorumAddress()
-
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:
getName
in interfaceZKMBeanInfo
- Overrides:
getName
in classZooKeeperServerBean
- Returns:
- a string identifying the MBean
-
getQuorumAddress
public java.lang.String getQuorumAddress()
- Specified by:
getQuorumAddress
in interfaceFollowerMXBean
- Returns:
- socket address
-
getLastQueuedZxid
public java.lang.String getLastQueuedZxid()
- Specified by:
getLastQueuedZxid
in interfaceFollowerMXBean
- Returns:
- last queued zxid
-
getPendingRevalidationCount
public int getPendingRevalidationCount()
- Specified by:
getPendingRevalidationCount
in interfaceFollowerMXBean
- Returns:
- count of pending revalidations
-
getElectionTimeTaken
public long getElectionTimeTaken()
- Specified by:
getElectionTimeTaken
in interfaceFollowerMXBean
- Returns:
- time taken for leader election in milliseconds.
-
-