Package org.apache.zookeeper.server
Class ZooKeeperServerConf
- java.lang.Object
- 
- org.apache.zookeeper.server.ZooKeeperServerConf
 
- 
 public class ZooKeeperServerConf extends Object Configuration data for aZooKeeperServer. This class is immutable.
- 
- 
Field SummaryFields Modifier and Type Field Description static StringKEY_CLIENT_PORTThe key in the map returned bytoMap()for the client port.static StringKEY_CLIENT_PORT_LISTEN_BACKLOGThe key in the map returned bytoMap()for the server socket listen backlog.static StringKEY_DATA_DIRThe key in the map returned bytoMap()for the data directory.static StringKEY_DATA_LOG_DIRThe key in the map returned bytoMap()for the data log directory.static StringKEY_MAX_CLIENT_CNXNSThe key in the map returned bytoMap()for the maximum client connections per host.static StringKEY_MAX_SESSION_TIMEOUTThe key in the map returned bytoMap()for the maximum session timeout.static StringKEY_MIN_SESSION_TIMEOUTThe key in the map returned bytoMap()for the minimum session timeout.static StringKEY_SERVER_IDThe key in the map returned bytoMap()for the server ID.static StringKEY_TICK_TIMEThe key in the map returned bytoMap()for the tick time.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetClientPort()Gets the client port.intgetClientPortListenBacklog()Returns the server socket listen backlog length.StringgetDataDir()Gets the data directory.StringgetDataLogDir()Gets the data log directory.intgetMaxClientCnxnsPerHost()Gets the maximum client connections per host.intgetMaxSessionTimeout()Gets the maximum session timeout.intgetMinSessionTimeout()Gets the minimum session timeout.longgetServerId()Gets the server ID.intgetTickTime()Gets the tick time.Map<String,Object>toMap()Converts this configuration to a map.
 
- 
- 
- 
Field Detail- 
KEY_CLIENT_PORTpublic static final String KEY_CLIENT_PORT The key in the map returned bytoMap()for the client port.- See Also:
- Constant Field Values
 
 - 
KEY_DATA_DIRpublic static final String KEY_DATA_DIR The key in the map returned bytoMap()for the data directory.- See Also:
- Constant Field Values
 
 - 
KEY_DATA_LOG_DIRpublic static final String KEY_DATA_LOG_DIR The key in the map returned bytoMap()for the data log directory.- See Also:
- Constant Field Values
 
 - 
KEY_TICK_TIMEpublic static final String KEY_TICK_TIME The key in the map returned bytoMap()for the tick time.- See Also:
- Constant Field Values
 
 - 
KEY_MAX_CLIENT_CNXNSpublic static final String KEY_MAX_CLIENT_CNXNS The key in the map returned bytoMap()for the maximum client connections per host.- See Also:
- Constant Field Values
 
 - 
KEY_MIN_SESSION_TIMEOUTpublic static final String KEY_MIN_SESSION_TIMEOUT The key in the map returned bytoMap()for the minimum session timeout.- See Also:
- Constant Field Values
 
 - 
KEY_MAX_SESSION_TIMEOUTpublic static final String KEY_MAX_SESSION_TIMEOUT The key in the map returned bytoMap()for the maximum session timeout.- See Also:
- Constant Field Values
 
 - 
KEY_SERVER_IDpublic static final String KEY_SERVER_ID The key in the map returned bytoMap()for the server ID.- See Also:
- Constant Field Values
 
 - 
KEY_CLIENT_PORT_LISTEN_BACKLOGpublic static final String KEY_CLIENT_PORT_LISTEN_BACKLOG The key in the map returned bytoMap()for the server socket listen backlog.- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getClientPortpublic int getClientPort() Gets the client port.- Returns:
- client port
 
 - 
getDataDirpublic String getDataDir() Gets the data directory.- Returns:
- data directory
 
 - 
getDataLogDirpublic String getDataLogDir() Gets the data log directory.- Returns:
- data log directory
 
 - 
getTickTimepublic int getTickTime() Gets the tick time.- Returns:
- tick time
 
 - 
getMaxClientCnxnsPerHostpublic int getMaxClientCnxnsPerHost() Gets the maximum client connections per host.- Returns:
- maximum client connections per host
 
 - 
getMinSessionTimeoutpublic int getMinSessionTimeout() Gets the minimum session timeout.- Returns:
- minimum session timeout
 
 - 
getMaxSessionTimeoutpublic int getMaxSessionTimeout() Gets the maximum session timeout.- Returns:
- maximum session timeout
 
 - 
getServerIdpublic long getServerId() Gets the server ID.- Returns:
- server ID
 
 - 
getClientPortListenBacklogpublic int getClientPortListenBacklog() Returns the server socket listen backlog length.
 
- 
 
-