Class

de.leanovate.play.etcd

EtcdClient

Related Doc: package etcd

Permalink

class EtcdClient extends AnyRef

Low level interactions with etcd server.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. EtcdClient
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Instance Constructors

  1. new EtcdClient(etcdUrl: String, wsClient: WSClient)

    Permalink

    etcdUrl

    Base url to the etcd server (usually http://localhost:2379)

    wsClient

    WSClient implementation to use

    Annotations
    @Inject()

Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def createValue(dirKey: String, value: String, ttl: Option[Long] = None): Future[EtcdResult]

    Permalink

    Create a value node in a directory.

    Create a value node in a directory.

    Key of the node is uniquely generated by the etcd cluster.

    dirKey

    The key of the directory node

    value

    The value to store

    ttl

    Optional time to live for the value node

    returns

    Result from etcd cluster

  7. def deleteDir(key: String): Future[EtcdResult]

    Permalink

    Delete a directory node.

    Delete a directory node.

    key

    The key of the directory node

    returns

    Result from etcd cluster

  8. def deleteValue(key: String, prevValue: Option[String] = None, prevIndex: Option[Long] = None): Future[EtcdResult]

    Permalink

    Delete a value node.

    Delete a value node.

    key

    The key of the value node

    prevValue

    Optional previous value of the node (compare and set operation)

    prevIndex

    Optional previous index of the node (compare and set operation)

    returns

    Result from etcd cluster

  9. final def eq(arg0: AnyRef): Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  13. def getNode(key: String, wait: Option[Boolean] = None, recursive: Option[Boolean] = None, sorted: Option[Boolean] = None, waitIndex: Option[Long] = None): Future[EtcdResult]

    Permalink

    Get a node by key.

    Get a node by key.

    key

    The key

    wait

    Optional wait for change

    recursive

    Optional recursive for directory nodes

    sorted

    Optional sorted for directory nodes

    waitIndex

    Optional waitIndex (in combination with wait)

    returns

    Result from etcd cluster

  14. def hashCode(): Int

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

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

    Permalink
    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  20. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  21. def updateDir(key: String, ttl: Option[Long] = None): Future[EtcdResult]

    Permalink

    Create of update a directory node.

    Create of update a directory node.

    key

    The key of the directory node

    ttl

    Optional time to live for the node

    returns

    Result from etcd cluster

  22. def updateValue(key: String, value: String, ttl: Option[Long] = None, prevValue: Option[String] = None, prevIndex: Option[Long] = None, prevExist: Option[Boolean] = None): Future[EtcdResult]

    Permalink

    Create or update a value node.

    Create or update a value node.

    key

    The key of the value node

    value

    The value to store

    ttl

    Optional time to live for the value node

    prevValue

    Optional previous value of the node (compare and set operation)

    prevIndex

    Optional previous index of the node (compare and set operation)

    prevExist

    Optional flag if node is supposed to exists (compare and set operation)

    returns

    Result from etcd cluster

  23. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped