public class LeaderZooKeeperServer extends QuorumZooKeeperServer
ZooKeeperServer.MissingSessionException, ZooKeeperServer.Stateself, upgradeableSessionTrackerDEFAULT_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, upgradecanShutdown, 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, truncateLogpublic Leader getLeader()
protected void setupRequestProcessors()
setupRequestProcessors in class ZooKeeperServerpublic void startup()
startup in class ZooKeeperServerpublic void shutdown()
shutdown in class ZooKeeperServerpublic int getGlobalOutstandingLimit()
getGlobalOutstandingLimit in class ZooKeeperServerpublic void createSessionTracker()
createSessionTracker in class ZooKeeperServerpublic 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 ZooKeeperServerpublic void registerJMX(LeaderBean leaderBean, LocalPeerBean localPeerBean)
protected void unregisterJMX()
unregisterJMX in class ZooKeeperServerprotected void unregisterJMX(Leader leader)
public String getState()
getState in interface ServerStats.ProvidergetState in class ZooKeeperServerpublic long getServerId()
getServerId in interface SessionTracker.SessionExpirergetServerId in class ZooKeeperServerprotected void revalidateSession(ServerCnxn cnxn, long sessionId, int sessionTimeout) throws IOException
revalidateSession in class ZooKeeperServerIOExceptionCopyright © 2008–2019 The Apache Software Foundation. All rights reserved.