com.loopfor.zookeeper

A Scala API for ZooKeeper.

Attributes

Members list

Concise view

Type members

Classlikes

case class ACL(id: Id, permission: Int) extends ACL

An ''access control list'' assignable to a ZooKeeper node.

An ''access control list'' assignable to a ZooKeeper node.

Attributes

id

the identity to which permissions apply

permission

the bitwise union of permissions that apply to this ACL

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class ACL
trait Record
class Object
trait Matchable
class Any
object ACL

Constructs and deconstructs ACL values.

Constructs and deconstructs ACL values.

The permissions assigned to an ACL are constructed by performing a bitwise union of individual permission attributes: Read, Write, Create, Delete, Admin. In addition, the All permission encompasses all of these attributes.

Several commonly used ACL values have been predefined for sake of convenience: AnyoneAll, AnyoneRead, CreatorAll.

Attributes

See also:
Companion:
class
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
ACL.type
object AnyObserver extends Observer

Indicates any type of watch.

Indicates any type of watch.

Attributes

Graph
Supertypes
trait Observer
class Object
trait Matchable
class Any
Self type
case object AssociatingState extends State

A state indicating that the session is in the process of associating.

A state indicating that the session is in the process of associating.

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait State
class Object
trait Matchable
class Any
Self type

A ZooKeeper client with ''asynchronous'' and ''watchable'' operations.

A ZooKeeper client with ''asynchronous'' and ''watchable'' operations.

Attributes

Graph
Supertypes
trait Zookeeper
class Object
trait Matchable
class Any

A ZooKeeper client with ''asynchronous'' operations.

A ZooKeeper client with ''asynchronous'' operations.

Attributes

Companion:
object
Graph
Supertypes
trait Zookeeper
class Object
trait Matchable
class Any

Constructs AsynchronousZookeeper values.

Constructs AsynchronousZookeeper values.

This companion object is provided as a convenience and is equivalent to:

Zookeeper(...).async

Attributes

See also:
Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
case object AuthId extends BaseId

An identity whose scheme is "auth" and id is "".

An identity whose scheme is "auth" and id is "".

Attributes

See also:
Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class BaseId
trait Id
class Object
trait Matchable
class Any
Self type
AuthId.type
case object Authenticated extends StateEvent

An event indicating that the client successfully authenticated with ZooKeeper.

An event indicating that the client successfully authenticated with ZooKeeper.

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait Event
class Object
trait Matchable
class Any
Self type
case object AuthenticationFailed extends StateEvent

An event indicating that the client failed to authenticate with ZooKeeper.

An event indicating that the client failed to authenticate with ZooKeeper.

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait Event
class Object
trait Matchable
class Any
Self type
case object AuthenticationFailedState extends State

A state indicating that session authentication failed.

A state indicating that session authentication failed.

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait State
class Object
trait Matchable
class Any
Self type
abstract class BaseId(val scheme: String, val id: String) extends Id

Attributes

Graph
Supertypes
trait Id
class Object
trait Matchable
class Any
Known subtypes
object AuthId.type
class DigestId
class HostId
class IpId
object WorldId.type
case class CheckOperation(path: String, version: Option[Int]) extends Operation

A ''check'' operation.

A ''check'' operation.

Attributes

path

the path of the node

version

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

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Operation
class Object
trait Matchable
class Any
case class CheckProblem(op: CheckOperation, error: Option[KeeperException]) extends Problem

A problem with a ''check'' operation.

A problem with a ''check'' operation.

Attributes

error

a Some containing the exception that led to this problem or None if no problem was reported

op

the check operation corresponding to this problem

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Problem
class Object
trait Matchable
class Any
case class CheckResult(op: CheckOperation) extends Result

The result of a ''check'' operation.

The result of a ''check'' operation.

Attributes

op

the check operation corresponding to this result

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Result
class Object
trait Matchable
class Any
case class ChildWatchRemoved(path: String) extends NodeEvent

An event indicating that a child watch was removed.

An event indicating that a child watch was removed.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait NodeEvent
trait Event
class Object
trait Matchable
class Any
case class ChildrenChanged(path: String) extends NodeEvent

An event indicating that the children associated with a node were changed.

An event indicating that the children associated with a node were changed.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait NodeEvent
trait Event
class Object
trait Matchable
class Any
object ChildrenObserver extends Observer

Indicates a watch for changes in children.

Indicates a watch for changes in children.

Attributes

Graph
Supertypes
trait Observer
class Object
trait Matchable
class Any
Self type
case object Closed extends StateEvent

An event indicating that the client has closed its session with ZooKeeper.

