org.apache.zookeeper.server
public class ZooKeeperServerBean extends Object implements ZooKeeperServerMXBean, ZKMBeanInfo
Modifier and Type | Field and Description |
---|---|
protected ZooKeeperServer |
zks |
Constructor and Description |
---|
ZooKeeperServerBean(ZooKeeperServer zks) |
Modifier and Type | Method and Description |
---|---|
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
|
String |
getName() |
long |
getOutstandingRequests() |
long |
getPacketsReceived() |
long |
getPacketsSent() |
String |
getStartTime() |
int |
getTickTime()
Current TickTime of server in milliseconds
|
String |
getVersion() |
boolean |
isHidden()
If isHidden returns true, the MBean won't be registered with MBean server,
and thus won't be available for management tools.
|
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
|
protected final ZooKeeperServer zks
public ZooKeeperServerBean(ZooKeeperServer zks)
public String getClientPort()
getClientPort
in interface ZooKeeperServerMXBean
public String getName()
getName
in interface ZKMBeanInfo
public boolean isHidden()
ZKMBeanInfo
isHidden
in interface ZKMBeanInfo
public String getStartTime()
getStartTime
in interface ZooKeeperServerMXBean
public String getVersion()
getVersion
in interface ZooKeeperServerMXBean
public long getAvgRequestLatency()
getAvgRequestLatency
in interface ZooKeeperServerMXBean
public long getMaxRequestLatency()
getMaxRequestLatency
in interface ZooKeeperServerMXBean
public long getMinRequestLatency()
getMinRequestLatency
in interface ZooKeeperServerMXBean
public long getOutstandingRequests()
getOutstandingRequests
in interface ZooKeeperServerMXBean
public int getTickTime()
ZooKeeperServerMXBean
getTickTime
in interface ZooKeeperServerMXBean
public void setTickTime(int tickTime)
ZooKeeperServerMXBean
setTickTime
in interface ZooKeeperServerMXBean
public int getMaxClientCnxnsPerHost()
ZooKeeperServerMXBean
getMaxClientCnxnsPerHost
in interface ZooKeeperServerMXBean
public void setMaxClientCnxnsPerHost(int max)
ZooKeeperServerMXBean
setMaxClientCnxnsPerHost
in interface ZooKeeperServerMXBean
public int getMinSessionTimeout()
ZooKeeperServerMXBean
getMinSessionTimeout
in interface ZooKeeperServerMXBean
public void setMinSessionTimeout(int min)
ZooKeeperServerMXBean
setMinSessionTimeout
in interface ZooKeeperServerMXBean
public int getMaxSessionTimeout()
ZooKeeperServerMXBean
getMaxSessionTimeout
in interface ZooKeeperServerMXBean
public void setMaxSessionTimeout(int max)
ZooKeeperServerMXBean
setMaxSessionTimeout
in interface ZooKeeperServerMXBean
public long getPacketsReceived()
getPacketsReceived
in interface ZooKeeperServerMXBean
public long getPacketsSent()
getPacketsSent
in interface ZooKeeperServerMXBean
public void resetLatency()
ZooKeeperServerMXBean
resetLatency
in interface ZooKeeperServerMXBean
public void resetMaxLatency()
ZooKeeperServerMXBean
resetMaxLatency
in interface ZooKeeperServerMXBean
public void resetStatistics()
ZooKeeperServerMXBean
resetStatistics
in interface ZooKeeperServerMXBean
Copyright © 2014 The Apache Software Foundation