Package org.apache.curator.test
Class TestingZooKeeperMain.TestZooKeeperServer
java.lang.Object
org.apache.zookeeper.server.ZooKeeperServer
org.apache.curator.test.TestingZooKeeperMain.TestZooKeeperServer
- All Implemented Interfaces:
org.apache.zookeeper.server.ServerStats.Provider
,org.apache.zookeeper.server.SessionTracker.SessionExpirer
- Enclosing class:
TestingZooKeeperMain
public static class TestingZooKeeperMain.TestZooKeeperServer
extends org.apache.zookeeper.server.ZooKeeperServer
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.zookeeper.server.ZooKeeperServer
org.apache.zookeeper.server.ZooKeeperServer.MissingSessionException, org.apache.zookeeper.server.ZooKeeperServer.State
-
Field Summary
Fields inherited from class org.apache.zookeeper.server.ZooKeeperServer
ALLOW_SASL_FAILED_CLIENTS, CLOSE_SESSION_TXN_ENABLED, DEFAULT_STARTING_BUFFER_SIZE, DEFAULT_THROTTLED_OP_WAIT_TIME, DEFAULT_TICK_TIME, ENABLE_EAGER_ACL_CHECK, ENFORCE_QUOTA, enforceQuota, 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_SUPER_USER, secureServerCnxnFactory, serverCnxnFactory, sessionTracker, SKIP_ACL, SNAP_COUNT, state, throttledOpWaitTime, tickTime, ZOOKEEPER_DIGEST_ENABLED, ZOOKEEPER_SERIALIZE_LAST_PROCESSED_ZXID_ENABLED
-
Constructor Summary
ConstructorsConstructorDescriptionTestZooKeeperServer
(org.apache.zookeeper.server.persistence.FileTxnSnapLog txnLog, org.apache.zookeeper.server.ServerConfig config) -
Method Summary
Modifier and TypeMethodDescriptionvoid
org.apache.zookeeper.server.RequestProcessor
boolean
void
protected void
protected void
setState
(org.apache.zookeeper.server.ZooKeeperServer.State state) protected void
Methods inherited from class org.apache.zookeeper.server.ZooKeeperServer
authWriteRequest, checkACL, checkPasswd, checkQuota, checkRequestSizeWhenReceivingMessage, closeSession, closeSession, connThrottle, createRequestThrottler, createSessionTracker, decInProcess, dumpConf, dumpEphemerals, dumpMonitorValues, enqueueRequest, expire, 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, getServerId, getSessionExpiryMap, getSessionTracker, getSnapCount, getSnapSizeInBytes, getState, getThrottledOpWaitTime, getTickTime, getTxnLogElapsedSyncTime, getTxnLogFactory, getZKDatabase, getZkShutdownHandler, getZooKeeperServerListener, getZxid, incInProcess, isCloseSessionTxnEnabled, isDigestEnabled, isEnableEagerACLCheck, isReconfigEnabled, isResponseCachingEnabled, isSerializeLastProcessedZxidEnabled, killSession, loadData, processConnectRequest, processPacket, processTxn, processTxn, registerMetrics, reopenSession, requestFinished, restoreFromSnapshot, revalidateSession, serverStats, setClientPortListenBacklog, setCloseSessionTxnEnabled, setCreateSessionTrackerServerId, setDigestEnabled, setEnableEagerACLCheck, setLargeRequestMaxBytes, setLargeRequestThreshold, setLocalSessionFlag, setMaxSessionTimeout, setMinSessionTimeout, setOwner, setResponseCachingEnabled, setSecureServerCnxnFactory, setSerializeLastProcessedZxidEnabled, setServerCnxnFactory, setThrottledOpWaitTime, setTickTime, setTxnLogFactory, setupRequestProcessors, setZKDatabase, setZxid, shouldForceWriteInitialSnapshotAfterLeaderElection, shouldThrottle, shutdown, shutdown, shutdownComponents, startdata, startJvmPauseMonitor, startRequestThrottler, startSessionTracker, startup, submitRequest, submitRequestNow, takeSnapshot, takeSnapshot, takeSnapshot, truncateLog, unregisterMetrics, validateSession
-
Constructor Details
-
TestZooKeeperServer
public TestZooKeeperServer(org.apache.zookeeper.server.persistence.FileTxnSnapLog txnLog, org.apache.zookeeper.server.ServerConfig config)
-
-
Method Details
-
customShutdown
public void customShutdown() -
getFirstProcessor
public org.apache.zookeeper.server.RequestProcessor getFirstProcessor() -
setState
protected void setState(org.apache.zookeeper.server.ZooKeeperServer.State state) - Overrides:
setState
in classorg.apache.zookeeper.server.ZooKeeperServer
-
registerJMX
protected void registerJMX()- Overrides:
registerJMX
in classorg.apache.zookeeper.server.ZooKeeperServer
-
unregisterJMX
protected void unregisterJMX()- Overrides:
unregisterJMX
in classorg.apache.zookeeper.server.ZooKeeperServer
-
isRunning
public boolean isRunning()- Overrides:
isRunning
in classorg.apache.zookeeper.server.ZooKeeperServer
-
noteStartup
public void noteStartup()
-