com.twitter.finagle.serverset2.client
Add the specified scheme: auth information to this connection.
Add the specified scheme: auth information to this connection.
the authentication scheme to use.
the authentication credentials.
a Future[Unit]
Create a node of a given type with the given path.
Create a node of a given type with the given path. The node data will be the given data, and node acl will be the given acl.
the path for the node.
the initial data for the node.
a sequence of ACLs for the node.
specifies what type of node to create.
a Future[String] containing the actual path of the created node.
Delete the node with the given path.
Delete the node with the given path. The call will succeed if such a node exists, and the given version matches the node's version (if the given version is None, it matches any node's versions).
This operation, if successful, will trigger all the watches on the node of the given path left by existsWatch API calls, and the watches on the parent node left by getChildrenWatch API calls.
the path of the node to be deleted.
the expected node version.
a Future[Unit]
Check if a node exists.
Check if a node exists.
the path of the node to check.
a Future[Option[Data.Stat] containing Some[Stat] if the node exists, or None if the node does not exist.
A version of exists that sets a watch and returns a Future[Watched[Option[Data.Stat]]]
A version of exists that sets a watch and returns a Future[Watched[Option[Data.Stat]]]
Get the ACL of the node of the given path.
Get the ACL of the node of the given path.
the path of the node to read.
a Future[Node.ACL]
For a node at a given path return its stat and a list of children.
For a node at a given path return its stat and a list of children.
the path of the node to read.
a Future[Node.Children]
A version of getChildren that sets and returns a Future[Watched[Node.Children]]
A version of getChildren that sets and returns a Future[Watched[Node.Children]]
Return the data of the node of the given path.
Return the data of the node of the given path.
the path of the node to read.
a Future[Node.Data]
A version of getData that sets a watch and returns a Future[Watched[Node.Data]]
A version of getData that sets a watch and returns a Future[Watched[Node.Data]]
Get the existing ephemeral nodes created with the current session ID.
Get the existing ephemeral nodes created with the current session ID.
NOTE: This method is not universally implemented. The Future will fail with KeeperException.Unimplemented if this is the case.
a Future[Seq[String]] of ephemeral node paths.
Transactional operation.
Transactional operation. Execute all operations or none of them.
a list of operations to apply.
a Future[Seq[OpResult]]
The session id for this ZooKeeper client instance.
The session id for this ZooKeeper client instance. The value returned is not valid until the client connects to a server and may change after a re-connect.
current session id
The session password for this ZooKeeper client instance.
The session password for this ZooKeeper client instance. The value returned is not valid until the client connects to a server and may change after a re-connect.
current session password
The negotiated session timeout for this ZooKeeper client instance.
The negotiated session timeout for this ZooKeeper client instance. The value returned is not valid until the client connects to a server and may change after a re-connect.
current session timeout
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 (if the given version is None, it matches any node's versions)
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 (if the given version is None, it matches any node's versions)
the path of the node to write.
a list of Data.ACL to apply to the node.
the expected matching version.
a Future[Data.Stat]
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 None, 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 None, it matches any node's versions).
This operation, if successful, will trigger all the watches on the node of the given path left by getDataWatch calls.
the path of the node to write.
the data to set.
the expected matching version.
a Future[Data.Stat]
Sync.
Sync. Flushes channel between process and leader.
the path of the node to sync.
a Future[Unit]