public class LeaderZooKeeperServer extends QuorumZooKeeperServer
ZooKeeperServer.BasicDataTreeBuilder, ZooKeeperServer.DataTreeBuilder, ZooKeeperServer.MissingSessionExceptionselfDEFAULT_TICK_TIME, firstProcessor, jmxDataTreeBean, jmxServerBean, LOG, maxSessionTimeout, minSessionTimeout, ok, sessionTracker, state, tickTime| Modifier and Type | Method and Description |
|---|---|
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.
|
java.lang.String |
getState() |
protected void |
registerJMX() |
void |
registerJMX(LeaderBean leaderBean,
LocalPeerBean localPeerBean) |
protected void |
revalidateSession(ServerCnxn cnxn,
long sessionId,
int sessionTimeout) |
protected void |
setupRequestProcessors() |
protected void |
startSessionTracker() |
boolean |
touch(long sess,
int to) |
protected void |
unregisterJMX() |
protected void |
unregisterJMX(Leader leader) |
dumpConfcheckPasswd, closeSession, closeSession, decInProcess, dumpEphemerals, expire, finishSessionInit, getClientPort, getInProcess, getLastProcessedZxid, getMaxSessionTimeout, getMinSessionTimeout, getNumAliveConnections, getOutstandingRequests, getServerCnxnFactory, getSnapCount, getTickTime, getTxnLogFactory, getZKDatabase, getZooKeeperServerListener, getZxid, incInProcess, isRunning, killSession, loadData, processConnectRequest, processPacket, processTxn, reopenSession, serverStats, setMaxSessionTimeout, setMinSessionTimeout, setOwner, setServerCnxnFactory, setTickTime, setTxnLogFactory, setZKDatabase, setZxid, shouldThrottle, shutdown, startdata, startup, submitRequest, takeSnapshot, truncateLogpublic Leader getLeader()
protected void setupRequestProcessors()
setupRequestProcessors in class ZooKeeperServerpublic int getGlobalOutstandingLimit()
getGlobalOutstandingLimit in class ZooKeeperServerpublic void createSessionTracker()
createSessionTracker in class ZooKeeperServerprotected void startSessionTracker()
startSessionTracker in class ZooKeeperServerpublic boolean touch(long sess,
int to)
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 java.lang.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 java.io.IOException
revalidateSession in class ZooKeeperServerjava.io.IOExceptionCopyright © 2016 The Apache Software Foundation