public class ObserverZooKeeperServer extends LearnerZooKeeperServer
ZooKeeperServer.BasicDataTreeBuilder, ZooKeeperServer.DataTreeBuilder, ZooKeeperServer.MissingSessionExceptionselfDEFAULT_TICK_TIME, firstProcessor, jmxDataTreeBean, jmxServerBean, maxSessionTimeout, minSessionTimeout, ok, 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() |
java.lang.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, startSessionTracker, unregisterJMX, unregisterJMXdumpConfcheckPasswd, closeSession, closeSession, decInProcess, dumpEphemerals, expire, finishSessionInit, getClientPort, getGlobalOutstandingLimit, getInProcess, getLastProcessedZxid, getMaxSessionTimeout, getMinSessionTimeout, getNumAliveConnections, getOutstandingRequests, getServerCnxnFactory, getSnapCount, getTickTime, getTxnLogFactory, getZKDatabase, getZooKeeperServerListener, getZxid, incInProcess, isRunning, killSession, loadData, processConnectRequest, processPacket, processTxn, reopenSession, serverStats, setMaxSessionTimeout, setMinSessionTimeout, setOwner, setServerCnxnFactory, setTickTime, setTxnLogFactory, setZKDatabase, setZxid, shouldThrottle, 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 java.lang.String getState()
getState in interface ServerStats.ProvidergetState in class ZooKeeperServerpublic void shutdown()
shutdown in class ZooKeeperServerCopyright © 2016 The Apache Software Foundation