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
 long getAvgRequestLatency()
           
 String getClientPort()
           
 int getMaxClientCnxnsPerHost()
          Current maxClientCnxns allowed from a particular host
 long getMaxRequestLatency()
           
 int getMaxSessionTimeout()
          Current maxSessionTimeout of the server in milliseconds
 long getMinRequestLatency()
           
 int getMinSessionTimeout()
          Current minSessionTimeout of the server in milliseconds
 long getOutstandingRequests()
           
 long getPacketsReceived()
           
 long getPacketsSent()
           
 String getStartTime()
           
 int getTickTime()
          Current TickTime of server in milliseconds
 String getVersion()
           
 void resetLatency()
          Reset min/avg/max latency statistics
 void resetMaxLatency()
          Reset max latency statistics only.
 void resetStatistics()
          Reset packet and latency statistics
 void setMaxClientCnxnsPerHost(int max)
          Set maxClientCnxns allowed from a particular host
 void setMaxSessionTimeout(int max)
          Set maxSessionTimeout of server in milliseconds
 void setMinSessionTimeout(int min)
          Set minSessionTimeout of server in milliseconds
 void setTickTime(int tickTime)
          Set TickTime of server in milliseconds
 

Method Detail

getClientPort

String getClientPort()
Returns:
the server socket port number

getVersion

String getVersion()
Returns:
the zookeeper server version

getStartTime

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

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.



Copyright © 2011 The Apache Software Foundation