Package org.apache.zookeeper.server
Class ZooKeeperServerBean
- java.lang.Object
- 
- org.apache.zookeeper.server.ZooKeeperServerBean
 
- 
- All Implemented Interfaces:
- ZKMBeanInfo,- ZooKeeperServerMXBean
 - Direct Known Subclasses:
- FollowerBean,- LeaderBean,- ObserverBean,- ReadOnlyBean
 
 public class ZooKeeperServerBean extends Object implements ZooKeeperServerMXBean, ZKMBeanInfo This class implements the ZooKeeper server MBean interface.
- 
- 
Field SummaryFields Modifier and Type Field Description protected ZooKeeperServerzks
 - 
Constructor SummaryConstructors Constructor Description ZooKeeperServerBean(ZooKeeperServer zks)
 - 
Method Summary
 
- 
- 
- 
Field Detail- 
zksprotected final ZooKeeperServer zks 
 
- 
 - 
Constructor Detail- 
ZooKeeperServerBeanpublic ZooKeeperServerBean(ZooKeeperServer zks) 
 
- 
 - 
Method Detail- 
getClientPortpublic String getClientPort() - Specified by:
- getClientPortin interface- ZooKeeperServerMXBean
- Returns:
- the server socket port number
 
 - 
getNamepublic String getName() - Specified by:
- getNamein interface- ZKMBeanInfo
- Returns:
- a string identifying the MBean
 
 - 
isHiddenpublic boolean isHidden() Description copied from interface:ZKMBeanInfoIf isHidden returns true, the MBean won't be registered with MBean server, and thus won't be available for management tools. Used for grouping MBeans.- Specified by:
- isHiddenin interface- ZKMBeanInfo
- Returns:
- true if the MBean is hidden.
 
 - 
getStartTimepublic String getStartTime() - Specified by:
- getStartTimein interface- ZooKeeperServerMXBean
- Returns:
- time the server was started
 
 - 
getVersionpublic String getVersion() - Specified by:
- getVersionin interface- ZooKeeperServerMXBean
- Returns:
- the zookeeper server version
 
 - 
getAvgRequestLatencypublic double getAvgRequestLatency() - Specified by:
- getAvgRequestLatencyin interface- ZooKeeperServerMXBean
- Returns:
- average request latency in ms
 
 - 
getMaxRequestLatencypublic long getMaxRequestLatency() - Specified by:
- getMaxRequestLatencyin interface- ZooKeeperServerMXBean
- Returns:
- max request latency in ms
 
 - 
getMinRequestLatencypublic long getMinRequestLatency() - Specified by:
- getMinRequestLatencyin interface- ZooKeeperServerMXBean
- Returns:
- min request latency in ms
 
 - 
getOutstandingRequestspublic long getOutstandingRequests() - Specified by:
- getOutstandingRequestsin interface- ZooKeeperServerMXBean
- Returns:
- number of outstanding requests.
 
 - 
getTickTimepublic int getTickTime() Description copied from interface:ZooKeeperServerMXBeanCurrent TickTime of server in milliseconds- Specified by:
- getTickTimein interface- ZooKeeperServerMXBean
 
 - 
setTickTimepublic void setTickTime(int tickTime) Description copied from interface:ZooKeeperServerMXBeanSet TickTime of server in milliseconds- Specified by:
- setTickTimein interface- ZooKeeperServerMXBean
 
 - 
getMaxClientCnxnsPerHostpublic int getMaxClientCnxnsPerHost() Description copied from interface:ZooKeeperServerMXBeanCurrent maxClientCnxns allowed from a particular host- Specified by:
- getMaxClientCnxnsPerHostin interface- ZooKeeperServerMXBean
 
 - 
setMaxClientCnxnsPerHostpublic void setMaxClientCnxnsPerHost(int max) Description copied from interface:ZooKeeperServerMXBeanSet maxClientCnxns allowed from a particular host- Specified by:
- setMaxClientCnxnsPerHostin interface- ZooKeeperServerMXBean
 
 - 
getMinSessionTimeoutpublic int getMinSessionTimeout() Description copied from interface:ZooKeeperServerMXBeanCurrent minSessionTimeout of the server in milliseconds- Specified by:
- getMinSessionTimeoutin interface- ZooKeeperServerMXBean
 
 - 
setMinSessionTimeoutpublic void setMinSessionTimeout(int min) Description copied from interface:ZooKeeperServerMXBeanSet minSessionTimeout of server in milliseconds- Specified by:
- setMinSessionTimeoutin interface- ZooKeeperServerMXBean
 
 - 
