public class ZkClientx
extends org.I0Itec.zkclient.ZkClient
| 构造器和说明 |
|---|
ZkClientx(java.lang.String serverstring) |
ZkClientx(java.lang.String zkServers,
int connectionTimeout) |
ZkClientx(java.lang.String zkServers,
int sessionTimeout,
int connectionTimeout) |
ZkClientx(java.lang.String zkServers,
int sessionTimeout,
int connectionTimeout,
org.I0Itec.zkclient.serialize.ZkSerializer zkSerializer) |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
clearClients() |
void |
createPersistent(java.lang.String path,
java.lang.Object data,
boolean createParents)
Create a persistent Sequential node.
|
java.lang.String |
createPersistentSequential(java.lang.String path,
boolean createParents)
Create a persistent Sequential node.
|
java.lang.String |
createPersistentSequential(java.lang.String path,
java.lang.Object data,
boolean createParents)
Create a persistent Sequential node.
|
static ZkClientx |
getZkClient(java.lang.String servers) |
addAuthInfo, close, connect, countChildren, create, create, createEphemeral, createEphemeral, createEphemeral, createEphemeral, createEphemeralSequential, createEphemeralSequential, createPersistent, createPersistent, createPersistent, createPersistent, createPersistent, createPersistentSequential, createPersistentSequential, delete, delete, deleteRecursive, exists, exists, getAcl, getChildren, getChildren, getCreationTime, getDataListener, getEventLock, getShutdownTrigger, multi, numberOfListeners, process, readData, readData, readData, readData, retryUntilConnected, setAcl, setCurrentState, setShutdownTrigger, setZkSerializer, showFolders, subscribeChildChanges, subscribeDataChanges, subscribeStateChanges, unsubscribeAll, unsubscribeChildChanges, unsubscribeDataChanges, unsubscribeStateChanges, updateDataSerialized, waitForKeeperState, waitUntilConnected, waitUntilConnected, waitUntilExists, watchForChilds, watchForData, writeData, writeData, writeDataReturnStatpublic ZkClientx(java.lang.String serverstring)
public ZkClientx(java.lang.String zkServers,
int connectionTimeout)
public ZkClientx(java.lang.String zkServers,
int sessionTimeout,
int connectionTimeout)
public ZkClientx(java.lang.String zkServers,
int sessionTimeout,
int connectionTimeout,
org.I0Itec.zkclient.serialize.ZkSerializer zkSerializer)
public static ZkClientx getZkClient(java.lang.String servers)
public static void clearClients()
public java.lang.String createPersistentSequential(java.lang.String path,
boolean createParents)
throws org.I0Itec.zkclient.exception.ZkInterruptedException,
java.lang.IllegalArgumentException,
org.I0Itec.zkclient.exception.ZkException,
java.lang.RuntimeException
path - createParents - if true all parent dirs are created as well and no
ZkNodeExistsException is thrown in case the path already existsorg.I0Itec.zkclient.exception.ZkInterruptedException - if operation was interrupted, or a
required reconnection got interruptedjava.lang.IllegalArgumentException - if called from anything except the
ZooKeeper event threadorg.I0Itec.zkclient.exception.ZkException - if any ZooKeeper exception occurredjava.lang.RuntimeException - if any other exception occurspublic java.lang.String createPersistentSequential(java.lang.String path,
java.lang.Object data,
boolean createParents)
throws org.I0Itec.zkclient.exception.ZkInterruptedException,
java.lang.IllegalArgumentException,
org.I0Itec.zkclient.exception.ZkException,
java.lang.RuntimeException
path - data - createParents - if true all parent dirs are created as well and no
ZkNodeExistsException is thrown in case the path already existsorg.I0Itec.zkclient.exception.ZkInterruptedException - if operation was interrupted, or a
required reconnection got interruptedjava.lang.IllegalArgumentException - if called from anything except the
ZooKeeper event threadorg.I0Itec.zkclient.exception.ZkException - if any ZooKeeper exception occurredjava.lang.RuntimeException - if any other exception occurspublic void createPersistent(java.lang.String path,
java.lang.Object data,
boolean createParents)
throws org.I0Itec.zkclient.exception.ZkInterruptedException,
java.lang.IllegalArgumentException,
org.I0Itec.zkclient.exception.ZkException,
java.lang.RuntimeException
path - data - createParents - if true all parent dirs are created as well and no
ZkNodeExistsException is thrown in case the path already existsorg.I0Itec.zkclient.exception.ZkInterruptedException - if operation was interrupted, or a
required reconnection got interruptedjava.lang.IllegalArgumentException - if called from anything except the
ZooKeeper event threadorg.I0Itec.zkclient.exception.ZkException - if any ZooKeeper exception occurredjava.lang.RuntimeException - if any other exception occursCopyright © 2023. All rights reserved.