public class FollowerZooKeeperServer extends LearnerZooKeeperServer
ZooKeeperServer.MissingSessionException, ZooKeeperServer.State
commitProcessor, syncProcessor
self, upgradeableSessionTracker
ALLOW_SASL_FAILED_CLIENTS, CLOSE_SESSION_TXN_ENABLED, DEFAULT_STARTING_BUFFER_SIZE, DEFAULT_TICK_TIME, ENABLE_EAGER_ACL_CHECK, firstProcessor, GET_CHILDREN_RESPONSE_CACHE_SIZE, GET_DATA_RESPONSE_CACHE_SIZE, GLOBAL_OUTSTANDING_LIMIT, initialConfig, INT_BUFFER_STARTING_SIZE_BYTES, intBufferStartingSizeBytes, jmxDataTreeBean, jmxServerBean, jvmPauseMonitor, listenBacklog, maxSessionTimeout, minSessionTimeout, ok, reconfigEnabled, SASL_AUTH_SCHEME, secureServerCnxnFactory, serverCnxnFactory, SESSION_REQUIRE_CLIENT_SASL_AUTH, sessionTracker, SKIP_ACL, SNAP_COUNT, state, tickTime, ZOOKEEPER_DIGEST_ENABLED
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,
TxnDigest digest) |
protected void |
registerMetrics() |
protected void |
setupRequestProcessors() |
void |
sync() |
protected void |
unregisterMetrics() |
createSessionTracker, getServerId, getTouchSnapshot, registerJMX, registerJMX, revalidateSession, shutdown, unregisterJMX, unregisterJMX
checkUpgradeSession, dumpConf, dumpMonitorValues, setLocalSessionFlag, setState, startSessionTracker, upgrade
authWriteRequest, canShutdown, checkACL, checkPasswd, checkRequestSizeWhenReceivingMessage, closeSession, closeSession, connThrottle, decInProcess, dumpEphemerals, enqueueRequest, expire, finishSessionInit, getClientPort, getClientPortListenBacklog, getConf, getConnectionDropChance, getDataDirSize, getEphemerals, getGetChildrenResponseCache, getInflight, getInitialConfig, getInProcess, getLargeRequestBytes, getLargeRequestMaxBytes, getLargeRequestThreshold, getLastProcessedZxid, getLogDirSize, getMaxClientCnxnsPerHost, getMaxSessionTimeout, getMinSessionTimeout, getNumAliveConnections, getOutstandingHandshakeNum, getOutstandingRequests, getReadResponseCache, getRequestPathMetricsCollector, getSecureClientPort, getSecureServerCnxnFactory, getServerCnxnFactory, getSessionExpiryMap, getSessionTracker, getSnapCount, getSnapSizeInBytes, getTickTime, getTxnLogElapsedSyncTime, getTxnLogFactory, getZKDatabase, getZooKeeperServerListener, getZxid, incInProcess, isCloseSessionTxnEnabled, isDigestEnabled, isReconfigEnabled, isResponseCachingEnabled, isRunning, killSession, loadData, processConnectRequest, processPacket, processTxn, processTxn, reopenSession, requestFinished, serverStats, setClientPortListenBacklog, setCloseSessionTxnEnabled, setCreateSessionTrackerServerId, setDigestEnabled, setLargeRequestMaxBytes, setLargeRequestThreshold, setMaxSessionTimeout, setMinSessionTimeout, setOwner, setResponseCachingEnabled, setSecureServerCnxnFactory, setServerCnxnFactory, setTickTime, setTxnLogFactory, setZKDatabase, setZxid, shouldThrottle, shutdown, startdata, startJvmPauseMonitor, startRequestThrottler, startServing, startup, startupWithoutServing, submitRequest, submitRequestNow, takeSnapshot, 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
protected void registerMetrics()
registerMetrics
in class QuorumZooKeeperServer
protected void unregisterMetrics()
unregisterMetrics
in class QuorumZooKeeperServer
Copyright © 2008–2021 The Apache Software Foundation. All rights reserved.