public abstract class AbstractZKClient extends Object implements ZKClient
ZKClient that simplifies implementation by providing forwarding for
methods that are meant to be delegated to other methods.| Constructor and Description |
|---|
AbstractZKClient() |
| Modifier and Type | Method and Description |
|---|---|
OperationFuture<String> |
create(String path,
byte[] data,
org.apache.zookeeper.CreateMode createMode)
Creates a path in zookeeper.
|
OperationFuture<String> |
create(String path,
byte[] data,
org.apache.zookeeper.CreateMode createMode,
boolean createParent)
Creates a path in zookeeper.
|
OperationFuture<String> |
create(String path,
byte[] data,
org.apache.zookeeper.CreateMode createMode,
Iterable<org.apache.zookeeper.data.ACL> acl)
Creates a path in zookeeper.
|
OperationFuture<String> |
delete(String path)
Deletes the node of the given path without matching version.
|
OperationFuture<org.apache.zookeeper.data.Stat> |
exists(String path)
Checks if the path exists.
|
OperationFuture<NodeChildren> |
getChildren(String path)
Gets the list of children nodes under the given path.
|
OperationFuture<NodeData> |
getData(String path)
Gets the data stored in the given path.
|
OperationFuture<org.apache.zookeeper.data.Stat> |
setACL(String path,
Iterable<org.apache.zookeeper.data.ACL> acl)
Sets the ACL of the given path if the path exists.
|
OperationFuture<org.apache.zookeeper.data.Stat> |
setData(String path,
byte[] data)
Sets the data for the given path without matching version.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddConnectionWatcher, create, delete, exists, getACL, getChildren, getConnectString, getData, getSessionId, setACL, setDatapublic final OperationFuture<String> create(String path, @Nullable byte[] data, org.apache.zookeeper.CreateMode createMode)
ZKClientcreate(path, data, createMode, true).create in interface ZKClientZKClient.create(String, byte[], org.apache.zookeeper.CreateMode, boolean)public final OperationFuture<String> create(String path, @Nullable byte[] data, org.apache.zookeeper.CreateMode createMode, boolean createParent)
ZKClientcreate(path, data, createMode, createParent, ZooDefs.Ids.OPEN_ACL_UNSAFE)create in interface ZKClientZKClient.create(String, byte[], org.apache.zookeeper.CreateMode, boolean, Iterable)public final OperationFuture<String> create(String path, @Nullable byte[] data, org.apache.zookeeper.CreateMode createMode, Iterable<org.apache.zookeeper.data.ACL> acl)
ZKClientcreate(path, data, createMode, true, acl)create in interface ZKClientZKClient.create(String, byte[], org.apache.zookeeper.CreateMode, boolean, Iterable)public final OperationFuture<org.apache.zookeeper.data.Stat> exists(String path)
ZKClientexists(path, null).exists in interface ZKClientZKClient.exists(String, org.apache.zookeeper.Watcher)public final OperationFuture<NodeChildren> getChildren(String path)
ZKClientgetChildren(path, null).getChildren in interface ZKClientZKClient.getChildren(String, org.apache.zookeeper.Watcher)public final OperationFuture<NodeData> getData(String path)
ZKClientgetData(path, null).public final OperationFuture<org.apache.zookeeper.data.Stat> setData(String path, byte[] data)
ZKClientsetData(path, data, -1).public final OperationFuture<String> delete(String path)
ZKClientdelete(path, -1).delete in interface ZKClientZKClient.delete(String, int)public final OperationFuture<org.apache.zookeeper.data.Stat> setACL(String path, Iterable<org.apache.zookeeper.data.ACL> acl)
ZKClientsetACL(path, acl, -1)setACL in interface ZKClientZKClient.setACL(String, Iterable, int)Copyright © 2013-2016 The Apache Software Foundation. All rights reserved.