public abstract class LearnerZooKeeperServer extends QuorumZooKeeperServer
ZooKeeperServer.MissingSessionException, ZooKeeperServer.State
Modifier and Type | Field and Description |
---|---|
protected CommitProcessor |
commitProcessor |
protected SyncRequestProcessor |
syncProcessor |
self, upgradeableSessionTracker
DEFAULT_TICK_TIME, firstProcessor, jmxDataTreeBean, jmxServerBean, LOG, maxSessionTimeout, minSessionTimeout, ok, secureServerCnxnFactory, serverCnxnFactory, sessionTracker, state, tickTime
Constructor and Description |
---|
LearnerZooKeeperServer(FileTxnSnapLog logFactory,
int tickTime,
int minSessionTimeout,
int maxSessionTimeout,
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, setLocalSessionFlag, setState, startSessionTracker, upgrade
canShutdown, checkPasswd, closeSession, closeSession, decInProcess, dumpEphemerals, expire, finishSessionInit, getClientPort, getConf, getDataDirSize, getEphemerals, getGlobalOutstandingLimit, getInProcess, getLastProcessedZxid, getLogDirSize, getMaxClientCnxnsPerHost, getMaxSessionTimeout, getMinSessionTimeout, getNumAliveConnections, getOutstandingRequests, getSecureClientPort, getSecureServerCnxnFactory, getServerCnxnFactory, getSessionExpiryMap, getSessionTracker, getSnapCount, getState, getTickTime, getTxnLogElapsedSyncTime, getTxnLogFactory, getZKDatabase, getZooKeeperServerListener, getZxid, incInProcess, isRunning, killSession, loadData, processConnectRequest, processPacket, processTxn, processTxn, reopenSession, serverStats, setCreateSessionTrackerServerId, setMaxSessionTimeout, setMinSessionTimeout, setOwner, setSecureServerCnxnFactory, setServerCnxnFactory, setTickTime, setTxnLogFactory, setupRequestProcessors, setZKDatabase, setZxid, shouldThrottle, shutdown, startdata, startup, submitRequest, takeSnapshot, truncateLog
protected CommitProcessor commitProcessor
protected SyncRequestProcessor syncProcessor
public LearnerZooKeeperServer(FileTxnSnapLog logFactory, int tickTime, int minSessionTimeout, int maxSessionTimeout, 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–2019 The Apache Software Foundation. All rights reserved.