public class FollowerZooKeeperServer extends LearnerZooKeeperServer
ZooKeeperServer.MissingSessionException, ZooKeeperServer.State
commitProcessor, syncProcessor
self, upgradeableSessionTracker
DEFAULT_TICK_TIME, firstProcessor, jmxDataTreeBean, jmxServerBean, maxSessionTimeout, minSessionTimeout, ok, secureServerCnxnFactory, serverCnxnFactory, sessionTracker, state, tickTime
Modifier and Type | Method and Description |
---|---|
void |
commit(long zxid)
When a COMMIT message is received, eventually this method is called,
which matches up the zxid from the COMMIT with (hopefully) the head of
the pendingTxns queue and hands it to the commitProcessor to commit.
|
Follower |
getFollower() |
int |
getGlobalOutstandingLimit() |
Learner |
getLearner()
Abstract method to return the learner associated with this server.
|
String |
getState() |
void |
logRequest(TxnHeader hdr,
Record txn) |
protected void |
setupRequestProcessors() |
void |
sync() |
createSessionTracker, getServerId, getTouchSnapshot, registerJMX, registerJMX, revalidateSession, shutdown, unregisterJMX, unregisterJMX
checkUpgradeSession, dumpConf, setLocalSessionFlag, setState, startSessionTracker, upgrade
canShutdown, checkPasswd, closeSession, closeSession, decInProcess, dumpEphemerals, expire, finishSessionInit, getClientPort, getConf, getDataDirSize, getEphemerals, getInProcess, getLastProcessedZxid, getLogDirSize, getMaxClientCnxnsPerHost, getMaxSessionTimeout, getMinSessionTimeout, getNumAliveConnections, getOutstandingRequests, getSecureClientPort, getSecureServerCnxnFactory, getServerCnxnFactory, getSessionExpiryMap, getSessionTracker, getSnapCount, getTickTime, getTxnLogElapsedSyncTime, getTxnLogFactory, getZKDatabase, getZooKeeperServerListener, getZxid, incInProcess, 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, truncateLog
public Follower getFollower()
protected void setupRequestProcessors()
setupRequestProcessors
in class ZooKeeperServer
public void commit(long zxid)
zxid
- - must correspond to the head of pendingTxns if it existspublic void sync()
public int getGlobalOutstandingLimit()
getGlobalOutstandingLimit
in class ZooKeeperServer
public String getState()
getState
in interface ServerStats.Provider
getState
in class ZooKeeperServer
public Learner getLearner()
LearnerZooKeeperServer
getLearner
in class LearnerZooKeeperServer
Copyright © 2008–2019 The Apache Software Foundation. All rights reserved.