An event indicating that the client has closed its session with ZooKeeper.

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait Event
class Object
trait Matchable
class Any
Self type
Closed.type
case object ClosedState extends State

A state indicating that the session has been closed.

A state indicating that the session has been closed.

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait State
class Object
trait Matchable
class Any
Self type

A client ''configuration'' for connecting to a ZooKeeper cluster.

A client ''configuration'' for connecting to a ZooKeeper cluster.

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any

Constructs and deconstructs Configuration values.

Constructs and deconstructs Configuration values.

A configuration is constructed by first specifying ''required'' attributes via Configuration() and then attaching ''optional'' attributes as necessary. A set of implicit methods conveniently convert between instances of Configuration and Builder.

Example:

val config = Configuration {
 ("foo.server.com", 2181) :: ("bar.server.com", 2181) :: Nil
} withTimeout {
 60 seconds
} withWatcher { (event, session) =>
 // ...
}

The type of config above is Builder since an implicit conversion occurred when attaching optional attributes using the various with methods. An explicit conversion back to Configuration, which can be accomplished using build(), is unnecessary since another implicit will perform this function automatically.

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
case object Connected extends StateEvent

An event indicating that the client is connected to ZooKeeper.

An event indicating that the client is connected to ZooKeeper.

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait Event
class Object
trait Matchable
class Any
Self type
case object ConnectedReadOnly extends StateEvent

An event indicating that the client is connected to ZooKeeper in a read-only manner.

An event indicating that the client is connected to ZooKeeper in a read-only manner.

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait Event
class Object
trait Matchable
class Any
Self type
case object ConnectedReadOnlyState extends State

A state indicating that the session is connected in read-only mode.

A state indicating that the session is connected in read-only mode.

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait State
class Object
trait Matchable
class Any
Self type
case object ConnectedState extends State

A state indicating that the session is connected.

A state indicating that the session is connected.

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait State
class Object
trait Matchable
class Any
Self type
case object ConnectingState extends State

A state indicating that the session is in the process of connecting.

A state indicating that the session is in the process of connecting.

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait State
class Object
trait Matchable
class Any
Self type
object Container extends Disposition

Indicates that a node will be designated as a special purpose container useful for building higher-order constructs, such as leader election and locking.

Indicates that a node will be designated as a special purpose container useful for building higher-order constructs, such as leader election and locking.

The node will be eligible for deletion once all children have been deleted.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
case class CreateOperation(path: String, data: Array[Byte], acl: Seq[ACL], disp: Disposition) extends Operation

A ''create'' operation.

A ''create'' operation.

Attributes

acl

the ACL to associate with the node

data

the data to associate with the node

disp

the disposition of the node

path

the path of the node

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Operation
class Object
trait Matchable
class Any

A problem with a ''create'' operation.

A problem with a ''create'' operation.

Attributes

error

a Some containing the exception that led to this problem or None if no problem was reported

op

the create operation corresponding to this problem

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Problem
class Object
trait Matchable
class Any
case class CreateResult(op: CreateOperation, path: String) extends Result

The result of a ''create'' operation.

The result of a ''create'' operation.

Attributes

op

the create operation corresponding to this result

path

the final path of the created node, which will differ from the path in op if either PersistentSequential PersistentSequentialTimeToLive or EphemeralSequential disposition is specified

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Result
class Object
trait Matchable
class Any
case class Created(path: String) extends NodeEvent

An event indicating that a node was created.

An event indicating that a node was created.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait NodeEvent
trait Event
class Object
trait Matchable
class Any

A ''credential'' with a ZooKeeper session.

A ''credential'' with a ZooKeeper session.

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
object Credential

Constructs and deconstructs Credential values.

Constructs and deconstructs Credential values.

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
case class DataChanged(path: String) extends NodeEvent

An event indicating that the data associated with a node was changed.

An event indicating that the data associated with a node was changed.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait NodeEvent
trait Event
class Object
trait Matchable
class Any
object DataObserver extends Observer

Indicates a watch for changes in data.

Indicates a watch for changes in data.

Attributes

Graph
Supertypes
trait Observer
class Object
trait Matchable
class Any
Self type
case class DataWatchRemoved(path: String) extends NodeEvent

An event indicating that a data watch was removed.

An event indicating that a data watch was removed.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait NodeEvent
trait Event
class Object
trait Matchable
class Any
case class DeleteOperation(path: String, version: Option[Int]) extends Operation

A ''delete'' operation.

A ''delete'' operation.

Attributes

path

the path of the node

version

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

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Operation
class Object
trait Matchable
class Any

A problem with a ''delete'' operation.

A problem with a ''delete'' operation.

Attributes

error

a Some containing the exception that led to this problem or None if no problem was reported

op

the delete operation corresponding to this problem

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Problem
class Object
trait Matchable
class Any
case class DeleteResult(op: DeleteOperation) extends Result

The result of a ''delete'' operation.

The result of a ''delete'' operation.

Attributes

op

the delete operation corresponding to this result

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Result
class Object
trait Matchable
class Any
case class Deleted(path: String) extends NodeEvent

An event indicating that a node was deleted.

An event indicating that a node was deleted.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait NodeEvent
trait Event
class Object
trait Matchable
class Any
case class DigestId(username: String, password: String) extends BaseId

An identity whose scheme is "digest" and id is equal to "[[username]]:[[password]]".

An identity whose scheme is "digest" and id is equal to "[[username]]:[[password]]".

Attributes

password

a cleartext password, which may be empty

username

a username, which may be empty

See also:
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class BaseId
trait Id
class Object
trait Matchable
class Any
case object Disconnected extends StateEvent

An event indicating that the client is not connected to ZooKeeper.

An event indicating that the client is not connected to ZooKeeper.

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait Event
class Object
trait Matchable
class Any
Self type
sealed trait Disposition

Specifies the disposition of nodes when created.

Specifies the disposition of nodes when created.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Ephemeral extends Disposition

Indicates that a node will be automatically deleted when the creator disconnects from ZooKeeper.

Indicates that a node will be automatically deleted when the creator disconnects from ZooKeeper.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Indicates that a node will be automatically deleted when the creator disconnects from ZooKeeper ''and'' that the name will be appended with a monotonically increasing number.

Indicates that a node will be automatically deleted when the creator disconnects from ZooKeeper ''and'' that the name will be appended with a monotonically increasing number.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
sealed trait Event

An ''event'' generated by ZooKeeper.

An ''event'' generated by ZooKeeper.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait NodeEvent
class Created
class Deleted
object Authenticated.type
object Closed.type
object Connected.type
object ConnectedReadOnly.type
object Disconnected.type
object Expired.type
case object Expired extends StateEvent

An event indicating that the client session has been expired by ZooKeeper.

An event indicating that the client session has been expired by ZooKeeper.

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait Event
class Object
trait Matchable
class Any
Self type
Expired.type
case class HostId(domain: String) extends BaseId

An identity whose scheme is "host" and id is equal to "[[domain]]".

An identity whose scheme is "host" and id is equal to "[[domain]]".

Attributes

domain

an internet domain name

See also:
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class BaseId
trait Id
class Object
trait Matchable
class Any
sealed trait Id

An ''identity'' associated with an ACL.

An ''identity'' associated with an ACL.

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class BaseId
object AuthId.type
class DigestId
class HostId
class IpId
object WorldId.type
object Id

Constructs and deconstructs Id values.

Constructs and deconstructs Id values.

An Id is composed of two parts: a scheme and an id. There exists only a finite set of ''schemes'' recognized by ZooKeeper, which are noted below. The acceptable form of ''id'' depends on the chosen scheme.

'''Schemes'''

world -- ''id'' must be "anyone".

auth -- ''id'' must be "" (empty string).

digest -- ''id'' must be of the form "''username'':''password''".

host -- ''id'' should be an Internet domain name.

ip -- ''id'' must be a valid IPv4 or IPv6 address with an optional network prefix, variations of which follow:

  • "''addr''" where prefix is assumed to be 32 and 128 for IPv4 and IPv6, respectively.
  • "''addr''/''prefix''" where prefix is in the range [0,32] and [0,128] for IPv4 and IPv6, respectively.

Attributes

See also:
Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Id.type
case class IpId(addr: String, prefix: Int) extends BaseId

An identity whose scheme is "ip" and id is equal to "[[addr]]/[[prefix]]".

An identity whose scheme is "ip" and id is equal to "[[addr]]/[[prefix]]".

Attributes

addr

an IPv4 or IPv6 address in dotted decimal form

prefix

the network prefix in bits, a range of [0,32] for IPv4 and [0,128] for IPv6

See also:
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class BaseId
trait Id
class Object
trait Matchable
class Any
trait Node

Represents a ''node'' in ZooKeeper.

Represents a ''node'' in ZooKeeper.

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
object Node

Constructs and deconstructs Node values.

Constructs and deconstructs Node values.

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Node.type
trait NodeEvent extends Event

A category of events representing changes to nodes.

A category of events representing changes to nodes.

Attributes

Graph
Supertypes
trait Event
class Object
trait Matchable
class Any
Known subtypes
case object NotConnectedState extends State

