Returns a node's acl.
Returns a node's acl. Evaluates to None, if the node does not exists or to Some(acl) with current acls of the node (possibly empty)
Performs atomic operations.
Performs atomic operations. That means either None or all supplied operations will succeed.
Returns children of given node.
Returns children of given node. Returns immediately once server answers. If the node does not exists this evaluates to None, otherwise this evaluates to the list of all children, possibly empty
Returns a Stream of list of children, of supplied node.
Returns a Stream of list of children, of supplied node. This stream is discrete, so it will emit only when the children list is altered, that means child is added or deleted. It won't update itself when the children was updated.
Note that if node does not exists, this emits None.
Provides stream of client state.
Provides stream of client state. This allows fine-tuned monitoring of ZkClient, primarily when the client disconnects or expired.
Create ZkNode.
Create ZkNode. Evaluates to name of the node created. That name can be used to construct full node name in case of sequential nodes.
Node to create
Creation Mode of the node
If specified, data that has to be stored at node
. Maximum chunk size is 1MB
ACLs applied for the node
Returns data of the specified node.
Returns data of the specified node. Possibly evals to None if either node does not exists, or no data are set.
Returns discrete stream of data for the supplied node.
Returns discrete stream of data for the supplied node. Emits None if node cannot be found or there are no Data available.
Delete node at given patth.
Delete node at given patth. Optionally specify version to delete node if node's version matches supplied version
Returns a stream of stats, that may be used to verify whether given node exists or not.
Returns a stream of stats, that may be used to verify whether given node exists or not. Returned stream is discrete, so it only emits when the information is updated (i.e. node added, modified or deleted).
Returns immediately once the check if supplied ZkNode exists at given path is performed at server.
Returns immediately once the check if supplied ZkNode exists at given path is performed at server. Evaluates to Some(stats), if the ZkNode exists or to None, if it does not.
Id of zookeeper client session
Sets the access list for the supplied node.
Sets the access list for the supplied node. Evaluates to None if the node does not exists or if the supplied version won't match the version of the node.
Sets the data on given ZkNode.
Sets the data on given ZkNode. If the node does not exists, this evaluates to None. Also yields to None, if supplied version does not matches the version of the node.