public class ObserverZooKeeperServer extends LearnerZooKeeperServer
ZooKeeperServer.MissingSessionException, ZooKeeperServer.StatecommitProcessor, syncProcessorself, upgradeableSessionTrackerALLOW_SASL_FAILED_CLIENTS, DEFAULT_TICK_TIME, firstProcessor, jmxDataTreeBean, jmxServerBean, maxSessionTimeout, minSessionTimeout, ok, reconfigEnabled, SASL_AUTH_SCHEME, secureServerCnxnFactory, serverCnxnFactory, SESSION_REQUIRE_CLIENT_SASL_AUTH, sessionTracker, state, tickTime| Modifier and Type | Method and Description | 
|---|---|
void | 
commitRequest(Request request)
Unlike a Follower, which sees a full request only during the PROPOSAL
 phase, Observers get all the data required with the INFORM packet. 
 | 
Learner | 
getLearner()
Abstract method to return the learner associated with this server. 
 | 
Observer | 
getObserver()  | 
String | 
getState()  | 
protected void | 
setupRequestProcessors()
Set up the request processors for an Observer:
 firstProcesor->commitProcessor->finalProcessor 
 | 
void | 
shutdown()  | 
void | 
sync()  | 
createSessionTracker, getServerId, getTouchSnapshot, registerJMX, registerJMX, revalidateSession, unregisterJMX, unregisterJMXcheckUpgradeSession, dumpConf, setLocalSessionFlag, setState, startSessionTracker, upgradecanShutdown, checkPasswd, closeSession, closeSession, decInProcess, dumpEphemerals, expire, finishSessionInit, getClientPort, getConf, getDataDirSize, getEphemerals, getGlobalOutstandingLimit, getInProcess, getLastProcessedZxid, getLogDirSize, getMaxClientCnxnsPerHost, getMaxSessionTimeout, getMinSessionTimeout, getNumAliveConnections, getOutstandingRequests, getSecureClientPort, getSecureServerCnxnFactory, getServerCnxnFactory, getSessionExpiryMap, getSessionTracker, getSnapCount, getTickTime, getTxnLogElapsedSyncTime, getTxnLogFactory, getZKDatabase, getZooKeeperServerListener, getZxid, incInProcess, isReconfigEnabled, isRunning, killSession, loadData, processConnectRequest, processPacket, processTxn, processTxn, reopenSession, serverStats, setCreateSessionTrackerServerId, setMaxSessionTimeout, setMinSessionTimeout, setOwner, setSecureServerCnxnFactory, setServerCnxnFactory, setTickTime, setTxnLogFactory, setZKDatabase, setZxid, shouldThrottle, shutdown, startdata, startup, submitRequest, takeSnapshot, truncateLogpublic Observer getObserver()
public Learner getLearner()
LearnerZooKeeperServergetLearner in class LearnerZooKeeperServerpublic void commitRequest(Request request)
request - protected void setupRequestProcessors()
setupRequestProcessors in class ZooKeeperServerpublic void sync()
public String getState()
getState in interface ServerStats.ProvidergetState in class ZooKeeperServerpublic void shutdown()
shutdown in class LearnerZooKeeperServerCopyright © 2008–2021 The Apache Software Foundation. All rights reserved.