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() |
long |
getDataDirSize() |
long |
getFsyncThresholdExceedCount() |
int |
getJuteMaxBufferSize() |
int |
getLastClientResponseSize() |
long |
getLogDirSize() |
int |
getMaxClientCnxnsPerHost()
Current maxClientCnxns allowed from a particular host
|
int |
getMaxClientResponseSize() |
long |
getMaxRequestLatency() |
int |
getMaxSessionTimeout()
Current maxSessionTimeout of the server in milliseconds
|
int |
getMinClientResponseSize() |
long |
getMinRequestLatency() |
int |
getMinSessionTimeout()
Current minSessionTimeout of the server in milliseconds
|
String |
getName() |
long |
getNumAliveConnections() |
long |
getOutstandingRequests() |
long |
getPacketsReceived() |
long |
getPacketsSent() |
String |
getSecureClientAddress() |
String |
getSecureClientPort() |
String |
getStartTime() |
int |
getTickTime()
Current TickTime of server in milliseconds
|
long |
getTxnLogElapsedSyncTime()
Returns the elapsed sync of time of transaction log 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 |
resetFsyncThresholdExceedCount()
Reset Fsync Threshold Exceed Count statistics only.
|
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 getDataDirSize()
getDataDirSize
in interface ZooKeeperServerMXBean
public long getLogDirSize()
getLogDirSize
in interface ZooKeeperServerMXBean
public long getPacketsReceived()
getPacketsReceived
in interface ZooKeeperServerMXBean
public long getPacketsSent()
getPacketsSent
in interface ZooKeeperServerMXBean
public long getFsyncThresholdExceedCount()
getFsyncThresholdExceedCount
in interface ZooKeeperServerMXBean
public void resetLatency()
ZooKeeperServerMXBean
resetLatency
in interface ZooKeeperServerMXBean
public void resetMaxLatency()
ZooKeeperServerMXBean
resetMaxLatency
in interface ZooKeeperServerMXBean
public void resetFsyncThresholdExceedCount()
ZooKeeperServerMXBean
resetFsyncThresholdExceedCount
in interface ZooKeeperServerMXBean
public void resetStatistics()
ZooKeeperServerMXBean
resetStatistics
in interface ZooKeeperServerMXBean
public long getNumAliveConnections()
getNumAliveConnections
in interface ZooKeeperServerMXBean
public String getSecureClientPort()
getSecureClientPort
in interface ZooKeeperServerMXBean
public String getSecureClientAddress()
getSecureClientAddress
in interface ZooKeeperServerMXBean
public long getTxnLogElapsedSyncTime()
ZooKeeperServerMXBean
getTxnLogElapsedSyncTime
in interface ZooKeeperServerMXBean
public int getJuteMaxBufferSize()
getJuteMaxBufferSize
in interface ZooKeeperServerMXBean
public int getLastClientResponseSize()
getLastClientResponseSize
in interface ZooKeeperServerMXBean
public int getMinClientResponseSize()
getMinClientResponseSize
in interface ZooKeeperServerMXBean
public int getMaxClientResponseSize()
getMaxClientResponseSize
in interface ZooKeeperServerMXBean
Copyright © 2008–2019 The Apache Software Foundation. All rights reserved.