getMaxSessionTimeoutpublic int getMaxSessionTimeout() Description copied from interface:ZooKeeperServerMXBeanCurrent maxSessionTimeout of the server in milliseconds- Specified by:
- getMaxSessionTimeoutin interface- ZooKeeperServerMXBean
 
 - 
setMaxSessionTimeoutpublic void setMaxSessionTimeout(int max) Description copied from interface:ZooKeeperServerMXBeanSet maxSessionTimeout of server in milliseconds- Specified by:
- setMaxSessionTimeoutin interface- ZooKeeperServerMXBean
 
 - 
getDataDirSizepublic long getDataDirSize() - Specified by:
- getDataDirSizein interface- ZooKeeperServerMXBean
- Returns:
- estimated size of data directory in bytes
 
 - 
getLogDirSizepublic long getLogDirSize() - Specified by:
- getLogDirSizein interface- ZooKeeperServerMXBean
- Returns:
- estimated size of log directory in bytes
 
 - 
getPacketsReceivedpublic long getPacketsReceived() - Specified by:
- getPacketsReceivedin interface- ZooKeeperServerMXBean
- Returns:
- number of packets received so far
 
 - 
getPacketsSentpublic long getPacketsSent() - Specified by:
- getPacketsSentin interface- ZooKeeperServerMXBean
- Returns:
- number of packets sent so far
 
 - 
getFsyncThresholdExceedCountpublic long getFsyncThresholdExceedCount() - Specified by:
- getFsyncThresholdExceedCountin interface- ZooKeeperServerMXBean
- Returns:
- number of fsync threshold exceeds so far
 
 - 
getAuthFailedCountpublic long getAuthFailedCount() - Specified by:
- getAuthFailedCountin interface- ZooKeeperServerMXBean
- Returns:
- number of AuthFailedCount so far
 
 - 
getNonMTLSRemoteConnCountpublic long getNonMTLSRemoteConnCount() - Specified by:
- getNonMTLSRemoteConnCountin interface- ZooKeeperServerMXBean
- Returns:
- number of NonMTLSRemoteConnCount so far
 
 - 
getNonMTLSLocalConnCountpublic long getNonMTLSLocalConnCount() - Specified by:
- getNonMTLSLocalConnCountin interface- ZooKeeperServerMXBean
- Returns:
- number of NonMTLSLocalConnCount so far
 
 - 
resetLatencypublic void resetLatency() Description copied from interface:ZooKeeperServerMXBeanReset min/avg/max latency statistics- Specified by:
- resetLatencyin interface- ZooKeeperServerMXBean
 
 - 
resetMaxLatencypublic void resetMaxLatency() Description copied from interface:ZooKeeperServerMXBeanReset max latency statistics only.- Specified by:
- resetMaxLatencyin interface- ZooKeeperServerMXBean
 
 - 
resetFsyncThresholdExceedCountpublic void resetFsyncThresholdExceedCount() Description copied from interface:ZooKeeperServerMXBeanReset Fsync Threshold Exceed Count statistics only.- Specified by:
- resetFsyncThresholdExceedCountin interface- ZooKeeperServerMXBean
 
 - 
resetAuthFailedCountpublic void resetAuthFailedCount() Description copied from interface:ZooKeeperServerMXBeanReset AuthFailedCount statistics only.- Specified by:
- resetAuthFailedCountin interface- ZooKeeperServerMXBean
 
 - 
resetNonMTLSConnCountpublic void resetNonMTLSConnCount() Description copied from interface:ZooKeeperServerMXBeanReset NonMTLS(Local+Remote)ConnCount statistics only.- Specified by:
- resetNonMTLSConnCountin interface- ZooKeeperServerMXBean
 
 - 
resetStatisticspublic void resetStatistics() Description copied from interface:ZooKeeperServerMXBeanReset packet and latency statistics- Specified by:
- resetStatisticsin interface- ZooKeeperServerMXBean
 
 - 
getNumAliveConnectionspublic long getNumAliveConnections() - Specified by:
- getNumAliveConnectionsin interface- ZooKeeperServerMXBean
- Returns:
- number of alive client connections
 
 - 
getSecureClientPortpublic String getSecureClientPort() - Specified by:
- getSecureClientPortin interface- ZooKeeperServerMXBean
- Returns:
- secure client port
 
 - 
getSecureClientAddresspublic String getSecureClientAddress() - Specified by:
- getSecureClientAddressin interface- ZooKeeperServerMXBean
- Returns:
- secure client address
 
 - 
getTxnLogElapsedSyncTimepublic long getTxnLogElapsedSyncTime() Description copied from interface:ZooKeeperServerMXBeanReturns the elapsed sync of time of transaction log in milliseconds.- Specified by:
- getTxnLogElapsedSyncTimein interface- ZooKeeperServerMXBean
 
 - 
