trait Node extends AnyRef
Represents a node in ZooKeeper.
- Alphabetic
- By Inheritance
- Node
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
children(fn: PartialFunction[Event, Unit]): Seq[Node]
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.
- fn
a partial function invoked when applicable events occur
- returns
an unordered sequence containing each child node
- See also
SynchronousWatchableZookeeper.children for further details
-
abstract
def
children(): Seq[Node]
Returns the children of this node.
Returns the children of this node.
- returns
an unordered sequence containing each child node
- See also
SynchronousZookeeper.children for further details
-
abstract
def
create(data: Array[Byte], acl: Seq[ACL], disp: Disposition): Node
Creates this node.
Creates this node.
- data
the data to associate with this node, which may be empty, but not
null
- acl
an access control list to apply to this node, which must not be empty
- disp
the disposition of this node
- returns
a new node whose path will differ is
disp
is either PersistentSequential or EphemeralSequential
- See also
SynchronousZookeeper.create for further details
-
abstract
def
delete(version: Option[Int]): Unit
Deletes this node.
Deletes this node.
- version
a
Some
containing the expected version of the node orNone
if a version match is not required
- See also
SynchronousZookeeper.delete for further details
-
abstract
def
exists(fn: PartialFunction[Event, Unit]): Option[Status]
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.
- fn
a partial function invoked when applicable events occur
- returns
a
Some
containing this node status orNone
if this node does not exist
- See also
SynchronousWatchableZookeeper.exists for further details
-
abstract
def
exists(): Option[Status]
Returns the status of this node if it exists.
Returns the status of this node if it exists.
- returns
a
Some
containing this node status orNone
if this node does not exist
- See also
SynchronousZookeeper.exists for further details
-
abstract
def
get(fn: PartialFunction[Event, Unit]): (Array[Byte], Status)
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.
- fn
a partial function invoked when applicable events occur
- returns
a tuple containing the data and status of this node
- See also
SynchronousWatchableZookeeper.get for further details
-
abstract
def
get(): (Array[Byte], Status)
Returns the data and status of this node.
Returns the data and status of this node.
- returns
a tuple containing the data and status of this node
- See also
SynchronousZookeeper.get for further details
-
abstract
def
getACL(): (Seq[ACL], Status)
Returns the ACL and status of this node.
Returns the ACL and status of this node.
- returns
a tuple containing the ACL and status of this node
- See also
SynchronousZookeeper.getACL for further details
-
abstract
def
name: String
Returns the name of this node.
Returns the name of this node.
- returns
the name of this node
-
abstract
def
parent: Node
Returns the parent node.
-
abstract
def
parentOption: Option[Node]
Returns the parent node wrapped in an
Option
. -
abstract
def
path: Path
Returns the normalized path of this node.
Returns the normalized path of this node.
- returns
the normalized path of this node
-
abstract
def
resolve(path: Path): Node
Resolves the given
path
relative to this node.Resolves the given
path
relative to this node.- 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
-
abstract
def
resolve(path: String): Node
Resolves the given
path
relative to this node.Resolves the given
path
relative to this node.- 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
-
abstract
def
set(data: Array[Byte], version: Option[Int]): Status
Sets the data for this node.
Sets the data for this node.
- 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 orNone
if a version match is not required- returns
the status of the node
- See also
SynchronousZookeeper.set for further details
-
abstract
def
setACL(acl: Seq[ACL], version: Option[Int]): Status
Sets the ACL for this node.
Sets the ACL for this node.
- 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
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )