public interface ZooKeeperClient
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
create(String path) |
void |
createAndSetData(String path,
byte[] data) |
void |
createWithMode(String path,
org.apache.zookeeper.CreateMode mode) |
void |
delete(String path) |
void |
delete(String path,
int version) |
void |
deleteRecursive(String path) |
void |
ensurePath(String path) |
void |
ensurePath(String path,
boolean excludingLast) |
void |
ensurePathAndSetData(String path,
byte[] data)
Ensure a path exists.
|
org.apache.zookeeper.data.Stat |
exists(String path) |
List<org.apache.zookeeper.data.ACL> |
getAcl(String path) |
List<String> |
getChildren(String path) |
org.apache.curator.framework.listen.Listenable<org.apache.curator.framework.state.ConnectionStateListener> |
getConnectionStateListenable() |
org.apache.curator.framework.CuratorFramework |
getCuratorFramework() |
byte[] |
getData(String path) |
Node |
getNode(String path) |
org.apache.zookeeper.ZooKeeper.States |
getState() |
List<String> |
listRecursive(String path) |
<T> PersistentPathChildrenCache<T> |
pathChildrenCache(String path,
Path snapshotFile,
com.fasterxml.jackson.databind.JavaType valueType) |
org.apache.curator.framework.recipes.nodes.PersistentEphemeralNode |
persistentEphemeralNode(String path,
org.apache.curator.framework.recipes.nodes.PersistentEphemeralNode.Mode mode,
byte[] data) |
void |
setAcl(String path,
List<org.apache.zookeeper.data.ACL> aclList) |
void |
setData(String path,
byte[] bytes) |
void |
start() |
org.apache.zookeeper.data.Stat |
stat(String path) |
Collection<org.apache.curator.framework.api.transaction.CuratorTransactionResult> |
transaction(List<ZooKeeperOperation> operations) |
Collection<org.apache.curator.framework.api.transaction.CuratorTransactionResult> |
transaction(ZooKeeperOperation... operations) |
void ensurePath(String path) throws org.apache.zookeeper.KeeperException
org.apache.zookeeper.KeeperExceptionvoid ensurePath(String path, boolean excludingLast) throws org.apache.zookeeper.KeeperException
org.apache.zookeeper.KeeperExceptionvoid ensurePathAndSetData(String path, byte[] data) throws org.apache.zookeeper.KeeperException
path - The path to ensure exists.data - The data to write at the base of the path, if it does not exist.org.apache.zookeeper.KeeperExceptionbyte[] getData(String path) throws org.apache.zookeeper.KeeperException
org.apache.zookeeper.KeeperExceptionList<String> getChildren(String path) throws org.apache.zookeeper.KeeperException
org.apache.zookeeper.KeeperExceptionvoid delete(String path) throws org.apache.zookeeper.KeeperException
org.apache.zookeeper.KeeperExceptionvoid delete(String path, int version) throws org.apache.zookeeper.KeeperException
org.apache.zookeeper.KeeperExceptionvoid setData(String path, byte[] bytes) throws org.apache.zookeeper.KeeperException
org.apache.zookeeper.KeeperExceptionvoid createAndSetData(String path, byte[] data) throws org.apache.zookeeper.KeeperException
org.apache.zookeeper.KeeperExceptionvoid createWithMode(String path, org.apache.zookeeper.CreateMode mode) throws org.apache.zookeeper.KeeperException
org.apache.zookeeper.KeeperExceptionorg.apache.zookeeper.data.Stat stat(String path) throws org.apache.zookeeper.KeeperException
org.apache.zookeeper.KeeperExceptionvoid deleteRecursive(String path) throws org.apache.zookeeper.KeeperException
org.apache.zookeeper.KeeperExceptionList<String> listRecursive(String path) throws org.apache.zookeeper.KeeperException
org.apache.zookeeper.KeeperExceptionvoid create(String path) throws org.apache.zookeeper.KeeperException
org.apache.zookeeper.KeeperException<T> PersistentPathChildrenCache<T> pathChildrenCache(String path, Path snapshotFile, com.fasterxml.jackson.databind.JavaType valueType) throws IOException, InterruptedException
IOExceptionInterruptedExceptionCollection<org.apache.curator.framework.api.transaction.CuratorTransactionResult> transaction(List<ZooKeeperOperation> operations) throws org.apache.zookeeper.KeeperException
org.apache.zookeeper.KeeperExceptionCollection<org.apache.curator.framework.api.transaction.CuratorTransactionResult> transaction(ZooKeeperOperation... operations) throws org.apache.zookeeper.KeeperException
org.apache.zookeeper.KeeperExceptionNode getNode(String path) throws org.apache.zookeeper.KeeperException
org.apache.zookeeper.KeeperExceptionorg.apache.zookeeper.data.Stat exists(String path) throws org.apache.zookeeper.KeeperException
org.apache.zookeeper.KeeperExceptionorg.apache.curator.framework.listen.Listenable<org.apache.curator.framework.state.ConnectionStateListener> getConnectionStateListenable()
org.apache.zookeeper.ZooKeeper.States getState()
throws org.apache.zookeeper.KeeperException
org.apache.zookeeper.KeeperExceptionvoid start()
void close()
org.apache.curator.framework.recipes.nodes.PersistentEphemeralNode persistentEphemeralNode(String path, org.apache.curator.framework.recipes.nodes.PersistentEphemeralNode.Mode mode, byte[] data)
org.apache.curator.framework.CuratorFramework getCuratorFramework()
void setAcl(String path, List<org.apache.zookeeper.data.ACL> aclList) throws org.apache.zookeeper.KeeperException
org.apache.zookeeper.KeeperExceptionCopyright © 2017. All rights reserved.