org.apache.zookeeper.server.quorum
Class QuorumZooKeeperServer

java.lang.Object
  extended by org.apache.zookeeper.server.ZooKeeperServer
      extended by org.apache.zookeeper.server.quorum.QuorumZooKeeperServer
All Implemented Interfaces:
ServerStats.Provider, SessionTracker.SessionExpirer
Direct Known Subclasses:
LeaderZooKeeperServer, LearnerZooKeeperServer, ReadOnlyZooKeeperServer

public abstract class QuorumZooKeeperServer
extends ZooKeeperServer

Abstract base class for all ZooKeeperServers that participate in a quorum.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.zookeeper.server.ZooKeeperServer
ZooKeeperServer.MissingSessionException
 
Field Summary
protected  QuorumPeer self
           
 
Fields inherited from class org.apache.zookeeper.server.ZooKeeperServer
DEFAULT_TICK_TIME, firstProcessor, hzxid, jmxDataTreeBean, jmxServerBean, LOG, maxSessionTimeout, minSessionTimeout, ok, running, sessionTracker, tickTime
 
Constructor Summary
protected QuorumZooKeeperServer(FileTxnSnapLog logFactory, int tickTime, int minSessionTimeout, int maxSessionTimeout, ZKDatabase zkDb, QuorumPeer self)
           
 
Method Summary
 void dumpConf(PrintWriter pwriter)
           
 
Methods inherited from class org.apache.zookeeper.server.ZooKeeperServer
checkPasswd, closeSession, closeSession, createSessionTracker, decInProcess, dumpEphemerals, expire, finishSessionInit, getClientPort, getGlobalOutstandingLimit, getInProcess, getLastProcessedZxid, getMaxSessionTimeout, getMinSessionTimeout, getOutstandingRequests, getServerCnxnFactory, getServerId, getSnapCount, getState, getTickTime, getTxnLogFactory, getZKDatabase, getZxid, incInProcess, isRunning, killSession, loadData, processConnectRequest, processPacket, registerJMX, reopenSession, revalidateSession, serverStats, setMaxSessionTimeout, setMinSessionTimeout, setOwner, setServerCnxnFactory, setTickTime, setTxnLogFactory, setupRequestProcessors, setZKDatabase, setZxid, shouldThrottle, shutdown, startdata, startup, submitRequest, takeSnapshot, truncateLog, unregisterJMX
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

self

protected final QuorumPeer self
Constructor Detail

QuorumZooKeeperServer

protected QuorumZooKeeperServer(FileTxnSnapLog logFactory,
                                int tickTime,
                                int minSessionTimeout,
                                int maxSessionTimeout,
                                ZKDatabase zkDb,
                                QuorumPeer self)
Method Detail

dumpConf

public void dumpConf(PrintWriter pwriter)
Overrides:
dumpConf in class ZooKeeperServer


Copyright © 2011 The Apache Software Foundation