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, wait
addConnectionWatcher, create, delete, exists, getACL, getChildren, getConnectString, getData, getSessionId, setACL, setData
public final OperationFuture<String> create(String path, @Nullable byte[] data, org.apache.zookeeper.CreateMode createMode)
ZKClient
create(path, data, createMode, true)
.create
in interface ZKClient
ZKClient.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)
ZKClient
create(path, data, createMode, createParent, ZooDefs.Ids.OPEN_ACL_UNSAFE)
create
in interface ZKClient
ZKClient.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)
ZKClient
create(path, data, createMode, true, acl)
create
in interface ZKClient
ZKClient.create(String, byte[], org.apache.zookeeper.CreateMode, boolean, Iterable)
public final OperationFuture<org.apache.zookeeper.data.Stat> exists(String path)
ZKClient
exists(path, null)
.exists
in interface ZKClient
ZKClient.exists(String, org.apache.zookeeper.Watcher)
public final OperationFuture<NodeChildren> getChildren(String path)
ZKClient
getChildren(path, null)
.getChildren
in interface ZKClient
ZKClient.getChildren(String, org.apache.zookeeper.Watcher)
public final OperationFuture<NodeData> getData(String path)
ZKClient
getData(path, null)
.public final OperationFuture<org.apache.zookeeper.data.Stat> setData(String path, byte[] data)
ZKClient
setData(path, data, -1)
.public final OperationFuture<String> delete(String path)
ZKClient
delete(path, -1)
.delete
in interface ZKClient
ZKClient.delete(String, int)
public final OperationFuture<org.apache.zookeeper.data.Stat> setACL(String path, Iterable<org.apache.zookeeper.data.ACL> acl)
ZKClient
setACL(path, acl, -1)
setACL
in interface ZKClient
ZKClient.setACL(String, Iterable, int)
Copyright © 2013-2016 The Apache Software Foundation. All rights reserved.