Package | Description |
---|---|
org.apache.zookeeper |
Modifier and Type | Method and Description |
---|---|
static KeeperException |
KeeperException.create(int code)
Deprecated.
deprecated in 3.1.0, use
create(Code)
instead |
static KeeperException |
KeeperException.create(int code,
java.lang.String path)
Deprecated.
deprecated in 3.1.0, use
create(Code, String)
instead |
static KeeperException |
KeeperException.create(KeeperException.Code code)
All non-specific keeper exceptions should be constructed via
this factory method in order to guarantee consistency in error
codes and such.
|
static KeeperException |
KeeperException.create(KeeperException.Code code,
java.lang.String path)
All non-specific keeper exceptions should be constructed via
this factory method in order to guarantee consistency in error
codes and such.
|
Modifier and Type | Method and Description |
---|---|
java.util.List<org.apache.zookeeper.OpResult> |
Transaction.commit() |
java.lang.String |
ZooKeeper.create(java.lang.String path,
byte[] data,
java.util.List<ACL> acl,
CreateMode createMode)
Create a node with the given path.
|
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 boolean |
ZooKeeperMain.delQuota(ZooKeeper zk,
java.lang.String path,
boolean bytes,
boolean numNodes)
this method deletes quota for a node.
|
void |
ZooKeeperMain.executeLine(java.lang.String line) |
Stat |
ZooKeeper.exists(java.lang.String path,
boolean watch)
Return the stat of the node of the given path.
|
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<ACL> |
ZooKeeper.getACL(java.lang.String path,
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,
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,
Stat stat)
For the given znode path return the stat and children list.
|
byte[] |
ZooKeeper.getData(java.lang.String path,
boolean watch,
Stat stat)
Return the data and the stat of the node of the given path.
|
byte[] |
ZooKeeper.getData(java.lang.String path,
Watcher watcher,
Stat stat)
Return the data and the stat of the node of the given path.
|
static void |
ZooKeeperMain.main(java.lang.String[] args) |
java.util.List<org.apache.zookeeper.OpResult> |
ZooKeeper.multi(java.lang.Iterable<org.apache.zookeeper.Op> ops)
Executes multiple ZooKeeper operations or none of them.
|
Stat |
ZooKeeper.setACL(java.lang.String path,
java.util.List<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.
|
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).
|
Copyright © 2018 The Apache Software Foundation