public class ZookeeperConfig extends Object
Constructor and Description |
---|
ZookeeperConfig() |
Modifier and Type | Method and Description |
---|---|
InetSocketAddress |
getClientPortAddress()
Get zookeeper server address
|
String |
getDataDir()
Snapshot dir
|
String |
getDataLogDir()
Transaction dir
|
int |
getMaxSessionTimeout()
Maximum session timeout in milliseconds.
|
int |
getMinSessionTimeout()
Minimum session timeout in milliseconds.
|
void |
setClientPortAddress(InetSocketAddress clientPortAddress)
Set zookeeper server address
|
void |
setDataDir(String dataDir)
Set snapshot log dir
|
void |
setDataLogDir(String dataLogDir)
Transaction log dir
|
void |
setMaxSessionTimeout(int maxSessionTimeout)
Set maximum session timeout in milliseconds
|
void |
setMinSessionTimeout(int minSessionTimeout)
Set minimum session timeout in milliseconds
|
public InetSocketAddress getClientPortAddress()
public String getDataDir()
public String getDataLogDir()
public int getMinSessionTimeout()
public int getMaxSessionTimeout()
public void setDataDir(String dataDir)
dataDir
- snapshot log dir pathpublic void setDataLogDir(String dataLogDir)
dataLogDir
- transaction log dir pathpublic void setClientPortAddress(InetSocketAddress clientPortAddress)
clientPortAddress
- server addresspublic void setMinSessionTimeout(int minSessionTimeout)
minSessionTimeout
- min session timeoutpublic void setMaxSessionTimeout(int maxSessionTimeout)
maxSessionTimeout
- max session timeoutCopyright © 2011-2020 The Apache Software Foundation. All Rights Reserved.