getJuteMaxBufferSizepublic int getJuteMaxBufferSize() - Specified by:
- getJuteMaxBufferSizein interface- ZooKeeperServerMXBean
- Returns:
- Returns the value of the following config setting: jute.maxbuffer
 
 - 
getLastClientResponseSizepublic int getLastClientResponseSize() - Specified by:
- getLastClientResponseSizein interface- ZooKeeperServerMXBean
- Returns:
- size of latest generated client response
 
 - 
getMinClientResponseSizepublic int getMinClientResponseSize() - Specified by:
- getMinClientResponseSizein interface- ZooKeeperServerMXBean
- Returns:
- size of smallest generated client response
 
 - 
getMaxClientResponseSizepublic int getMaxClientResponseSize() - Specified by:
- getMaxClientResponseSizein interface- ZooKeeperServerMXBean
- Returns:
- size of largest generated client response
 
 - 
getResponseCachingEnabledpublic boolean getResponseCachingEnabled() - Specified by:
- getResponseCachingEnabledin interface- ZooKeeperServerMXBean
 
 - 
setResponseCachingEnabledpublic void setResponseCachingEnabled(boolean isEnabled) - Specified by:
- setResponseCachingEnabledin interface- ZooKeeperServerMXBean
 
 - 
getConnectionMaxTokenspublic int getConnectionMaxTokens() - Specified by:
- getConnectionMaxTokensin interface- ZooKeeperServerMXBean
 
 - 
setConnectionMaxTokenspublic void setConnectionMaxTokens(int val) - Specified by:
- setConnectionMaxTokensin interface- ZooKeeperServerMXBean
 
 - 
getConnectionTokenFillTimepublic int getConnectionTokenFillTime() - Specified by:
- getConnectionTokenFillTimein interface- ZooKeeperServerMXBean
 
 - 
setConnectionTokenFillTimepublic void setConnectionTokenFillTime(int val) - Specified by:
- setConnectionTokenFillTimein interface- ZooKeeperServerMXBean
 
 - 
getConnectionTokenFillCountpublic int getConnectionTokenFillCount() - Specified by:
- getConnectionTokenFillCountin interface- ZooKeeperServerMXBean
 
 - 
setConnectionTokenFillCountpublic void setConnectionTokenFillCount(int val) - Specified by:
- setConnectionTokenFillCountin interface- ZooKeeperServerMXBean
 
 - 
getConnectionFreezeTimepublic int getConnectionFreezeTime() - Specified by:
- getConnectionFreezeTimein interface- ZooKeeperServerMXBean
 
 - 
setConnectionFreezeTimepublic void setConnectionFreezeTime(int val) - Specified by:
- setConnectionFreezeTimein interface- ZooKeeperServerMXBean
 
 - 
getConnectionDropIncreasepublic double getConnectionDropIncrease() - Specified by:
- getConnectionDropIncreasein interface- ZooKeeperServerMXBean
 
 - 
setConnectionDropIncreasepublic void setConnectionDropIncrease(double val) - Specified by:
- setConnectionDropIncreasein interface- ZooKeeperServerMXBean
 
 - 
getConnectionDropDecreasepublic double getConnectionDropDecrease() - Specified by:
- getConnectionDropDecreasein interface- ZooKeeperServerMXBean
 
 - 
setConnectionDropDecreasepublic void setConnectionDropDecrease(double val) - Specified by:
- setConnectionDropDecreasein interface- ZooKeeperServerMXBean
 
 - 
getConnectionDecreaseRatiopublic double getConnectionDecreaseRatio() - Specified by:
- getConnectionDecreaseRatioin interface- ZooKeeperServerMXBean
 
 - 
setConnectionDecreaseRatiopublic void setConnectionDecreaseRatio(double val) - Specified by:
- setConnectionDecreaseRatioin interface- ZooKeeperServerMXBean
 
 - 
getCommitProcMaxReadBatchSizepublic int getCommitProcMaxReadBatchSize() - Specified by:
- getCommitProcMaxReadBatchSizein interface- ZooKeeperServerMXBean
 
 - 
setCommitProcMaxReadBatchSizepublic void setCommitProcMaxReadBatchSize(int size) - Specified by:
- setCommitProcMaxReadBatchSizein interface- ZooKeeperServerMXBean
 
 - 
getCommitProcMaxCommitBatchSizepublic int getCommitProcMaxCommitBatchSize() - Specified by:
- getCommitProcMaxCommitBatchSizein interface- ZooKeeperServerMXBean
 
 - 
