public abstract class QuorumZooKeeperServer extends ZooKeeperServer
ZooKeeperServer.MissingSessionException, ZooKeeperServer.State| Modifier and Type | Field and Description |
|---|---|
QuorumPeer |
self |
protected UpgradeableSessionTracker |
upgradeableSessionTracker |
DEFAULT_TICK_TIME, firstProcessor, jmxDataTreeBean, jmxServerBean, LOG, maxSessionTimeout, minSessionTimeout, ok, secureServerCnxnFactory, serverCnxnFactory, sessionTracker, state, tickTime| Modifier | Constructor and Description |
|---|---|
protected |
QuorumZooKeeperServer(FileTxnSnapLog logFactory,
int tickTime,
int minSessionTimeout,
int maxSessionTimeout,
ZKDatabase zkDb,
QuorumPeer self) |
| Modifier and Type | Method and Description |
|---|---|
Request |
checkUpgradeSession(Request request) |
void |
dumpConf(PrintWriter pwriter) |
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() |
void |
upgrade(long sessionId)
Implements the SessionUpgrader interface,
|
canShutdown, checkPasswd, closeSession, closeSession, createSessionTracker, decInProcess, dumpEphemerals, expire, finishSessionInit, getClientPort, getConf, getDataDirSize, getEphemerals, getGlobalOutstandingLimit, getInProcess, getLastProcessedZxid, getLogDirSize, getMaxClientCnxnsPerHost, getMaxSessionTimeout, getMinSessionTimeout, getNumAliveConnections, getOutstandingRequests, getSecureClientPort, getSecureServerCnxnFactory, getServerCnxnFactory, getServerId, getSessionExpiryMap, getSessionTracker, getSnapCount, getState, getTickTime, getTxnLogElapsedSyncTime, getTxnLogFactory, getZKDatabase, getZooKeeperServerListener, getZxid, incInProcess, isRunning, killSession, loadData, processConnectRequest, processPacket, processTxn, processTxn, registerJMX, reopenSession, revalidateSession, serverStats, setCreateSessionTrackerServerId, setMaxSessionTimeout, setMinSessionTimeout, setOwner, setSecureServerCnxnFactory, setServerCnxnFactory, setTickTime, setTxnLogFactory, setupRequestProcessors, setZKDatabase, setZxid, shouldThrottle, shutdown, shutdown, startdata, startup, submitRequest, takeSnapshot, truncateLog, unregisterJMXpublic final QuorumPeer self
protected UpgradeableSessionTracker upgradeableSessionTracker
protected QuorumZooKeeperServer(FileTxnSnapLog logFactory, int tickTime, int minSessionTimeout, int maxSessionTimeout, 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.Copyright © 2008–2019 The Apache Software Foundation. All rights reserved.