Package org.apache.zookeeper.server
Interface ZooKeeperServerMXBean
-
- All Known Subinterfaces:
FollowerMXBean,LeaderMXBean,ObserverMXBean
- All Known Implementing Classes:
FollowerBean,LeaderBean,ObserverBean,ReadOnlyBean,ZooKeeperServerBean
public interface ZooKeeperServerMXBeanZooKeeper server MBean.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description longgetAvgRequestLatency()java.lang.StringgetClientPort()longgetFsyncThresholdExceedCount()intgetJuteMaxBufferSize()intgetMaxClientCnxnsPerHost()Current maxClientCnxns allowed from a particular hostlonggetMaxRequestLatency()intgetMaxSessionTimeout()Current maxSessionTimeout of the server in millisecondslonggetMinRequestLatency()intgetMinSessionTimeout()Current minSessionTimeout of the server in millisecondslonggetNumAliveConnections()longgetOutstandingRequests()longgetPacketsReceived()longgetPacketsSent()java.lang.StringgetStartTime()intgetTickTime()Current TickTime of server in millisecondsjava.lang.StringgetVersion()voidresetFsyncThresholdExceedCount()Reset Fsync Threshold Exceed Count statistics only.voidresetLatency()Reset min/avg/max latency statisticsvoidresetMaxLatency()Reset max latency statistics only.voidresetStatistics()Reset packet and latency statisticsvoidsetMaxClientCnxnsPerHost(int max)Set maxClientCnxns allowed from a particular hostvoidsetMaxSessionTimeout(int max)Set maxSessionTimeout of server in millisecondsvoidsetMinSessionTimeout(int min)Set minSessionTimeout of server in millisecondsvoidsetTickTime(int tickTime)Set TickTime of server in milliseconds
-
-
-
Method Detail
-
getClientPort
java.lang.String getClientPort()
- Returns:
- the server socket port number
-
getVersion
java.lang.String getVersion()
- Returns:
- the zookeeper server version
-
getStartTime
java.lang.String getStartTime()
- Returns:
- time the server was started
-
getMinRequestLatency
long getMinRequestLatency()
- Returns:
- min request latency in ms
-
getAvgRequestLatency
long getAvgRequestLatency()
- Returns:
- average request latency in ms
-
getMaxRequestLatency
long getMaxRequestLatency()
- Returns:
- max request latency in ms
-
getPacketsReceived
long getPacketsReceived()
- Returns:
- number of packets received so far
-
getPacketsSent
long getPacketsSent()
- Returns:
- number of packets sent so far
-
getFsyncThresholdExceedCount
long getFsyncThresholdExceedCount()
- Returns:
- number of fsync threshold exceeds so far
-
getOutstandingRequests
long getOutstandingRequests()
- Returns:
- number of outstanding requests.
-
getTickTime
int getTickTime()
Current TickTime of server in milliseconds
-
setTickTime
void setTickTime(int tickTime)
Set TickTime of server in milliseconds
-
getMaxClientCnxnsPerHost
int getMaxClientCnxnsPerHost()
Current maxClientCnxns allowed from a particular host
-
setMaxClientCnxnsPerHost
void setMaxClientCnxnsPerHost(int max)
Set maxClientCnxns allowed from a particular host
-
getMinSessionTimeout
int getMinSessionTimeout()
Current minSessionTimeout of the server in milliseconds
-
setMinSessionTimeout
void setMinSessionTimeout(int min)
Set minSessionTimeout of server in milliseconds
-
getMaxSessionTimeout
int getMaxSessionTimeout()
Current maxSessionTimeout of the server in milliseconds
-
setMaxSessionTimeout
void setMaxSessionTimeout(int max)
Set maxSessionTimeout of server in milliseconds
-
resetStatistics
void resetStatistics()
Reset packet and latency statistics
-
resetLatency
void resetLatency()
Reset min/avg/max latency statistics
-
resetMaxLatency
void resetMaxLatency()
Reset max latency statistics only.
-
resetFsyncThresholdExceedCount
void resetFsyncThresholdExceedCount()
Reset Fsync Threshold Exceed Count statistics only.
-
getNumAliveConnections
long getNumAliveConnections()
- Returns:
- number of alive client connections
-
getJuteMaxBufferSize
int getJuteMaxBufferSize()
- Returns:
- Returns the value of the following config setting: jute.maxbuffer
-
-