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, 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, 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, startup, submitRequest, submitRequestNow, takeSnapshot, takeSnapshot, truncateLog, unregisterJMX
public 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 ZooKeeperServer
public Request checkUpgradeSession(Request request) throws IOException, KeeperException
IOException
KeeperException
public void upgrade(long sessionId)
sessionId
- protected void setLocalSessionFlag(Request si)
ZooKeeperServer
setLocalSessionFlag
in class ZooKeeperServer
public void dumpConf(PrintWriter pwriter)
dumpConf
in class ZooKeeperServer
protected void setState(ZooKeeperServer.State state)
ZooKeeperServer
The 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 ZooKeeperServer
state
- new server state.protected void registerMetrics()
registerMetrics
in class ZooKeeperServer
protected void unregisterMetrics()
unregisterMetrics
in class ZooKeeperServer
public void dumpMonitorValues(BiConsumer<String,Object> response)
ZooKeeperServer
dumpMonitorValues
in class ZooKeeperServer
response
- a sink which collects the data.Copyright © 2008–2020 The Apache Software Foundation. All rights reserved.