public abstract class QuorumZooKeeperServer extends ZooKeeperServer
ZooKeeperServer.MissingSessionException, ZooKeeperServer.State| Modifier and Type | Field and Description |
|---|---|
QuorumPeer |
self |
protected UpgradeableSessionTracker |
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, reconfigEnabled, SASL_AUTH_SCHEME, secureServerCnxnFactory, serverCnxnFactory, SESSION_REQUIRE_CLIENT_SASL_AUTH, sessionTracker, SKIP_ACL, SNAP_COUNT, state, tickTime, ZOOKEEPER_DIGEST_ENABLED| Modifier | Constructor and Description |
|---|---|
protected |
QuorumZooKeeperServer(FileTxnSnapLog logFactory,
int tickTime,
int minSessionTimeout,
int maxSessionTimeout,
int listenBacklog,
ZKDatabase zkDb,
QuorumPeer self) |
| Modifier and Type | Method and Description |
|---|---|
Request |
checkUpgradeSession(Request request) |
void |
dumpConf(PrintWriter pwriter) |
void |
dumpMonitorValues(BiConsumer<String,Object> response)
Hook into admin server, useful to expose additional data
that do not represent metrics.
|
protected void |
registerMetrics() |
protected void |
setLocalSessionFlag(Request si)
If the underlying Zookeeper server support local session, this method
will set a isLocalSession to true if a request is associated with
a local session.
|
protected void |
setState(ZooKeeperServer.State state)
Sets the state of ZooKeeper server.
|
protected void |
startSessionTracker() |
protected void |
unregisterMetrics() |
void |
upgrade(long sessionId)
Implements the SessionUpgrader interface,
|
authWriteRequest, canShutdown, checkACL, checkPasswd, checkRequestSizeWhenReceivingMessage, closeSession, closeSession, connThrottle, createSessionTracker, 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, getServerId, getSessionExpiryMap, getSessionTracker, getSnapCount, getSnapSizeInBytes, getState, getTickTime, getTxnLogElapsedSyncTime, getTxnLogFactory, getZKDatabase, getZooKeeperServerListener, getZxid, incInProcess, isCloseSessionTxnEnabled, isDigestEnabled, isReconfigEnabled, isResponseCachingEnabled, isRunning, killSession, loadData, processConnectRequest, processPacket, processTxn, processTxn, registerJMX, reopenSession, requestFinished, revalidateSession, serverStats, setClientPortListenBacklog, setCloseSessionTxnEnabled, setCreateSessionTrackerServerId, setDigestEnabled, setLargeRequestMaxBytes, setLargeRequestThreshold, setMaxSessionTimeout, setMinSessionTimeout, setOwner, setResponseCachingEnabled, setSecureServerCnxnFactory, setServerCnxnFactory, setTickTime, setTxnLogFactory, setupRequestProcessors, setZKDatabase, setZxid, shouldThrottle, shutdown, shutdown, startdata, startJvmPauseMonitor, startRequestThrottler, startServing, startup, startupWithoutServing, submitRequest, submitRequestNow, takeSnapshot, takeSnapshot, truncateLog, unregisterJMXpublic final QuorumPeer self
protected UpgradeableSessionTracker upgradeableSessionTracker
protected QuorumZooKeeperServer(FileTxnSnapLog logFactory, int tickTime, int minSessionTimeout, int maxSessionTimeout, int listenBacklog, ZKDatabase zkDb, QuorumPeer self)
protected void startSessionTracker()
startSessionTracker in class ZooKeeperServerpublic Request checkUpgradeSession(Request request) throws IOException, KeeperException
IOExceptionKeeperExceptionpublic void upgrade(long sessionId)
sessionId - protected void setLocalSessionFlag(Request si)
ZooKeeperServersetLocalSessionFlag in class ZooKeeperServerpublic void dumpConf(PrintWriter pwriter)
dumpConf in class ZooKeeperServerprotected void setState(ZooKeeperServer.State state)
ZooKeeperServerThe following are the server state transitions:
ZooKeeperServerListenerImpl notifies any critical resource
error events, e.g., SyncRequestProcessor not being able to write a txn to
disk.setState in class ZooKeeperServerstate - new server state.protected void registerMetrics()
registerMetrics in class ZooKeeperServerprotected void unregisterMetrics()
unregisterMetrics in class ZooKeeperServerpublic void dumpMonitorValues(BiConsumer<String,Object> response)
ZooKeeperServerdumpMonitorValues in class ZooKeeperServerresponse - a sink which collects the data.Copyright © 2008–2021 The Apache Software Foundation. All rights reserved.