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.MissingSessionExceptionselfDEFAULT_TICK_TIME, firstProcessor, jmxDataTreeBean, jmxServerBean, LOG, maxSessionTimeout, minSessionTimeout, ok, sessionTracker, state, 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.
|
java.lang.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) |
dumpConfcheckPasswd, closeSession, closeSession, createSessionTracker, decInProcess, dumpEphemerals, expire, finishSessionInit, getClientPort, getGlobalOutstandingLimit, getInProcess, getLastProcessedZxid, getMaxSessionTimeout, getMinSessionTimeout, getNumAliveConnections, getOutstandingRequests, getServerCnxnFactory, getSnapCount, getTickTime, getTxnLogFactory, getZKDatabase, getZooKeeperServerListener, getZxid, incInProcess, isRunning, killSession, loadData, processConnectRequest, processPacket, processTxn, reopenSession, revalidateSession, serverStats, setMaxSessionTimeout, setMinSessionTimeout, setOwner, setServerCnxnFactory, setTickTime, setTxnLogFactory, setZKDatabase, setZxid, shouldThrottle, startdata, startSessionTracker, submitRequest, takeSnapshot, truncateLogprotected void setupRequestProcessors()
setupRequestProcessors in class ZooKeeperServerpublic void startup()
startup in class ZooKeeperServerprotected void registerJMX()
registerJMX in class ZooKeeperServerpublic void registerJMX(ZooKeeperServerBean serverBean, LocalPeerBean localPeerBean)
protected void unregisterJMX()
unregisterJMX in class ZooKeeperServerprotected void unregisterJMX(ZooKeeperServer zks)
public java.lang.String getState()
getState in interface ServerStats.ProvidergetState in class ZooKeeperServerpublic long getServerId()
getServerId in interface SessionTracker.SessionExpirergetServerId in class ZooKeeperServerpublic void shutdown()
shutdown in class ZooKeeperServerCopyright © 2016 The Apache Software Foundation