Package org.apache.zookeeper.server
Interface ZooKeeperServerMXBean
-
- All Known Subinterfaces:
FollowerMXBean
,LeaderMXBean
,ObserverMXBean
- All Known Implementing Classes:
FollowerBean
,LeaderBean
,ObserverBean
,ReadOnlyBean
,ZooKeeperServerBean
public interface ZooKeeperServerMXBean
ZooKeeper server MBean.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description long
getAvgRequestLatency()
java.lang.String
getClientPort()
long
getFsyncThresholdExceedCount()
int
getJuteMaxBufferSize()
int
getMaxClientCnxnsPerHost()
Current maxClientCnxns allowed from a particular hostlong
getMaxRequestLatency()
int
getMaxSessionTimeout()
Current maxSessionTimeout of the server in millisecondslong
getMinRequestLatency()
int
getMinSessionTimeout()
Current minSessionTimeout of the server in millisecondslong
getNumAliveConnections()
long
getOutstandingRequests()
long
getPacketsReceived()
long
getPacketsSent()
java.lang.String
getStartTime()
int
getTickTime()
Current TickTime of server in millisecondsjava.lang.String
getVersion()
void
resetFsyncThresholdExceedCount()
Reset Fsync Threshold Exceed Count statistics only.void
resetLatency()
Reset min/avg/max latency statisticsvoid
resetMaxLatency()
Reset max latency statistics only.void
resetStatistics()
Reset packet and latency statisticsvoid
setMaxClientCnxnsPerHost(int max)
Set maxClientCnxns allowed from a particular hostvoid
setMaxSessionTimeout(int max)
Set maxSessionTimeout of server in millisecondsvoid
setMinSessionTimeout(int min)
Set minSessionTimeout of server in millisecondsvoid
setTickTime(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
-
-