public class LeaderBean extends ZooKeeperServerBean implements LeaderMXBean
zks
Constructor and Description |
---|
LeaderBean(Leader leader,
ZooKeeperServer zks) |
Modifier and Type | Method and Description |
---|---|
String |
followerInfo() |
String |
getCurrentZxid()
Current zxid of cluster.
|
long |
getElectionTimeTaken() |
int |
getLastProposalSize() |
int |
getMaxProposalSize() |
int |
getMinProposalSize() |
String |
getName() |
void |
resetProposalStatistics()
Resets statistics of proposal size (min/max/last)
|
getAvgRequestLatency, getClientPort, getDataDirSize, getFsyncThresholdExceedCount, getJuteMaxBufferSize, getLastClientResponseSize, getLogDirSize, getMaxClientCnxnsPerHost, getMaxClientResponseSize, getMaxRequestLatency, getMaxSessionTimeout, getMinClientResponseSize, getMinRequestLatency, getMinSessionTimeout, getNumAliveConnections, getOutstandingRequests, getPacketsReceived, getPacketsSent, getSecureClientAddress, getSecureClientPort, getStartTime, getTickTime, getTxnLogElapsedSyncTime, getVersion, isHidden, resetFsyncThresholdExceedCount, resetLatency, resetMaxLatency, resetStatistics, setMaxClientCnxnsPerHost, setMaxSessionTimeout, setMinSessionTimeout, setTickTime
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAvgRequestLatency, getClientPort, getDataDirSize, getFsyncThresholdExceedCount, getJuteMaxBufferSize, getLastClientResponseSize, getLogDirSize, getMaxClientCnxnsPerHost, getMaxClientResponseSize, getMaxRequestLatency, getMaxSessionTimeout, getMinClientResponseSize, getMinRequestLatency, getMinSessionTimeout, getNumAliveConnections, getOutstandingRequests, getPacketsReceived, getPacketsSent, getSecureClientAddress, getSecureClientPort, getStartTime, getTickTime, getTxnLogElapsedSyncTime, getVersion, resetFsyncThresholdExceedCount, resetLatency, resetMaxLatency, resetStatistics, setMaxClientCnxnsPerHost, setMaxSessionTimeout, setMinSessionTimeout, setTickTime
public LeaderBean(Leader leader, ZooKeeperServer zks)
public String getName()
getName
in interface ZKMBeanInfo
getName
in class ZooKeeperServerBean
public String getCurrentZxid()
LeaderMXBean
getCurrentZxid
in interface LeaderMXBean
public String followerInfo()
followerInfo
in interface LeaderMXBean
public long getElectionTimeTaken()
getElectionTimeTaken
in interface LeaderMXBean
public int getLastProposalSize()
getLastProposalSize
in interface LeaderMXBean
public int getMinProposalSize()
getMinProposalSize
in interface LeaderMXBean
public int getMaxProposalSize()
getMaxProposalSize
in interface LeaderMXBean
public void resetProposalStatistics()
LeaderMXBean
resetProposalStatistics
in interface LeaderMXBean
Copyright © 2008–2020 The Apache Software Foundation. All rights reserved.