Trait/Object

io.scalajs.npm.nzc

Client

Related Docs: object Client | package nzc

Permalink

trait Client extends Object

Node Zookeeper Client (node-zookeeper-client)

Annotations
@RawJSType() @native()
See also

https://github.com/alexguan/node-zookeeper-client

Linear Supertypes
Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Client
  2. Object
  3. Any
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def getSessionPassword(): Buffer

    Permalink

    Returns the session password of this client instance.

    Returns the session password of this client instance. The value returned is not valid until the client connects to a server and may change after a re-connect.

    The value returned is an instance of Buffer.

    returns

    the session password

  2. abstract def getSessionTimeout(): Integer

    Permalink

    Returns the negotiated session timeout (in milliseconds) for this client instance.

    Returns the negotiated session timeout (in milliseconds) for this client instance. The value returned is not valid until the client connects to a server and may change after a re-connect.

    returns

    the negotiated session timeout (in milliseconds)

Concrete 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. def addAuthInfo(scheme: String, auth: Buffer): Unit

    Permalink

    Add the specified scheme:auth information to this client.

    Add the specified scheme:auth information to this client.

    scheme

    The authentication scheme.

    auth

    The authentication data buffer.

    Examples:
    1. zookeeper.addAuthInfo('ip', new Buffer('127.0.0.1'));

    2. ,
    3. void addAuthInfo(scheme, auth)

  5. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. def close(): Unit

    Permalink

    Close this client.

    Close this client. Once the client is closed, its session becomes invalid. All the ephemeral nodes in the ZooKeeper server associated with the session will be removed. The watchers left on those nodes (and on their parents) will be triggered.

    Example:
    1. void close()

  8. def connect(): Unit

    Permalink

    Initiate the connection to the provided server list (ensemble).

    Initiate the connection to the provided server list (ensemble). The client will pick an arbitrary server from the list and attempt to connect to it. If the establishment of the connection fails, another server will be tried (picked randomly) until a connection is established or close method is invoked.

    Example:
    1. void connect()

  9. def create(path: String, callback: Function): Unit

    Permalink

    Example:
    1. void create(path, [data], [acls], [mode], callback)

  10. def create(path: String, data: Any, callback: Function): Unit

    Permalink

    Example:
    1. void create(path, [data], [acls], [mode], callback)

  11. def create(path: String, data: Any, acls: String, callback: Function): Unit

    Permalink

    Example:
    1. void create(path, [data], [acls], [mode], callback)

  12. def create(path: String, data: Any, acls: String, mode: String, callback: Function): Unit

    Permalink

    Example:
    1. void create(path, [data], [acls], [mode], callback)

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  15. def exists(path: String, callback: Function): Unit

    Permalink

    Example:
    1. void exists(path, [watcher], callback)

  16. def exists(path: String, watcher: Watcher, callback: Function): Unit

    Permalink

    Example:
    1. void exists(path, [watcher], callback)

  17. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. def getACL(path: String, callback: Function): Unit

    Permalink

    Example:
    1. void getACL(path, callback)

  19. def getChildren(path: String, callback: Function): Unit

    Permalink

    Example:
    1. void getChildren(path, [watcher], callback)

  20. def getChildren(path: String, watcher: Watcher, callback: Function): Unit

    Permalink

    Example:
    1. void getChildren(path, [watcher], callback)

  21. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  22. def getData(path: String, callback: Function): Unit

    Permalink

    Example:
    1. void getData(path, [watcher], callback)

  23. def getData(path: String, watcher: Watcher, callback: Function): Unit

    Permalink

    Example:
    1. void getData(path, [watcher], callback)

  24. def getSessionId(): Buffer

    Permalink

    Returns the session id of this client instance.

    Returns the session id of this client instance. The value returned is not valid until the client connects to a server and may change after a re-connect.

    The id returned is a long integer stored into an 8-byte Buffer since Javascript does not support long integer natively.

    returns

    a long integer stored as an 8-byte Buffer

  25. def getState(): State

    Permalink

    Return the current client state.

    Return the current client state.

    returns

    the current client state.

  26. def hasOwnProperty(v: String): Boolean

    Permalink
    Definition Classes
    Object
  27. def hashCode(): Int

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

    Permalink
    Definition Classes
    Any
  29. def isPrototypeOf(v: Object): Boolean

    Permalink
    Definition Classes
    Object
  30. def mkdirp(path: String, callback: Function): Unit

    Permalink

    Example:
    1. void mkdirp(path, [data], [acls], [mode], callback)

  31. def mkdirp(path: String, data: Any, callback: Function): Unit

    Permalink

    Example:
    1. void mkdirp(path, [data], [acls], [mode], callback)

  32. def mkdirp(path: String, data: Any, acls: String, callback: Function): Unit

    Permalink

    Example:
    1. void mkdirp(path, [data], [acls], [mode], callback)

  33. def mkdirp(path: String, data: Any, acls: String, mode: String, callback: Function): Unit

    Permalink

    Example:
    1. void mkdirp(path, [data], [acls], [mode], callback)

  34. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  37. def on(message: String, callback: Function): Unit

    Permalink

    By default, we will consume messages from the last committed offset of the current group

    By default, we will consume messages from the last committed offset of the current group

    message

    the given event message (e.g. "error")

    callback

    callback when new message comes

    Example:
    1. consumer.on('message', function (message) { .. })

  38. def once(message: String, callback: Function): Unit

    Permalink
  39. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  40. def remove(path: String, callback: Function): Unit

    Permalink

    Example:
    1. void remove(path, [version], callback)

  41. def remove(path: String, version: String, callback: Function): Unit

    Permalink

    Example:
    1. void remove(path, [version], callback)

  42. def setACL(path: String, acls: String, callback: Function): Unit

    Permalink

    Example:
    1. void setACL(path, acls, [version], callback)

  43. def setACL(path: String, acls: String, version: String, callback: Function): Unit

    Permalink

    Example:
    1. void setACL(path, acls, [version], callback)

  44. def setData(path: String, data: Any, callback: Function): Unit

    Permalink

    Example:
    1. void setData(path, data, [version], callback)

  45. def setData(path: String, data: Any, version: String, callback: Function): Unit

    Permalink

    Example:
    1. void setData(path, data, [version], callback)

  46. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  47. def toLocaleString(): String

    Permalink
    Definition Classes
    Object
  48. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  49. def transaction(): Transaction

    Permalink

    Example:
    1. transaction(): Transaction

  50. def valueOf(): Any

    Permalink
    Definition Classes
    Object
  51. final def wait(): Unit

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

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

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

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped