Package | Description |
---|---|
org.apache.zookeeper | |
org.apache.zookeeper.admin |
Modifier and Type | Method and Description |
---|---|
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.
|
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).
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
ZooKeeper.create(java.lang.String path,
byte[] data,
java.util.List<ACL> acl,
CreateMode createMode,
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<ACL> acl,
CreateMode createMode,
Stat stat,
long ttl)
same as
ZooKeeper.create(String, byte[], List, CreateMode, Stat) but
allows for specifying a TTL when mode is CreateMode.PERSISTENT_WITH_TTL
or CreateMode.PERSISTENT_SEQUENTIAL_WITH_TTL . |
java.util.List<ACL> |
ZooKeeper.getACL(java.lang.String path,
Stat stat)
Return the ACL and stat of the node of the given path.
|
void |
ZooKeeper.getACL(java.lang.String path,
Stat stat,
AsyncCallback.ACLCallback cb,
java.lang.Object ctx)
The asynchronous version of getACL.
|
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,
Stat stat)
For the given znode path return the stat and children list.
|
byte[] |
ZooKeeper.getConfig(boolean watch,
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,
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,
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.
|
void |
AsyncCallback.DataCallback.processResult(int rc,
java.lang.String path,
java.lang.Object ctx,
byte[] data,
Stat stat)
Process the result of asynchronous calls.
|
void |
AsyncCallback.ACLCallback.processResult(int rc,
java.lang.String path,
java.lang.Object ctx,
java.util.List<ACL> acl,
Stat stat)
Process the result of the asynchronous call.
|
void |
AsyncCallback.Children2Callback.processResult(int rc,
java.lang.String path,
java.lang.Object ctx,
java.util.List<java.lang.String> children,
Stat stat)
Process the result of the asynchronous call.
|
void |
AsyncCallback.StatCallback.processResult(int rc,
java.lang.String path,
java.lang.Object ctx,
Stat stat)
Process the result of the asynchronous call.
|
void |
AsyncCallback.Create2Callback.processResult(int rc,
java.lang.String path,
java.lang.Object ctx,
java.lang.String name,
Stat stat)
Process the result of the asynchronous call.
|
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,
Stat stat)
Deprecated.
instead use the reconfigure() methods instead in
ZooKeeperAdmin |
byte[] |
ZooKeeper.reconfig(java.lang.String joiningServers,
java.lang.String leavingServers,
java.lang.String newMembers,
long fromConfig,
Stat stat)
Deprecated.
instead use the reconfigure() methods instead in
ZooKeeperAdmin |
Modifier and Type | Method and Description |
---|---|
byte[] |
ZooKeeperAdmin.reconfigure(java.util.List<java.lang.String> joiningServers,
java.util.List<java.lang.String> leavingServers,
java.util.List<java.lang.String> newMembers,
long fromConfig,
Stat stat)
Convenience wrapper around reconfig that takes Lists of strings instead of comma-separated servers.
|
byte[] |
ZooKeeperAdmin.reconfigure(java.lang.String joiningServers,
java.lang.String leavingServers,
java.lang.String newMembers,
long fromConfig,
Stat stat)
Reconfigure - add/remove servers.
|
Copyright © 2018 The Apache Software Foundation