com.loopfor.zookeeper

Node

trait Node extends AnyRef

Represents a node in ZooKeeper.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Node
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. 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

  2. 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

  3. 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

  4. abstract def delete(version: Option[Int]): Unit

    Deletes this node.

    Deletes this node.

    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

  5. 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 or None if this node does not exist

    See also

    SynchronousWatchableZookeeper.exists for further details

  6. 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 or None if this node does not exist

    See also

    SynchronousZookeeper.exists for further details

  7. 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

  8. 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

  9. 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

  10. abstract def name: String

    Returns the name of this node.

    Returns the name of this node.

    returns

    the name of this node

  11. abstract def parent: Node

    Returns the parent node.

    Returns the parent node.

    returns

    the parent node

    Exceptions thrown
    NoSuchElementException

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

  12. abstract def parentOption: Option[Node]

    Returns the parent node wrapped in an Option.

    Returns the parent node wrapped in an Option.

    returns

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

  13. 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

  14. 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

  15. 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

  16. 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 or None if a version match is not required

    returns

    the status of the node

    See also

    SynchronousZookeeper.set for further details

  17. 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

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  11. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  12. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  15. final def notify(): Unit

    Definition Classes
    AnyRef
  16. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  17. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  18. def toString(): String

    Definition Classes
    AnyRef → Any
  19. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  20. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped