Node

com.loopfor.zookeeper.Node
See theNode companion object
trait Node

Represents a ''node'' in ZooKeeper.

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Abstract methods

def children(): Seq[Node]

Returns the children of this node.

Returns the children of this node.

Attributes

Returns:

an unordered sequence containing each child node

See also:

SynchronousZookeeper.children for further details

Returns the children of this node and additionally sets a watch for any changes.

Returns the children of this node and additionally sets a watch for any changes.

Attributes

fn

a partial function invoked when applicable events occur

Returns:

an unordered sequence containing each child node

See also:
def create(data: Array[Byte], acl: Seq[ACL], disp: Disposition): Node

Creates this node.

Creates this node.

Attributes

acl

an access control list to apply to this node, which must not be empty

data

the data to associate with this node, which may be empty, but not null

disp

the disposition of this node

Returns:

a new node whose path will differ if disp is either PersistentSequential, PersistentSequentialTimeToLive or EphemeralSequential

See also:

SynchronousZookeeper.create for further details

def delete(version: Option[Int]): Unit

Deletes this node.

Deletes this node.

Attributes

version

a Some containing the expected version of the node or None if a version match is not required

See also:

SynchronousZookeeper.delete for further details

Returns the status of this node if it exists.

Returns the status of this node if it exists.

Attributes

Returns:

a Some containing this node status or None if this node does not exist

See also:

SynchronousZookeeper.exists for further details

Returns the status of this node if it exists and additionally sets a watch for any changes.

Returns the status of this node if it exists and additionally sets a watch for any changes.

Attributes

fn

a partial function invoked when applicable events occur

Returns:

a Some containing this node status or None if this node does not exist

See also:
def get(): (Array[Byte], Status)

Returns the data and status of this node.

Returns the data and status of this node.

Attributes

Returns:

a tuple containing the data and status of this node

See also:

SynchronousZookeeper.get for further details

Returns the data and status of this node and additionally sets a watch for any changes.

Returns the data and status of this node and additionally sets a watch for any changes.

Attributes

fn

a partial function invoked when applicable events occur

Returns:

a tuple containing the data and status of this node

See also:
def getACL(): (Seq[ACL], Status)

Returns the ACL and status of this node.

Returns the ACL and status of this node.

Attributes

Returns:

a tuple containing the ACL and status of this node

See also:

SynchronousZookeeper.getACL for further details

Returns the name of this node.

Returns the name of this node.

Attributes

Returns:

the name of this node

Returns the parent node.

Returns the parent node.

Attributes

Returns:

the parent node

Throws:
NoSuchElementException

if removal of name from path yields "" or "/"

Returns the parent node wrapped in an Option.

Returns the parent node wrapped in an Option.

Attributes

Returns:

a Some containing the parent node or None if removal of name from path yields "" or "/"

def path: Path

Returns the normalized path of this node.

Returns the normalized path of this node.

Attributes

Returns:

the normalized path of this node

def resolve(path: String): Node

Resolves the given path relative to this node.

Resolves the given path relative to this node.

Attributes

path

the path to resolve relative to this node

Returns:

a new node in which the given path is resolved relative to this node

See also:

Path, method resolve, for details on path resolution

def resolve(path: Path): Node

Resolves the given path relative to this node.

Resolves the given path relative to this node.

Attributes

path

the path to resolve relative to this node

Returns:

a new node in which the given path is resolved relative to this node

See also:

Path, method resolve, for details on path resolution

def set(data: Array[Byte], version: Option[Int]): Status

Sets the data for this node.

Sets the data for this node.

Attributes

data

the data to associate with this node, which may be empty, but not null

version

a Some containing the expected version of this node or None if a version match is not required

Returns:

the status of the node

See also:

SynchronousZookeeper.set for further details

def setACL(acl: Seq[ACL], version: Option[Int]): Status

Sets the ACL for this node.

Sets the ACL for this node.

Attributes

acl

an access control list to apply to this node, which must not be empty

Returns:

the status of this node

See also:

SynchronousZookeeper.setACL for further details