Add the specified scheme:auth information to this connection.
Connect to the server.
Connect to the server.
comma separated host:port pairs, each corresponding to a zk server. e.g. "127.0.0.1:3000,127.0.0.1:3001,127.0.0.1:3002" If the optional chroot suffix is used the example would look like: "127.0.0.1:3000,127.0.0.1:3001,127.0.0.1:3002/app/a" where the client would be rooted at "/app/a" and all paths would be relative to this root - ie getting/setting/etc... "/foo/bar" would result in operations being run on "/app/a/foo/bar" (from the server perspective).
how many times to retry a failed connect attempt
session timeout
specific session id to use if reconnecting
password for this session
whether the created client is allowed to go to read-only mode in case of partitioning. Read-only mode basically means that if the client can't find any majority servers but there's partitioned server it could reach, it connects to one in read-only mode, i.e. read requests are allowed while write requests are not. It continues seeking for majority in the background.
Return the number the children of the node of the given path.
Return the number the children of the node of the given path.
the given path for the node
Create an ephemeral node with the given path.
Create an ephemeral node with the given path.
the given path for the node
the initial data for the node
the acl for the node
should the node be sequential
create parent nodes, if necessary; any parent node created will be a permanent node as ephemeral nodes can't have children
Create a persistent node with the given path.
Create a persistent node with the given path.
the given path for the node
the initial data for the node
the acl for the node
should the node be sequential
create parent nodes, if necessary
ZooKeeper client node creation request.
Get the timestamp of when the node has been created.
Get the timestamp of when the node has been created.
the given path for the node
Delete a node with a given path.
Delete a node with a given path.
Recursive delete notes:
Recursive delete is partially synchronous. Children collection is synchronous while the removal uses
actual asynchronous calls. Recursive delete only checks the version of the top node to be deleted,
any child will be removed regardless of the version.
the given path for the node
the expected node version for the top node to remove
Return the ACL and stat of the node of the given path.
Return the ACL and stat of the node of the given path.
the given path for the node
Return the list of the children of the node of the given path.
Return the list of the children of the node of the given path.
the given path for the node
watch for changes
Check if the node exists.
Check if the node exists.
the given path for the node
Check if SASL is enabled.
Request metrics snapshot.
Executes multiple ZooKeeper operations or none of them.
Executes multiple ZooKeeper operations or none of them.
An iterable that contains the operations to be done. These should be created using the factory methods on Op.
Return the data and the stat of the node of the given path.
Return the data and the stat of the node of the given path.
the given path for the node
return None if node at path does not exist instead of returning an OperationError
ZooKeeper client request.
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.
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.
the given path for the node
the new acl for the node
Set the read / write serializer for this client.
Set the read / write serializer for this client.
the serializer
Stop the ZooKeeper client.
Stop the ZooKeeper client. Disconnect from ZooKeeper, if necessary. Will stop the actor.
Subscribe to the children changes of the znode at the path.
Subscribe to the children changes of the znode at the path.
the given path for the node
Subscribe to the data changes of the znode at the path.
Subscribe to the data changes of the znode at the path.
the given path for the node
ZooKeeper client subscription request.
Unsubscribe from the children changes of the znode at the path.
Unsubscribe from the children changes of the znode at the path.
the given path for the node
Unsubscribe from the data changes of the znode at the path.
Unsubscribe from the data changes of the znode at the path.
the given path for the node
ZooKeeper client unsubscription request.
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).
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).
the given path for the node
new data for the node
expected version
ZooKeeper client request protocol.