Package

spinoco.fs2

zk

Permalink

package zk

Created by pach on 01/05/16.

Source
zk.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. zk
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. class InvalidZookeeperState extends Throwable

    Permalink
  2. case class ZkACL(permission: Permission, scheme: String, entity: String) extends Product with Serializable

    Permalink

    ACL Entry of ZooKeeper Node

  3. trait ZkClient[F[_]] extends AnyRef

    Permalink
  4. case class ZkCreateMode(ephemeral: Boolean, sequential: Boolean) extends Product with Serializable

    Permalink
  5. case class ZkNode(path: String) extends Product with Serializable

    Permalink

    Validated name of ZkNode.

  6. sealed trait ZkOp extends AnyRef

    Permalink
  7. sealed trait ZkOpResult extends AnyRef

    Permalink
  8. case class ZkStat(createZxId: Long, modifiedZxId: Long, createdAt: LocalDateTime, modifiedAt: LocalDateTime, version: Int, childVersion: Int, aclVersion: Int, ephemeralOwnerSession: Long, dataLength: Int, numChildren: Int) extends Product with Serializable

    Permalink

    Stat structure of zookeeper

    Stat structure of zookeeper

    createZxId

    The zxid of the change that caused this znode to be created.

    modifiedZxId

    The zxid of the change that last modified this znode.

    createdAt

    The time in milliseconds from epoch when this znode was created.

    modifiedAt

    The time in milliseconds from epoch when this znode was last modified.

    version

    The number of changes to the data of this znode.

    childVersion

    The number of changes to the children of this znode.

    aclVersion

    The number of changes to the ACL of this znode.

    ephemeralOwnerSession

    The session id of the owner of this znode if the znode is an ephemeral node. If it is not an ephemeral node, it will be zero.

    dataLength

    The length of the data field of this znode.

    numChildren

    The number of children of this znode.

Value Members

  1. object ZkACL extends Serializable

    Permalink
  2. object ZkClient

    Permalink
  3. object ZkClientState extends Enumeration

    Permalink

    Created by pach on 07/05/16.

  4. object ZkCreateMode extends Serializable

    Permalink
  5. object ZkNode extends Serializable

    Permalink
  6. object ZkOp

    Permalink
  7. object ZkOpResult

    Permalink
  8. def client[F[_]](ensemble: String, credentials: Option[(String, Bytes)] = None, allowReadOnly: Boolean = false, timeout: FiniteDuration = 10.seconds)(implicit arg0: ConcurrentEffect[F], arg1: ContextShift[F]): Resource[F, ZkClient[F]]

    Permalink

    Creates a zookeeper client.

    Creates a zookeeper client. Typically the application has only one clients available.

    This Stream emits only once providing guarded ZkClient, after session was successfully established. It may also emit on Left when connection was not established to the server.

    Note that there is no specific close functionality. The client is terminated when the resulting Stream terminates.

    ensemble

    Zookeeper ensemble Uri .i.e. "127.0.0.1:3000,127.0.0.1:3001,127.0.0.1:3002" or "127.0.0.1:3000,127.0.0.1:3001,127.0.0.1:3002/app/a" if chrooted under /app/a

    credentials

    If Zookeeper ensemble requires authentication, credentials may be passed in here.

    allowReadOnly

    True, indicates that if ensemble loses majority, the client will switch to readonly mode instead of failing.

Inherited from AnyRef

Inherited from Any

Ungrouped