public class ReadOnlyZooKeeperServer extends QuorumZooKeeperServer
The very first processor in the chain of request processors is a ReadOnlyRequestProcessor which drops state-changing requests.
ZooKeeperServer.BasicDataTreeBuilder, ZooKeeperServer.DataTreeBuilder, ZooKeeperServer.MissingSessionException
self
DEFAULT_TICK_TIME, firstProcessor, hzxid, jmxDataTreeBean, jmxServerBean, LOG, maxSessionTimeout, minSessionTimeout, ok, running, sessionTracker, tickTime
Modifier and Type | Method and Description |
---|---|
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(ZooKeeperServerBean serverBean,
LocalPeerBean localPeerBean) |
protected void |
setupRequestProcessors() |
void |
shutdown() |
void |
startup() |
protected void |
unregisterJMX() |
protected void |
unregisterJMX(ZooKeeperServer zks) |
dumpConf
checkPasswd, closeSession, closeSession, createSessionTracker, decInProcess, dumpEphemerals, expire, finishSessionInit, getClientPort, getGlobalOutstandingLimit, getInProcess, getLastProcessedZxid, getMaxSessionTimeout, getMinSessionTimeout, getNumAliveConnections, getOutstandingRequests, getServerCnxnFactory, getSnapCount, getTickTime, getTxnLogFactory, getZKDatabase, getZxid, incInProcess, isRunning, killSession, loadData, processConnectRequest, processPacket, processTxn, reopenSession, revalidateSession, serverStats, setMaxSessionTimeout, setMinSessionTimeout, setOwner, setServerCnxnFactory, setTickTime, setTxnLogFactory, setZKDatabase, setZxid, shouldThrottle, startdata, startSessionTracker, submitRequest, takeSnapshot, truncateLog
protected void setupRequestProcessors()
setupRequestProcessors
in class ZooKeeperServer
public void startup()
startup
in class ZooKeeperServer
protected void registerJMX()
registerJMX
in class ZooKeeperServer
public void registerJMX(ZooKeeperServerBean serverBean, LocalPeerBean localPeerBean)
protected void unregisterJMX()
unregisterJMX
in class ZooKeeperServer
protected void unregisterJMX(ZooKeeperServer zks)
public String getState()
getState
in interface ServerStats.Provider
getState
in class ZooKeeperServer
public long getServerId()
getServerId
in interface SessionTracker.SessionExpirer
getServerId
in class ZooKeeperServer
public void shutdown()
shutdown
in class ZooKeeperServer
Copyright © 2015 The Apache Software Foundation