A state indicating that the session is not connected.

A state indicating that the session is not connected.

Attributes

Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait State
class Object
trait Matchable
class Any
Self type
sealed trait Observer

Specifies the type of watch that can be associated with a node.

Specifies the type of watch that can be associated with a node.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object AnyObserver.type
object ChildrenObserver.type
object DataObserver.type
object PersistentObserver.type
sealed trait Operation

An ''operation'' that may be composed with others to form an atomic transaction to ZooKeeper.

An ''operation'' that may be composed with others to form an atomic transaction to ZooKeeper.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait Path

Represents an ''absolute'' or ''relative'' path to a node in ZooKeeper.

Represents an ''absolute'' or ''relative'' path to a node in ZooKeeper.

An ''absolute'' path starts with the / character. All other forms are considered ''relative''. Paths are virtually identical to those on Unix file systems and may include both . and .. parts, indicating the current and parent node, respectively.

Examples:

"/"
"../foo"
"/foo/bar"
"./foo/../bar"

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
object Path

Constructs and deconstructs Path values.

Constructs and deconstructs Path values.

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Path.type
object Persistent extends Disposition

Indicates that a node will persist when the creator disconnects from ZooKeeper.

Indicates that a node will persist when the creator disconnects from ZooKeeper.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Indicates a persistent watch for changes in children and data.

Indicates a persistent watch for changes in children and data.

A persistent watch is not automatically removed when triggered.

Attributes

Graph
Supertypes
trait Observer
class Object
trait Matchable
class Any
Self type

Indicates a persistent and recursive watch for changes in children and data.

Indicates a persistent and recursive watch for changes in children and data.

A persistent watch is not automatically removed from triggered. The recursive nature means that the watch applies to all child nodes.

Attributes

Graph
Supertypes
trait Observer
class Object
trait Matchable
class Any
Self type

Indicates that a node will persist when the creator disconnects from ZooKeeper ''and'' that the name will be appended with a monotonically increasing number.

Indicates that a node will persist when the creator disconnects from ZooKeeper ''and'' that the name will be appended with a monotonically increasing number.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Indicates that a node will persist when the creator disconnects from ZooKeeper ''and'' that the name will be appended with a monotonically increasing number.

Indicates that a node will persist when the creator disconnects from ZooKeeper ''and'' that the name will be appended with a monotonically increasing number.

The node will be eligible for deletion if not modified within the given ''ttl'' and only after all its children have been deleted.

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any

Constructs PersistentSequentialTimeToLive values.

Constructs PersistentSequentialTimeToLive values.

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Indicates that a node will persist when the creator disconnects from ZooKeeper.

Indicates that a node will persist when the creator disconnects from ZooKeeper.

The node will be eligible for deletion if not modified within the given ''ttl'' and only after all its children have been deleted.

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any

Constructs PersistentTimeToLive values.

Constructs PersistentTimeToLive values.

Attributes

Companion:
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
case class PersistentWatchRemoved(path: String) extends NodeEvent

An event indicating that a persistent watch was removed.

An event indicating that a persistent watch was removed.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait NodeEvent
trait Event
class Object
trait Matchable
class Any
sealed trait Problem

A ''problem'' with an operation in the context of an atomic operation.

A ''problem'' with an operation in the context of an atomic operation.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
sealed trait Result

The ''result'' of an operation within an atomic transaction.

The ''result'' of an operation within an atomic transaction.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
trait Session

A ''session'' established with ZooKeeper.

A ''session'' established with ZooKeeper.

Note that a session, particularly the life cycle, is managed by ZooKeeper servers, not the client. Under normal circumstances in which the client explicitly disconnects from the ZooKeeper cluster, its session is automatically expired. However, in cases where the client does not properly disconnect, ZooKeeper retains the session for a period of time defined by timeout.

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
object Session

Constructs and deconstructs Session values.

Constructs and deconstructs Session values.

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Session.type
case class SetOperation(path: String, data: Array[Byte], version: Option[Int]) extends Operation

A ''set'' operation.

A ''set'' operation.

Attributes

data

the data to associate with the node

path

the path of the node

version

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

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Operation
class Object
trait Matchable
class Any
case class SetProblem(op: SetOperation, error: Option[KeeperException]) extends Problem

A problem with a ''set'' operation.

A problem with a ''set'' operation.

Attributes

error

a Some containing the exception that led to this problem or None if no problem was reported

op

the set operation corrresponding to this problem

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Problem
class Object
trait Matchable
class Any
case class SetResult(op: SetOperation, status: Status) extends Result

The result of a ''set'' operation.

