Package | Description |
---|---|
org.apache.zookeeper | |
org.apache.zookeeper.client | |
org.apache.zookeeper.proto | |
org.apache.zookeeper.server |
ZooKeeper server theory of operation
ZooKeeperServer is designed to work in standalone mode and also
be extensible so that it can be used to implement the quorum based
version of ZooKeeper.
|
org.apache.zookeeper.server.upgrade |
Modifier and Type | Method and Description |
---|---|
Stat |
ZooKeeper.exists(String path,
boolean watch)
Return the stat of the node of the given path.
|
Stat |
ZooKeeper.exists(String path,
Watcher watcher)
Return the stat of the node of the given path.
|
Stat |
OpResult.SetDataResult.getStat() |
Stat |
ZooKeeper.setACL(String path,
List<ACL> acl,
int version)
Set the ACL for the node of the given path if such a node exists and the
given version matches the version of the node.
|
Stat |
ZooKeeper.setData(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 |
---|---|
List<ACL> |
ZooKeeper.getACL(String path,
Stat stat)
Return the ACL and stat of the node of the given path.
|
void |
ZooKeeper.getACL(String path,
Stat stat,
AsyncCallback.ACLCallback cb,
Object ctx)
The asynchronous version of getACL.
|
List<String> |
ZooKeeper.getChildren(String path,
boolean watch,
Stat stat)
For the given znode path return the stat and children list.
|
List<String> |
ZooKeeper.getChildren(String path,
Watcher watcher,
Stat stat)
For the given znode path return the stat and children list.
|
byte[] |
ZooKeeper.getData(String path,
boolean watch,
Stat stat)
Return the data and the stat of the node of the given path.
|
byte[] |
ZooKeeper.getData(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,
String path,
Object ctx,
byte[] data,
Stat stat) |
void |
AsyncCallback.ACLCallback.processResult(int rc,
String path,
Object ctx,
List<ACL> acl,
Stat stat) |
void |
AsyncCallback.Children2Callback.processResult(int rc,
String path,
Object ctx,
List<String> children,
Stat stat) |
void |
AsyncCallback.StatCallback.processResult(int rc,
String path,
Object ctx,
Stat stat) |
Constructor and Description |
---|
OpResult.SetDataResult(Stat stat) |
Modifier and Type | Method and Description |
---|---|
void |
ZooKeeperSaslClient.ServerSaslResponseCallback.processResult(int rc,
String path,
Object ctx,
byte[] data,
Stat stat) |
Modifier and Type | Method and Description |
---|---|
Stat |
GetChildren2Response.getStat() |
Stat |
GetACLResponse.getStat() |
Stat |
SetACLResponse.getStat() |
Stat |
GetDataResponse.getStat() |
Stat |
SetDataResponse.getStat() |
Stat |
ExistsResponse.getStat() |
Modifier and Type | Method and Description |
---|---|
void |
GetChildren2Response.setStat(Stat m_) |
void |
GetACLResponse.setStat(Stat m_) |
void |
SetACLResponse.setStat(Stat m_) |
void |
GetDataResponse.setStat(Stat m_) |
void |
SetDataResponse.setStat(Stat m_) |
void |
ExistsResponse.setStat(Stat m_) |
Constructor and Description |
---|
ExistsResponse(Stat stat) |
GetACLResponse(List<ACL> acl,
Stat stat) |
GetChildren2Response(List<String> children,
Stat stat) |
GetDataResponse(byte[] data,
Stat stat) |
SetACLResponse(Stat stat) |
SetDataResponse(Stat stat) |
Modifier and Type | Field and Description |
---|---|
Stat |
DataTree.ProcessTxnResult.stat |
Modifier and Type | Method and Description |
---|---|
Stat |
DataTree.setACL(String path,
List<ACL> acl,
int version) |
Stat |
DataTree.setData(String path,
byte[] data,
int version,
long zxid,
long time) |
Stat |
ZKDatabase.statNode(String path,
ServerCnxn serverCnxn)
stat the path
|
Stat |
DataTree.statNode(String path,
Watcher watcher) |
Modifier and Type | Method and Description |
---|---|
void |
DataNode.copyStat(Stat to) |
static void |
DataTree.copyStat(Stat from,
Stat to) |
List<ACL> |
DataTree.getACL(String path,
Stat stat) |
List<ACL> |
ZKDatabase.getACL(String path,
Stat stat)
get acl for a path
|
List<String> |
DataTree.getChildren(String path,
Stat stat,
Watcher watcher) |
List<String> |
ZKDatabase.getChildren(String path,
Stat stat,
Watcher watcher)
get children list for this path
|
byte[] |
DataTree.getData(String path,
Stat stat,
Watcher watcher) |
byte[] |
ZKDatabase.getData(String path,
Stat stat,
Watcher watcher)
get data and stat for a path
|
Modifier and Type | Field and Description |
---|---|
Stat |
DataTreeV1.ProcessTxnResult.stat |
Modifier and Type | Method and Description |
---|---|
Stat |
DataTreeV1.setACL(String path,
List<ACL> acl,
int version) |
Stat |
DataTreeV1.setData(String path,
byte[] data,
int version,
long zxid,
long time) |
Stat |
DataTreeV1.statNode(String path,
Watcher watcher) |
Modifier and Type | Method and Description |
---|---|
void |
DataNodeV1.copyStat(Stat to) |
static void |
DataTreeV1.copyStat(Stat from,
Stat to) |
List<ACL> |
DataTreeV1.getACL(String path,
Stat stat) |
ArrayList<String> |
DataTreeV1.getChildren(String path,
Stat stat,
Watcher watcher) |
byte[] |
DataTreeV1.getData(String path,
Stat stat,
Watcher watcher) |
Copyright © 2017 The Apache Software Foundation