public class ZKClient
extends org.apache.zookeeper.ZooKeeper
| Constructor and Description |
|---|
ZKClient(String connectString,
int sessionTimeout)
Construct ZKClient by providing just a connect string and timeout.
|
ZKClient(ZKConfig config)
Construct ZKClient based on configuration instance.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getHost() |
int |
getPort() |
ZKConfig |
getZKPConfig()
Get config instance for ZooKeeper Policy Auditing Tool.
|
addAuthInfo, addWatch, addWatch, addWatch, addWatch, close, close, create, create, create, create, create, create, createConnection, defaultWatchManager, delete, delete, exists, exists, exists, exists, getACL, getACL, getAllChildrenNumber, getAllChildrenNumber, getChildren, getChildren, getChildren, getChildren, getChildren, getChildren, getChildren, getChildren, getChildWatches, getClientConfig, getConfig, getConfig, getConfig, getConfig, getData, getData, getData, getData, getDataWatches, getEphemerals, getEphemerals, getEphemerals, getEphemerals, getExistWatches, getPersistentRecursiveWatches, getPersistentWatches, getSaslClient, getSessionId, getSessionPasswd, getSessionTimeout, getState, getTestable, multi, multi, multiInternal, multiInternal, register, removeAllWatches, removeAllWatches, removeWatches, removeWatches, setACL, setACL, setData, setData, sync, testableLocalSocketAddress, testableRemoteSocketAddress, testableWaitForShutdown, toString, transaction, updateServerListpublic ZKClient(String connectString, int sessionTimeout) throws IOException
connectString - String in format host1:port1,...,hostN:portNsessionTimeout - Timeout for connecting to ZooKeeperIOExceptionpublic ZKClient(ZKConfig config) throws IOException
config - Configuration instanceIOExceptionCopyright © 2020. All rights reserved.