setCommitProcMaxCommitBatchSizepublic void setCommitProcMaxCommitBatchSize(int size) - Specified by:
- setCommitProcMaxCommitBatchSizein interface- ZooKeeperServerMXBean
 
 - 
getFlushDelaypublic long getFlushDelay() - Specified by:
- getFlushDelayin interface- ZooKeeperServerMXBean
 
 - 
setFlushDelaypublic void setFlushDelay(long delay) - Specified by:
- setFlushDelayin interface- ZooKeeperServerMXBean
 
 - 
getThrottledOpWaitTimepublic int getThrottledOpWaitTime() - Specified by:
- getThrottledOpWaitTimein interface- ZooKeeperServerMXBean
 
 - 
setThrottledOpWaitTimepublic void setThrottledOpWaitTime(int val) - Specified by:
- setThrottledOpWaitTimein interface- ZooKeeperServerMXBean
 
 - 
getRequestThrottleLimitpublic int getRequestThrottleLimit() - Specified by:
- getRequestThrottleLimitin interface- ZooKeeperServerMXBean
 
 - 
setRequestThrottleLimitpublic void setRequestThrottleLimit(int requests) - Specified by:
- setRequestThrottleLimitin interface- ZooKeeperServerMXBean
 
 - 
getRequestThrottleStallTimepublic int getRequestThrottleStallTime() - Specified by:
- getRequestThrottleStallTimein interface- ZooKeeperServerMXBean
 
 - 
setRequestThrottleStallTimepublic void setRequestThrottleStallTime(int time) - Specified by:
- setRequestThrottleStallTimein interface- ZooKeeperServerMXBean
 
 - 
getRequestThrottleDropStalepublic boolean getRequestThrottleDropStale() - Specified by:
- getRequestThrottleDropStalein interface- ZooKeeperServerMXBean
 
 - 
setRequestThrottleDropStalepublic void setRequestThrottleDropStale(boolean drop) - Specified by:
- setRequestThrottleDropStalein interface- ZooKeeperServerMXBean
 
 - 
getMaxWriteQueuePollTimepublic long getMaxWriteQueuePollTime() - Specified by:
- getMaxWriteQueuePollTimein interface- ZooKeeperServerMXBean
 
 - 
setMaxWriteQueuePollTimepublic void setMaxWriteQueuePollTime(long delay) - Specified by:
- setMaxWriteQueuePollTimein interface- ZooKeeperServerMXBean
 
 - 
getRequestStaleLatencyCheckpublic boolean getRequestStaleLatencyCheck() - Specified by:
- getRequestStaleLatencyCheckin interface- ZooKeeperServerMXBean
 
 - 
setRequestStaleLatencyCheckpublic void setRequestStaleLatencyCheck(boolean check) - Specified by:
- setRequestStaleLatencyCheckin interface- ZooKeeperServerMXBean
 
 - 
getMaxBatchSizepublic int getMaxBatchSize() - Specified by:
- getMaxBatchSizein interface- ZooKeeperServerMXBean
 
 - 
setMaxBatchSizepublic void setMaxBatchSize(int size) - Specified by:
- setMaxBatchSizein interface- ZooKeeperServerMXBean
 
 - 
getRequestStaleConnectionCheckpublic boolean getRequestStaleConnectionCheck() - Specified by:
- getRequestStaleConnectionCheckin interface- ZooKeeperServerMXBean
 
 - 
setRequestStaleConnectionCheckpublic void setRequestStaleConnectionCheck(boolean check) - Specified by:
- setRequestStaleConnectionCheckin interface- ZooKeeperServerMXBean
 
 - 
getLargeRequestMaxBytespublic int getLargeRequestMaxBytes() - Specified by:
- getLargeRequestMaxBytesin interface- ZooKeeperServerMXBean
 
 - 
setLargeRequestMaxBytespublic void setLargeRequestMaxBytes(int bytes) - Specified by:
- setLargeRequestMaxBytesin interface- ZooKeeperServerMXBean
 
 - 
getLargeRequestThresholdpublic int getLargeRequestThreshold() - Specified by:
- getLargeRequestThresholdin interface- ZooKeeperServerMXBean
 
 - 
setLargeRequestThresholdpublic void setLargeRequestThreshold(int threshold) - Specified by:
- setLargeRequestThresholdin interface- ZooKeeperServerMXBean
 
 - 
getMaxCnxnspublic int getMaxCnxns() - Specified by:
- getMaxCnxnsin interface- ZooKeeperServerMXBean
- Returns:
- Current maxCnxns allowed to a single ZooKeeper server
 
 
- 
 
-