Interface LeaderMXBean
-
- All Superinterfaces:
ZooKeeperServerMXBean
- All Known Implementing Classes:
LeaderBean
public interface LeaderMXBean extends ZooKeeperServerMXBean
Leader MBean.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
followerInfo()
java.lang.String
getCurrentZxid()
Current zxid of cluster.long
getElectionTimeTaken()
int
getLastProposalSize()
int
getMaxProposalSize()
int
getMinProposalSize()
void
resetProposalStatistics()
Resets statistics of proposal size (min/max/last)-
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
-
-
-
-
Method Detail
-
getCurrentZxid
java.lang.String getCurrentZxid()
Current zxid of cluster.
-
followerInfo
java.lang.String followerInfo()
- Returns:
- information on current followers
-
getElectionTimeTaken
long getElectionTimeTaken()
- Returns:
- time taken for leader election in milliseconds.
-
getLastProposalSize
int getLastProposalSize()
- Returns:
- size of latest generated proposal
-
getMinProposalSize
int getMinProposalSize()
- Returns:
- size of smallest generated proposal
-
getMaxProposalSize
int getMaxProposalSize()
- Returns:
- size of largest generated proposal
-
resetProposalStatistics
void resetProposalStatistics()
Resets statistics of proposal size (min/max/last)
-
-