public class ReadOnlyZooKeeperServer extends ZooKeeperServer
The very first processor in the chain of request processors is a ReadOnlyRequestProcessor which drops state-changing requests.
ZooKeeperServer.MissingSessionException, ZooKeeperServer.State| Modifier and Type | Field and Description |
|---|---|
protected QuorumPeer |
self |
ALLOW_SASL_FAILED_CLIENTS, CLOSE_SESSION_TXN_ENABLED, DEFAULT_STARTING_BUFFER_SIZE, DEFAULT_TICK_TIME, ENABLE_EAGER_ACL_CHECK, firstProcessor, GET_CHILDREN_RESPONSE_CACHE_SIZE, GET_DATA_RESPONSE_CACHE_SIZE, GLOBAL_OUTSTANDING_LIMIT, initialConfig, INT_BUFFER_STARTING_SIZE_BYTES, intBufferStartingSizeBytes, jmxDataTreeBean, jmxServerBean, jvmPauseMonitor, listenBacklog, LOG, maxSessionTimeout, minSessionTimeout, ok, reconfigEnabled, SASL_AUTH_SCHEME, secureServerCnxnFactory, serverCnxnFactory, SESSION_REQUIRE_CLIENT_SASL_AUTH, sessionTracker, SKIP_ACL, SNAP_COUNT, state, tickTime, ZOOKEEPER_DIGEST_ENABLED| Modifier and Type | Method and Description |
|---|---|
void |
dumpConf(PrintWriter pwriter) |
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 |
setState(ZooKeeperServer.State state)
Sets the state of ZooKeeper server.
|
protected void |
setupRequestProcessors() |
void |
shutdown() |
void |
startup() |
protected void |
unregisterJMX() |
protected void |
unregisterJMX(ZooKeeperServer zks) |
authWriteRequest, canShutdown, checkACL, checkPasswd, checkRequestSizeWhenReceivingMessage, closeSession, closeSession, connThrottle, createSessionTracker, decInProcess, dumpEphemerals, dumpMonitorValues, enqueueRequest, expire, finishSessionInit, getClientPort, getClientPortListenBacklog, getConf, getConnectionDropChance, getDataDirSize, getEphemerals, getGetChildrenResponseCache, getGlobalOutstandingLimit, getInflight, getInitialConfig, getInProcess, getLargeRequestBytes, getLargeRequestMaxBytes, getLargeRequestThreshold, getLastProcessedZxid, getLogDirSize, getMaxClientCnxnsPerHost, getMaxSessionTimeout, getMinSessionTimeout, getNumAliveConnections, getOutstandingHandshakeNum, getOutstandingRequests, getReadResponseCache, getRequestPathMetricsCollector, getSecureClientPort, getSecureServerCnxnFactory, getServerCnxnFactory, getSessionExpiryMap, getSessionTracker, getSnapCount, getSnapSizeInBytes, getTickTime, getTxnLogElapsedSyncTime, getTxnLogFactory, getZKDatabase, getZooKeeperServerListener, getZxid, incInProcess, isCloseSessionTxnEnabled, isDigestEnabled, isReconfigEnabled, isResponseCachingEnabled, isRunning, killSession, loadData, processConnectRequest, processPacket, processTxn, processTxn, registerMetrics, reopenSession, requestFinished, revalidateSession, serverStats, setClientPortListenBacklog, setCloseSessionTxnEnabled, setCreateSessionTrackerServerId, setDigestEnabled, setLargeRequestMaxBytes, setLargeRequestThreshold, setLocalSessionFlag, setMaxSessionTimeout, setMinSessionTimeout, setOwner, setResponseCachingEnabled, setSecureServerCnxnFactory, setServerCnxnFactory, setTickTime, setTxnLogFactory, setZKDatabase, setZxid, shouldThrottle, shutdown, startdata, startJvmPauseMonitor, startRequestThrottler, startServing, startSessionTracker, startupWithoutServing, submitRequest, submitRequestNow, takeSnapshot, takeSnapshot, truncateLog, unregisterMetricsprotected final QuorumPeer self
protected 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 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 ZooKeeperServerpublic void dumpConf(PrintWriter pwriter)
dumpConf in class ZooKeeperServerprotected void setState(ZooKeeperServer.State state)
ZooKeeperServerThe following are the server state transitions:
ZooKeeperServerListenerImpl notifies any critical resource
error events, e.g., SyncRequestProcessor not being able to write a txn to
disk.setState in class ZooKeeperServerstate - new server state.Copyright © 2008–2021 The Apache Software Foundation. All rights reserved.