Package org.apache.zookeeper.server
Class ObserverBean
- java.lang.Object
-
- org.apache.zookeeper.server.ZooKeeperServerBean
-
- org.apache.zookeeper.server.ObserverBean
-
- All Implemented Interfaces:
ZKMBeanInfo
,ObserverMXBean
,ZooKeeperServerMXBean
public class ObserverBean extends ZooKeeperServerBean implements ObserverMXBean
ObserverBean
-
-
Field Summary
-
Fields inherited from class org.apache.zookeeper.server.ZooKeeperServerBean
zks
-
-
Constructor Summary
Constructors Constructor Description ObserverBean(Observer observer, ZooKeeperServer zks)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getLearnerMaster()
String
getName()
int
getPendingRevalidationCount()
String
getQuorumAddress()
void
setLearnerMaster(String learnerMaster)
requests the Observer switch to a new learner master-
Methods inherited from class org.apache.zookeeper.server.ZooKeeperServerBean
getAuthFailedCount, getAvgRequestLatency, getClientPort, getCommitProcMaxCommitBatchSize, getCommitProcMaxReadBatchSize, getConnectionDecreaseRatio, getConnectionDropDecrease, getConnectionDropIncrease, getConnectionFreezeTime, getConnectionMaxTokens, getConnectionTokenFillCount, getConnectionTokenFillTime, getDataDirSize, getFlushDelay, getFsyncThresholdExceedCount, getJuteMaxBufferSize, getLargeRequestMaxBytes, getLargeRequestThreshold, getLastClientResponseSize, getLogDirSize, getMaxBatchSize, getMaxClientCnxnsPerHost, getMaxClientResponseSize, getMaxCnxns, getMaxRequestLatency, getMaxSessionTimeout, getMaxWriteQueuePollTime, getMinClientResponseSize, getMinRequestLatency, getMinSessionTimeout, getNonMTLSLocalConnCount, getNonMTLSRemoteConnCount, getNumAliveConnections, getOutstandingRequests, getPacketsReceived, getPacketsSent, getRequestStaleConnectionCheck, getRequestStaleLatencyCheck, getRequestThrottleDropStale, getRequestThrottleLimit, getRequestThrottleStallTime, getResponseCachingEnabled, getSecureClientAddress, getSecureClientPort, getStartTime, getThrottledOpWaitTime, getTickTime, getTxnLogElapsedSyncTime, getVersion, isHidden, resetAuthFailedCount, resetFsyncThresholdExceedCount, resetLatency, resetMaxLatency, resetNonMTLSConnCount, resetStatistics, setCommitProcMaxCommitBatchSize, setCommitProcMaxReadBatchSize, setConnectionDecreaseRatio, setConnectionDropDecrease, setConnectionDropIncrease, setConnectionFreezeTime, setConnectionMaxTokens, setConnectionTokenFillCount, setConnectionTokenFillTime, setFlushDelay, setLargeRequestMaxBytes, setLargeRequestThreshold, setMaxBatchSize, setMaxClientCnxnsPerHost, setMaxSessionTimeout, setMaxWriteQueuePollTime, setMinSessionTimeout, setRequestStaleConnectionCheck, setRequestStaleLatencyCheck, setRequestThrottleDropStale, setRequestThrottleLimit, setRequestThrottleStallTime, setResponseCachingEnabled, setThrottledOpWaitTime, setTickTime
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.zookeeper.server.ZooKeeperServerMXBean
getAuthFailedCount, getAvgRequestLatency, getClientPort, getCommitProcMaxCommitBatchSize, getCommitProcMaxReadBatchSize, getConnectionDecreaseRatio, getConnectionDropDecrease, getConnectionDropIncrease, getConnectionFreezeTime, getConnectionMaxTokens, getConnectionTokenFillCount, getConnectionTokenFillTime, getDataDirSize, getFlushDelay, getFsyncThresholdExceedCount, getJuteMaxBufferSize, getLargeRequestMaxBytes, getLargeRequestThreshold, getLastClientResponseSize, getLogDirSize, getMaxBatchSize, getMaxClientCnxnsPerHost, getMaxClientResponseSize, getMaxCnxns, getMaxRequestLatency, getMaxSessionTimeout, getMaxWriteQueuePollTime, getMinClientResponseSize, getMinRequestLatency, getMinSessionTimeout, getNonMTLSLocalConnCount, getNonMTLSRemoteConnCount, getNumAliveConnections, getOutstandingRequests, getPacketsReceived, getPacketsSent, getRequestStaleConnectionCheck, getRequestStaleLatencyCheck, getRequestThrottleDropStale, getRequestThrottleLimit, getRequestThrottleStallTime, getResponseCachingEnabled, getSecureClientAddress, getSecureClientPort, getStartTime, getThrottledOpWaitTime, getTickTime, getTxnLogElapsedSyncTime, getVersion, resetAuthFailedCount, resetFsyncThresholdExceedCount, resetLatency, resetMaxLatency, resetNonMTLSConnCount, resetStatistics, setCommitProcMaxCommitBatchSize, setCommitProcMaxReadBatchSize, setConnectionDecreaseRatio, setConnectionDropDecrease, setConnectionDropIncrease, setConnectionFreezeTime, setConnectionMaxTokens, setConnectionTokenFillCount, setConnectionTokenFillTime, setFlushDelay, setLargeRequestMaxBytes, setLargeRequestThreshold, setMaxBatchSize, setMaxClientCnxnsPerHost, setMaxSessionTimeout, setMaxWriteQueuePollTime, setMinSessionTimeout, setRequestStaleConnectionCheck, setRequestStaleLatencyCheck, setRequestThrottleDropStale, setRequestThrottleLimit, setRequestThrottleStallTime, setResponseCachingEnabled, setThrottledOpWaitTime, setTickTime
-
-
-
-
Constructor Detail
-
ObserverBean
public ObserverBean(Observer observer, ZooKeeperServer zks)
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getName
in interfaceZKMBeanInfo
- Overrides:
getName
in classZooKeeperServerBean
- Returns:
- a string identifying the MBean
-
getPendingRevalidationCount
public int getPendingRevalidationCount()
- Specified by:
getPendingRevalidationCount
in interfaceObserverMXBean
- Returns:
- count of pending revalidations
-
getQuorumAddress
public String getQuorumAddress()
- Specified by:
getQuorumAddress
in interfaceObserverMXBean
- Returns:
- socket address
-
getLearnerMaster
public String getLearnerMaster()
- Specified by:
getLearnerMaster
in interfaceObserverMXBean
- Returns:
- address of the current learner master
-
setLearnerMaster
public void setLearnerMaster(String learnerMaster)
Description copied from interface:ObserverMXBean
requests the Observer switch to a new learner master- Specified by:
setLearnerMaster
in interfaceObserverMXBean
- Parameters:
learnerMaster
- address of the desired learner master
-
-