public class ZooKeeperServerConf extends Object
ZooKeeperServer
. This class is immutable.Modifier and Type | Field and Description |
---|---|
static String |
KEY_CLIENT_PORT
The key in the map returned by
toMap() for the client port. |
static String |
KEY_DATA_DIR
The key in the map returned by
toMap() for the data directory. |
static String |
KEY_DATA_LOG_DIR
The key in the map returned by
toMap() for the data log
directory. |
static String |
KEY_MAX_CLIENT_CNXNS
The key in the map returned by
toMap() for the maximum
client connections per host. |
static String |
KEY_MAX_SESSION_TIMEOUT
The key in the map returned by
toMap() for the maximum session
timeout. |
static String |
KEY_MIN_SESSION_TIMEOUT
The key in the map returned by
toMap() for the minimum session
timeout. |
static String |
KEY_SERVER_ID
The key in the map returned by
toMap() for the server ID. |
static String |
KEY_TICK_TIME
The key in the map returned by
toMap() for the tick time. |
Modifier and Type | Method and Description |
---|---|
int |
getClientPort()
Gets the client port.
|
String |
getDataDir()
Gets the data directory.
|
String |
getDataLogDir()
Gets the data log directory.
|
int |
getMaxClientCnxnsPerHost()
Gets the maximum client connections per host.
|
int |
getMaxSessionTimeout()
Gets the maximum session timeout.
|
int |
getMinSessionTimeout()
Gets the minimum session timeout.
|
long |
getServerId()
Gets the server ID.
|
int |
getTickTime()
Gets the tick time.
|
Map<String,Object> |
toMap()
Converts this configuration to a map.
|
public static final String KEY_CLIENT_PORT
toMap()
for the client port.public static final String KEY_DATA_DIR
toMap()
for the data directory.public static final String KEY_DATA_LOG_DIR
toMap()
for the data log
directory.public static final String KEY_TICK_TIME
toMap()
for the tick time.public static final String KEY_MAX_CLIENT_CNXNS
toMap()
for the maximum
client connections per host.public static final String KEY_MIN_SESSION_TIMEOUT
toMap()
for the minimum session
timeout.public static final String KEY_MAX_SESSION_TIMEOUT
toMap()
for the maximum session
timeout.public static final String KEY_SERVER_ID
toMap()
for the server ID.public int getClientPort()
public String getDataDir()
public String getDataLogDir()
public int getTickTime()
public int getMaxClientCnxnsPerHost()
public int getMinSessionTimeout()
public int getMaxSessionTimeout()
public long getServerId()
Copyright © 2008–2020 The Apache Software Foundation. All rights reserved.