java.util.List<OpResult> |
Transaction.commit() |
|
java.lang.String |
ZooKeeper.create(java.lang.String path,
byte[] data,
java.util.List<org.apache.zookeeper.data.ACL> acl,
CreateMode createMode) |
Create a node with the given path.
|
java.lang.String |
ZooKeeper.create(java.lang.String path,
byte[] data,
java.util.List<org.apache.zookeeper.data.ACL> acl,
CreateMode createMode,
org.apache.zookeeper.data.Stat stat) |
Create a node with the given path and returns the Stat of that node.
|
java.lang.String |
ZooKeeper.create(java.lang.String path,
byte[] data,
java.util.List<org.apache.zookeeper.data.ACL> acl,
CreateMode createMode,
org.apache.zookeeper.data.Stat stat,
long ttl) |
|
static boolean |
ZooKeeperMain.createQuota(ZooKeeper zk,
java.lang.String path,
long bytes,
int numNodes) |
this method creates a quota node for the path
|
void |
ZooKeeper.delete(java.lang.String path,
int version) |
Delete the node with the given path.
|
static void |
ZKUtil.deleteRecursive(ZooKeeper zk,
java.lang.String pathRoot) |
Recursively delete the node with the given path.
|
static void |
ZKUtil.deleteRecursive(ZooKeeper zk,
java.lang.String pathRoot,
AsyncCallback.VoidCallback cb,
java.lang.Object ctx) |
Recursively delete the node with the given path.
|
static boolean |
ZooKeeperMain.delQuota(ZooKeeper zk,
java.lang.String path,
boolean bytes,
boolean numNodes) |
this method deletes quota for a node.
|
org.apache.zookeeper.data.Stat |
ZooKeeper.exists(java.lang.String path,
boolean watch) |
Return the stat of the node of the given path.
|
org.apache.zookeeper.data.Stat |
ZooKeeper.exists(java.lang.String path,
Watcher watcher) |
Return the stat of the node of the given path.
|
static CreateMode |
CreateMode.fromFlag(int flag) |
Map an integer value to a CreateMode value
|
java.util.List<org.apache.zookeeper.data.ACL> |
ZooKeeper.getACL(java.lang.String path,
org.apache.zookeeper.data.Stat stat) |
Return the ACL and stat of the node of the given path.
|
java.util.List<java.lang.String> |
ZooKeeper.getChildren(java.lang.String path,
boolean watch) |
Return the list of the children of the node of the given path.
|
java.util.List<java.lang.String> |
ZooKeeper.getChildren(java.lang.String path,
boolean watch,
org.apache.zookeeper.data.Stat stat) |
For the given znode path return the stat and children list.
|
java.util.List<java.lang.String> |
ZooKeeper.getChildren(java.lang.String path,
Watcher watcher) |
Return the list of the children of the node of the given path.
|
java.util.List<java.lang.String> |
ZooKeeper.getChildren(java.lang.String path,
Watcher watcher,
org.apache.zookeeper.data.Stat stat) |
For the given znode path return the stat and children list.
|
byte[] |
ZooKeeper.getConfig(boolean watch,
org.apache.zookeeper.data.Stat stat) |
Return the last committed configuration (as known to the server to which the client is connected)
and the stat of the configuration.
|
byte[] |
ZooKeeper.getConfig(Watcher watcher,
org.apache.zookeeper.data.Stat stat) |
Return the last committed configuration (as known to the server to which the client is connected)
and the stat of the configuration.
|
byte[] |
ZooKeeper.getData(java.lang.String path,
boolean watch,
org.apache.zookeeper.data.Stat stat) |
Return the data and the stat of the node of the given path.
|
byte[] |
ZooKeeper.getData(java.lang.String path,
Watcher watcher,
org.apache.zookeeper.data.Stat stat) |
Return the data and the stat of the node of the given path.
|
protected byte[] |
ZooKeeper.internalReconfig(java.lang.String joiningServers,
java.lang.String leavingServers,
java.lang.String newMembers,
long fromConfig,
org.apache.zookeeper.data.Stat stat) |
|
protected byte[] |
ZooKeeper.internalReconfig(java.util.List<java.lang.String> joiningServers,
java.util.List<java.lang.String> leavingServers,
java.util.List<java.lang.String> newMembers,
long fromConfig,
org.apache.zookeeper.data.Stat stat) |
|
static java.util.List<java.lang.String> |
ZKUtil.listSubTreeBFS(ZooKeeper zk,
java.lang.String pathRoot) |
BFS Traversal of the system under pathRoot, with the entries in the list, in the
same order as that of the traversal.
|
java.util.List<OpResult> |
ZooKeeper.multi(java.lang.Iterable<Op> ops) |
Executes multiple ZooKeeper operations or none of them.
|
protected java.util.List<OpResult> |
ZooKeeper.multiInternal(MultiTransactionRecord request) |
|
byte[] |
ZooKeeper.reconfig(java.lang.String joiningServers,
java.lang.String leavingServers,
java.lang.String newMembers,
long fromConfig,
org.apache.zookeeper.data.Stat stat) |
Deprecated.
|
byte[] |
ZooKeeper.reconfig(java.util.List<java.lang.String> joiningServers,
java.util.List<java.lang.String> leavingServers,
java.util.List<java.lang.String> newMembers,
long fromConfig,
org.apache.zookeeper.data.Stat stat) |
Deprecated.
|
void |
ZooKeeper.removeAllWatches(java.lang.String path,
Watcher.WatcherType watcherType,
boolean local) |
For the given znode path, removes all the registered watchers of given
watcherType.
|
void |
ZooKeeper.removeWatches(java.lang.String path,
Watcher watcher,
Watcher.WatcherType watcherType,
boolean local) |
For the given znode path, removes the specified watcher of given
watcherType.
|
org.apache.zookeeper.data.Stat |
ZooKeeper.setACL(java.lang.String path,
java.util.List<org.apache.zookeeper.data.ACL> acl,
int aclVersion) |
Set the ACL for the node of the given path if such a node exists and the
given aclVersion matches the acl version of the node.
|
org.apache.zookeeper.data.Stat |
ZooKeeper.setData(java.lang.String path,
byte[] data,
int version) |
Set the data for the node of the given path if such a node exists and the
given version matches the version of the node (if the given version is
-1, it matches any node's versions).
|
java.util.Map<Watcher.Event.EventType,java.util.Set<Watcher>> |
WatchDeregistration.unregister(int rc) |
Unregistering watcher that was added on path.
|
static void |
ZKUtil.visitSubTreeDFS(ZooKeeper zk,
java.lang.String path,
boolean watch,
AsyncCallback.StringCallback cb) |
Visits the subtree with root as given path and calls the passed callback with each znode
found during the search.
|