public class LeaderZooKeeperServer extends QuorumZooKeeperServer
ZooKeeperServer.MissingSessionException, ZooKeeperServer.State
self, upgradeableSessionTracker
DEFAULT_TICK_TIME, firstProcessor, jmxDataTreeBean, jmxServerBean, LOG, maxSessionTimeout, minSessionTimeout, ok, secureServerCnxnFactory, serverCnxnFactory, sessionTracker, state, tickTime
Modifier and Type | Method and Description |
---|---|
boolean |
checkIfValidGlobalSession(long sess,
int to) |
void |
createSessionTracker() |
int |
getGlobalOutstandingLimit() |
Leader |
getLeader() |
long |
getServerId()
Returns the id of the associated QuorumPeer, which will do for a unique
id of this server.
|
String |
getState() |
protected void |
registerJMX() |
void |
registerJMX(LeaderBean leaderBean,
LocalPeerBean localPeerBean) |
protected void |
revalidateSession(ServerCnxn cnxn,
long sessionId,
int sessionTimeout) |
protected void |
setupRequestProcessors() |
void |
shutdown() |
void |
startup() |
void |
submitLearnerRequest(Request request)
Requests coming from the learner should go directly to
PrepRequestProcessor
|
boolean |
touch(long sess,
int to) |
protected void |
unregisterJMX() |
protected void |
unregisterJMX(Leader leader) |
checkUpgradeSession, dumpConf, setLocalSessionFlag, setState, startSessionTracker, upgrade
canShutdown, checkPasswd, closeSession, closeSession, decInProcess, dumpEphemerals, expire, finishSessionInit, getClientPort, getConf, getDataDirSize, getEphemerals, getInProcess, getLastProcessedZxid, getLogDirSize, getMaxClientCnxnsPerHost, getMaxSessionTimeout, getMinSessionTimeout, getNumAliveConnections, getOutstandingRequests, getSecureClientPort, getSecureServerCnxnFactory, getServerCnxnFactory, getSessionExpiryMap, getSessionTracker, getSnapCount, getTickTime, getTxnLogElapsedSyncTime, getTxnLogFactory, getZKDatabase, getZooKeeperServerListener, getZxid, incInProcess, isRunning, killSession, loadData, processConnectRequest, processPacket, processTxn, processTxn, reopenSession, serverStats, setCreateSessionTrackerServerId, setMaxSessionTimeout, setMinSessionTimeout, setOwner, setSecureServerCnxnFactory, setServerCnxnFactory, setTickTime, setTxnLogFactory, setZKDatabase, setZxid, shouldThrottle, shutdown, startdata, submitRequest, takeSnapshot, truncateLog
public Leader getLeader()
protected void setupRequestProcessors()
setupRequestProcessors
in class ZooKeeperServer
public void startup()
startup
in class ZooKeeperServer
public void shutdown()
shutdown
in class ZooKeeperServer
public int getGlobalOutstandingLimit()
getGlobalOutstandingLimit
in class ZooKeeperServer
public void createSessionTracker()
createSessionTracker
in class ZooKeeperServer
public boolean touch(long sess, int to)
public boolean checkIfValidGlobalSession(long sess, int to)
public void submitLearnerRequest(Request request)
request
- protected void registerJMX()
registerJMX
in class ZooKeeperServer
public void registerJMX(LeaderBean leaderBean, LocalPeerBean localPeerBean)
protected void unregisterJMX()
unregisterJMX
in class ZooKeeperServer
protected void unregisterJMX(Leader leader)
public String getState()
getState
in interface ServerStats.Provider
getState
in class ZooKeeperServer
public long getServerId()
getServerId
in interface SessionTracker.SessionExpirer
getServerId
in class ZooKeeperServer
protected void revalidateSession(ServerCnxn cnxn, long sessionId, int sessionTimeout) throws IOException
revalidateSession
in class ZooKeeperServer
IOException
Copyright © 2008–2019 The Apache Software Foundation. All rights reserved.