public abstract class LearnerZooKeeperServer extends QuorumZooKeeperServer
ZooKeeperServer.MissingSessionException, ZooKeeperServer.State
Modifier and Type | Field and Description |
---|---|
protected CommitProcessor |
commitProcessor |
protected SyncRequestProcessor |
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, LOG, maxSessionTimeout, minSessionTimeout, ok, SASL_AUTH_SCHEME, secureServerCnxnFactory, serverCnxnFactory, SESSION_REQUIRE_CLIENT_SASL_AUTH, sessionTracker, SKIP_ACL, SNAP_COUNT, state, tickTime, ZOOKEEPER_DIGEST_ENABLED
Constructor and Description |
---|
LearnerZooKeeperServer(FileTxnSnapLog logFactory,
int tickTime,
int minSessionTimeout,
int maxSessionTimeout,
int listenBacklog,
ZKDatabase zkDb,
QuorumPeer self) |
Modifier and Type | Method and Description |
---|---|
void |
createSessionTracker() |
abstract Learner |
getLearner()
Abstract method to return the learner associated with this server.
|
long |
getServerId()
Returns the id of the associated QuorumPeer, which will do for a unique
id of this server.
|
protected Map<Long,Integer> |
getTouchSnapshot()
Returns the current state of the session tracker.
|
protected void |
registerJMX() |
void |
registerJMX(ZooKeeperServerBean serverBean,
LocalPeerBean localPeerBean) |
protected void |
revalidateSession(ServerCnxn cnxn,
long sessionId,
int sessionTimeout) |
void |
shutdown() |
protected void |
unregisterJMX() |
protected void |
unregisterJMX(Learner peer) |
checkUpgradeSession, dumpConf, dumpMonitorValues, registerMetrics, setLocalSessionFlag, setState, startSessionTracker, unregisterMetrics, upgrade
authWriteRequest, canShutdown, checkACL, checkPasswd, checkRequestSizeWhenReceivingMessage, closeSession, closeSession, connThrottle, decInProcess, dumpEphemerals, enqueueRequest, expire, finishSessionInit, getClientPort, getClientPortListenBacklog, getConf, getConnectionDropChance, getDataDirSize, getEphemerals, getGetChildrenResponseCache, getGlobalOutstandingLimit, getInflight, getInitialConfig, getInProcess, getLargeRequestBytes, getLargeRequestMaxBytes, getLargeRequestThreshold, getLastProcessedZxid, getLogDirSize, getMaxClientCnxnsPerHost, getMaxSessionTimeout, getMinSessionTimeout, getNumAliveConnections, getOutstandingHandshakeNum, getOutstandingRequests, getReadResponseCache, getRequestPathMetricsCollector, getSecureClientPort, getSecureServerCnxnFactory, getServerCnxnFactory, getSessionExpiryMap, getSessionTracker, getSnapCount, getSnapSizeInBytes, getState, getTickTime, getTxnLogElapsedSyncTime, getTxnLogFactory, getZKDatabase, getZooKeeperServerListener, getZxid, incInProcess, isCloseSessionTxnEnabled, isDigestEnabled, 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, setupRequestProcessors, setZKDatabase, setZxid, shouldThrottle, shutdown, startdata, startJvmPauseMonitor, startRequestThrottler, startup, submitRequest, submitRequestNow, takeSnapshot, takeSnapshot, truncateLog
protected CommitProcessor commitProcessor
protected SyncRequestProcessor syncProcessor
public LearnerZooKeeperServer(FileTxnSnapLog logFactory, int tickTime, int minSessionTimeout, int maxSessionTimeout, int listenBacklog, ZKDatabase zkDb, QuorumPeer self) throws IOException
IOException
public abstract Learner getLearner()
protected Map<Long,Integer> getTouchSnapshot()
public long getServerId()
getServerId
in interface SessionTracker.SessionExpirer
getServerId
in class ZooKeeperServer
public void createSessionTracker()
createSessionTracker
in class ZooKeeperServer
protected void revalidateSession(ServerCnxn cnxn, long sessionId, int sessionTimeout) throws IOException
revalidateSession
in class ZooKeeperServer
IOException
protected void registerJMX()
registerJMX
in class ZooKeeperServer
public void registerJMX(ZooKeeperServerBean serverBean, LocalPeerBean localPeerBean)
protected void unregisterJMX()
unregisterJMX
in class ZooKeeperServer
protected void unregisterJMX(Learner peer)
public void shutdown()
shutdown
in class ZooKeeperServer
Copyright © 2008–2020 The Apache Software Foundation. All rights reserved.