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
-
-
Field Summary
-
Fields inherited from class org.apache.zookeeper.server.ZooKeeperServer
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
-
-
Constructor Summary
Constructors Constructor Description TestZooKeeperServer(org.apache.zookeeper.server.persistence.FileTxnSnapLog txnLog, org.apache.zookeeper.server.ServerConfig config)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.zookeeper.server.RequestProcessor
getFirstProcessor()
boolean
isRunning()
void
noteStartup()
protected void
registerJMX()
protected void
setState(org.apache.zookeeper.server.ZooKeeperServer.State state)
void
shutdown(boolean fullyShutDown)
protected void
unregisterJMX()
-
Methods inherited from class org.apache.zookeeper.server.ZooKeeperServer
authWriteRequest, canShutdown, checkACL, checkPasswd, checkRequestSizeWhenReceivingMessage, closeSession, closeSession, connThrottle, createSessionTracker, decInProcess, dumpConf, 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, getServerId, getSessionExpiryMap, getSessionTracker, getSnapCount, getSnapSizeInBytes, getState, getTickTime, getTxnLogElapsedSyncTime, getTxnLogFactory, getZKDatabase, getZooKeeperServerListener, getZxid, incInProcess, isCloseSessionTxnEnabled, isDigestEnabled, isReconfigEnabled, isResponseCachingEnabled, 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, setupRequestProcessors, setZKDatabase, setZxid, shouldThrottle, shutdown, startdata, startJvmPauseMonitor, startRequestThrottler, startServing, startSessionTracker, startup, startupWithoutServing, submitRequest, submitRequestNow, takeSnapshot, takeSnapshot, truncateLog, unregisterMetrics
-
-
-
-
Method Detail
-
shutdown
public void shutdown(boolean fullyShutDown)
- Overrides:
shutdown
in classorg.apache.zookeeper.server.ZooKeeperServer
-
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()
-
-