The result of a ''set'' operation.

Attributes

node

the status of the node after the operation is applied

op

the set operation corresponding to this result

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait Result
class Object
trait Matchable
class Any
sealed trait State

The ''state'' of a ZooKeeper session.

The ''state'' of a ZooKeeper session.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object AssociatingState.type
object ClosedState.type
object ConnectedState.type
object ConnectingState.type
object NotConnectedState.type
trait StateEvent extends Event

A category of events representing state changes to sessions.

A category of events representing state changes to sessions.

Attributes

Graph
Supertypes
trait Event
class Object
trait Matchable
class Any
Known subtypes
object Authenticated.type
object Closed.type
object Connected.type
object ConnectedReadOnly.type
object Disconnected.type
object Expired.type
trait Status

The ''status'' of a ZooKeeper node.

The ''status'' of a ZooKeeper node.

Each modification to ZooKeeper is stamped with a monotonically-increasing sequence number, known as a ''transaction id'' or ''zxid'', which conveys a total ordering of all changes. Thus, given any two changes, A and B, denoted by transaction ids, zxid,,A,, and zxid,,B,,, respectively, A is said to ''happen before'' B if zxid,,A,, < zxid,,B,,. Note that the ''transaction id'' is scoped to the entire ZooKeeper repository, not to individual nodes.

In addition to stamping all repository changes with a transaction id, which establishes total order, each modification to a given node also causes some ''version'' of that node to increment.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

A ZooKeeper client with ''synchronous'' and ''watchable'' operations.

A ZooKeeper client with ''synchronous'' and ''watchable'' operations.

Attributes

Graph
Supertypes
trait Zookeeper
class Object
trait Matchable
class Any

A ZooKeeper client with ''synchronous'' operations.

A ZooKeeper client with ''synchronous'' operations.

Attributes

Companion:
object
Graph
Supertypes
trait Zookeeper
class Object
trait Matchable
class Any

Constructs SynchronousZookeeper values.

Constructs SynchronousZookeeper values.

This companion object is provided as a convenience and is equivalent to:

Zookeeper(...).sync

Attributes

See also:
Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
sealed trait TimeToLive

Specifies time-to-live for certain types of dispositions.

Specifies time-to-live for certain types of dispositions.

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object TimeToLive

Constructs TimeToLive values.

Constructs TimeToLive values.

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
case object WorldId extends BaseId

An identity whose scheme is "world" and id is "anyone".

An identity whose scheme is "world" and id is "anyone".

Attributes

See also:
Graph
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
class BaseId
trait Id
class Object
trait Matchable
class Any
Self type
WorldId.type
trait Zookeeper

An instance of a ZooKeeper client.

An instance of a ZooKeeper client.

Attributes

Companion:
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Zookeeper

Constructs Zookeeper values.

Constructs Zookeeper values.

Attributes

Companion:
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Types

type APIErrorException = APIErrorException
type AuthFailedException = AuthFailedException
type BadArgumentsException = BadArgumentsException
type BadVersionException = BadVersionException
type ConnectionLossException = ConnectionLossException
type DataInconsistencyException = DataInconsistencyException
type EphemeralOnLocalSessionException = EphemeralOnLocalSessionException
type InvalidACLException = InvalidACLException
type InvalidCallbackException = InvalidCallbackException
type KeeperException = KeeperException
type MarshallingErrorException = MarshallingErrorException
type NewConfigNoQuorum = NewConfigNoQuorum
type NoAuthException = NoAuthException
type NoChildrenForEphemeralsException = NoChildrenForEphemeralsException
type NoNodeException = NoNodeException
type NoWatcherException = NoWatcherException
type NodeExistsException = NodeExistsException
type NotEmptyException = NotEmptyException
type NotReadOnlyException = NotReadOnlyException
type OperationTimeoutException = OperationTimeoutException
type ReconfigDisabledException = ReconfigDisabledException
type ReconfigInProgress = ReconfigInProgress
type RequestTimeoutException = RequestTimeoutException
type RuntimeInconsistencyException = RuntimeInconsistencyException
type SessionExpiredException = SessionExpiredException
type SessionMovedException = SessionMovedException
type SystemErrorException = SystemErrorException
type UnimplementedException = UnimplementedException
type UnknownSessionException = UnknownSessionException

Implicits

Implicits

implicit def tupleToInetSocketAddress(addr: (String, Int)): InetSocketAddress

Converts the tuple (''host'',''port'') to an Internet socket address.

Converts the tuple (''host'',''port'') to an Internet socket address.

Attributes

Returns:

an InetSocketAddress composed from the given addr tuple