api documentation for node-zookeeper-client (v0.2.2)

A pure Javascript ZooKeeper client for Node.js.

table of contents

  1. module node-zookeeper-client
    1. function node-zookeeper-client.ACL (permission, id)
    2. function node-zookeeper-client.ConnectionManager (connectionString, options, stateListener)
    3. function node-zookeeper-client.ConnectionStringParser (connectionString)
    4. function node-zookeeper-client.Event (type, name, path)
    5. function node-zookeeper-client.Exception (code, name, path, ctor)
    6. function node-zookeeper-client.Exception.super_ ()
    7. function node-zookeeper-client.Id (scheme, id)
    8. function node-zookeeper-client.PacketQueue ()
    9. function node-zookeeper-client.Transaction (connectionManager)
    10. function node-zookeeper-client.WatcherManager ()
    11. function node-zookeeper-client.createClient (connectionString, options)
    12. object node-zookeeper-client.ACL.prototype
    13. object node-zookeeper-client.ConnectionManager.prototype
    14. object node-zookeeper-client.ConnectionStringParser.prototype
    15. object node-zookeeper-client.CreateMode
    16. object node-zookeeper-client.Event.prototype
    17. object node-zookeeper-client.Exception.prototype
    18. object node-zookeeper-client.Id.prototype
    19. object node-zookeeper-client.PacketQueue.prototype
    20. object node-zookeeper-client.Path
    21. object node-zookeeper-client.Permission
    22. object node-zookeeper-client.State
    23. object node-zookeeper-client.Transaction.prototype
    24. object node-zookeeper-client.WatcherManager.prototype
  2. module node-zookeeper-client.ACL
    1. function node-zookeeper-client.ACL (permission, id)
    2. function node-zookeeper-client.ACL.fromRecord (record)
    3. object node-zookeeper-client.ACL.CREATOR_ALL_ACL
    4. object node-zookeeper-client.ACL.OPEN_ACL_UNSAFE
    5. object node-zookeeper-client.ACL.READ_ACL_UNSAFE
  3. module node-zookeeper-client.ACL.prototype
    1. function node-zookeeper-client.ACL.prototype.toRecord ()
  4. module node-zookeeper-client.ConnectionManager
    1. function node-zookeeper-client.ConnectionManager (connectionString, options, stateListener)
    2. function node-zookeeper-client.ConnectionManager.super_ ()
    3. object node-zookeeper-client.ConnectionManager.STATES
  5. module node-zookeeper-client.ConnectionManager.prototype
    1. function node-zookeeper-client.ConnectionManager.prototype.addAuthInfo (scheme, auth)
    2. function node-zookeeper-client.ConnectionManager.prototype.cleanupPendingQueue (errorCode)
    3. function node-zookeeper-client.ConnectionManager.prototype.close ()
    4. function node-zookeeper-client.ConnectionManager.prototype.connect ()
    5. function node-zookeeper-client.ConnectionManager.prototype.findNextServer (callback)
    6. function node-zookeeper-client.ConnectionManager.prototype.getSessionId ()
    7. function node-zookeeper-client.ConnectionManager.prototype.getSessionPassword ()
    8. function node-zookeeper-client.ConnectionManager.prototype.getSessionTimeout ()
    9. function node-zookeeper-client.ConnectionManager.prototype.onPacketQueueReadable ()
    10. function node-zookeeper-client.ConnectionManager.prototype.onSocketClosed (hasError)
    11. function node-zookeeper-client.ConnectionManager.prototype.onSocketConnectTimeout ()
    12. function node-zookeeper-client.ConnectionManager.prototype.onSocketConnected ()
    13. function node-zookeeper-client.ConnectionManager.prototype.onSocketData (buffer)
    14. function node-zookeeper-client.ConnectionManager.prototype.onSocketDrain ()
    15. function node-zookeeper-client.ConnectionManager.prototype.onSocketError (error)
    16. function node-zookeeper-client.ConnectionManager.prototype.onSocketTimeout ()
    17. function node-zookeeper-client.ConnectionManager.prototype.queue (request, callback)
    18. function node-zookeeper-client.ConnectionManager.prototype.registerChildWatcher (path, watcher)
    19. function node-zookeeper-client.ConnectionManager.prototype.registerDataWatcher (path, watcher)
    20. function node-zookeeper-client.ConnectionManager.prototype.registerExistenceWatcher (path, watcher)
    21. function node-zookeeper-client.ConnectionManager.prototype.setState (state)
    22. function node-zookeeper-client.ConnectionManager.prototype.updateTimeout (sessionTimeout)
  6. module node-zookeeper-client.ConnectionStringParser
    1. function node-zookeeper-client.ConnectionStringParser (connectionString)
  7. module node-zookeeper-client.ConnectionStringParser.prototype
    1. function node-zookeeper-client.ConnectionStringParser.prototype.getChrootPath ()
    2. function node-zookeeper-client.ConnectionStringParser.prototype.getConnectionString ()
    3. function node-zookeeper-client.ConnectionStringParser.prototype.getServers ()
  8. module node-zookeeper-client.Event
    1. function node-zookeeper-client.Event (type, name, path)
    2. function node-zookeeper-client.Event.create (watcherEvent)
    3. number node-zookeeper-client.Event.NODE_CHILDREN_CHANGED
    4. number node-zookeeper-client.Event.NODE_CREATED
    5. number node-zookeeper-client.Event.NODE_DATA_CHANGED
    6. number node-zookeeper-client.Event.NODE_DELETED
  9. module node-zookeeper-client.Event.prototype
    1. function node-zookeeper-client.Event.prototype.getName ()
    2. function node-zookeeper-client.Event.prototype.getPath ()
    3. function node-zookeeper-client.Event.prototype.getType ()
    4. function node-zookeeper-client.Event.prototype.toString ()
  10. module node-zookeeper-client.Exception
    1. function node-zookeeper-client.Exception (code, name, path, ctor)
    2. function node-zookeeper-client.Exception.create (code, path)
    3. function node-zookeeper-client.Exception.super_ ()
    4. number node-zookeeper-client.Exception.API_ERROR
    5. number node-zookeeper-client.Exception.AUTH_FAILED
    6. number node-zookeeper-client.Exception.BAD_ARGUMENTS
    7. number node-zookeeper-client.Exception.BAD_VERSION
    8. number node-zookeeper-client.Exception.CONNECTION_LOSS
    9. number node-zookeeper-client.Exception.DATA_INCONSISTENCY
    10. number node-zookeeper-client.Exception.INVALID_ACL
    11. number node-zookeeper-client.Exception.INVALID_CALLBACK
    12. number node-zookeeper-client.Exception.MARSHALLING_ERROR
    13. number node-zookeeper-client.Exception.NODE_EXISTS
    14. number node-zookeeper-client.Exception.NOT_EMPTY
    15. number node-zookeeper-client.Exception.NO_AUTH
    16. number node-zookeeper-client.Exception.NO_CHILDREN_FOR_EPHEMERALS
    17. number node-zookeeper-client.Exception.NO_NODE
    18. number node-zookeeper-client.Exception.OK
    19. number node-zookeeper-client.Exception.OPERATION_TIMEOUT
    20. number node-zookeeper-client.Exception.RUNTIME_INCONSISTENCY
    21. number node-zookeeper-client.Exception.SESSION_EXPIRED
    22. number node-zookeeper-client.Exception.SYSTEM_ERROR
    23. number node-zookeeper-client.Exception.UNIMPLEMENTED
  11. module node-zookeeper-client.Exception.prototype
    1. function node-zookeeper-client.Exception.prototype.getCode ()
    2. function node-zookeeper-client.Exception.prototype.getName ()
    3. function node-zookeeper-client.Exception.prototype.getPath ()
    4. function node-zookeeper-client.Exception.prototype.toString ()
  12. module node-zookeeper-client.Exception.super_
    1. function node-zookeeper-client.Exception.super_ ()
    2. function node-zookeeper-client.Exception.super_.captureStackTrace ()
    3. number node-zookeeper-client.Exception.super_.stackTraceLimit
  13. module node-zookeeper-client.Id
    1. function node-zookeeper-client.Id (scheme, id)
    2. function node-zookeeper-client.Id.fromRecord (record)
    3. object node-zookeeper-client.Id.ANYONE_ID_UNSAFE
    4. object node-zookeeper-client.Id.AUTH_IDS
  14. module node-zookeeper-client.Id.prototype
    1. function node-zookeeper-client.Id.prototype.toRecord ()
  15. module node-zookeeper-client.PacketQueue
    1. function node-zookeeper-client.PacketQueue ()
    2. function node-zookeeper-client.PacketQueue.super_ ()
  16. module node-zookeeper-client.PacketQueue.prototype
    1. function node-zookeeper-client.PacketQueue.prototype.push (packet)
    2. function node-zookeeper-client.PacketQueue.prototype.shift ()
    3. function node-zookeeper-client.PacketQueue.prototype.unshift (packet)
  17. module node-zookeeper-client.Path
    1. function node-zookeeper-client.Path.validate (path)
  18. module node-zookeeper-client.Transaction
    1. function node-zookeeper-client.Transaction (connectionManager)
  19. module node-zookeeper-client.Transaction.prototype
    1. function node-zookeeper-client.Transaction.prototype.check (path, version)
    2. function node-zookeeper-client.Transaction.prototype.commit (callback)
    3. function node-zookeeper-client.Transaction.prototype.create (path, data, acls, mode)
    4. function node-zookeeper-client.Transaction.prototype.remove (path, version)
    5. function node-zookeeper-client.Transaction.prototype.setData (path, data, version)
  20. module node-zookeeper-client.WatcherManager
    1. function node-zookeeper-client.WatcherManager ()
  21. module node-zookeeper-client.WatcherManager.prototype
    1. function node-zookeeper-client.WatcherManager.prototype.emit (watcherEvent)
    2. function node-zookeeper-client.WatcherManager.prototype.getChildWatcherPaths ()
    3. function node-zookeeper-client.WatcherManager.prototype.getDataWatcherPaths ()
    4. function node-zookeeper-client.WatcherManager.prototype.getExistenceWatcherPaths ()
    5. function node-zookeeper-client.WatcherManager.prototype.isEmpty ()
    6. function node-zookeeper-client.WatcherManager.prototype.registerChildWatcher (path, watcher)
    7. function node-zookeeper-client.WatcherManager.prototype.registerDataWatcher (path, watcher)
    8. function node-zookeeper-client.WatcherManager.prototype.registerExistenceWatcher (path, watcher)

module node-zookeeper-client

function node-zookeeper-client.ACL (permission, id)

function node-zookeeper-client.ConnectionManager (connectionString, options, stateListener)

function node-zookeeper-client.ConnectionStringParser (connectionString)

function node-zookeeper-client.Event (type, name, path)

function node-zookeeper-client.Exception (code, name, path, ctor)

function node-zookeeper-client.Exception.super_ ()

function node-zookeeper-client.Id (scheme, id)

function node-zookeeper-client.PacketQueue ()

function node-zookeeper-client.Transaction (connectionManager)

function node-zookeeper-client.WatcherManager ()

function node-zookeeper-client.createClient (connectionString, options)

module node-zookeeper-client.ACL

function node-zookeeper-client.ACL (permission, id)

function node-zookeeper-client.ACL.fromRecord (record)

module node-zookeeper-client.ACL.prototype

function node-zookeeper-client.ACL.prototype.toRecord ()

module node-zookeeper-client.ConnectionManager

function node-zookeeper-client.ConnectionManager (connectionString, options, stateListener)

function node-zookeeper-client.ConnectionManager.super_ ()

module node-zookeeper-client.ConnectionManager.prototype

function node-zookeeper-client.ConnectionManager.prototype.addAuthInfo (scheme, auth)

function node-zookeeper-client.ConnectionManager.prototype.cleanupPendingQueue (errorCode)

function node-zookeeper-client.ConnectionManager.prototype.close ()

function node-zookeeper-client.ConnectionManager.prototype.connect ()

function node-zookeeper-client.ConnectionManager.prototype.findNextServer (callback)

function node-zookeeper-client.ConnectionManager.prototype.getSessionId ()

function node-zookeeper-client.ConnectionManager.prototype.getSessionPassword ()

function node-zookeeper-client.ConnectionManager.prototype.getSessionTimeout ()

function node-zookeeper-client.ConnectionManager.prototype.onPacketQueueReadable ()

function node-zookeeper-client.ConnectionManager.prototype.onSocketClosed (hasError)

function node-zookeeper-client.ConnectionManager.prototype.onSocketConnectTimeout ()

function node-zookeeper-client.ConnectionManager.prototype.onSocketConnected ()

function node-zookeeper-client.ConnectionManager.prototype.onSocketData (buffer)

function node-zookeeper-client.ConnectionManager.prototype.onSocketDrain ()

function node-zookeeper-client.ConnectionManager.prototype.onSocketError (error)

function node-zookeeper-client.ConnectionManager.prototype.onSocketTimeout ()

function node-zookeeper-client.ConnectionManager.prototype.queue (request, callback)

function node-zookeeper-client.ConnectionManager.prototype.registerChildWatcher (path, watcher)

function node-zookeeper-client.ConnectionManager.prototype.registerDataWatcher (path, watcher)

function node-zookeeper-client.ConnectionManager.prototype.registerExistenceWatcher (path, watcher)

function node-zookeeper-client.ConnectionManager.prototype.setState (state)

function node-zookeeper-client.ConnectionManager.prototype.updateTimeout (sessionTimeout)

module node-zookeeper-client.ConnectionStringParser

function node-zookeeper-client.ConnectionStringParser (connectionString)

module node-zookeeper-client.ConnectionStringParser.prototype

function node-zookeeper-client.ConnectionStringParser.prototype.getChrootPath ()

function node-zookeeper-client.ConnectionStringParser.prototype.getConnectionString ()

function node-zookeeper-client.ConnectionStringParser.prototype.getServers ()

module node-zookeeper-client.Event

function node-zookeeper-client.Event (type, name, path)

function node-zookeeper-client.Event.create (watcherEvent)

module node-zookeeper-client.Event.prototype

function node-zookeeper-client.Event.prototype.getName ()

function node-zookeeper-client.Event.prototype.getPath ()

function node-zookeeper-client.Event.prototype.getType ()

function node-zookeeper-client.Event.prototype.toString ()

module node-zookeeper-client.Exception

function node-zookeeper-client.Exception (code, name, path, ctor)

function node-zookeeper-client.Exception.create (code, path)

function node-zookeeper-client.Exception.super_ ()

module node-zookeeper-client.Exception.prototype

function node-zookeeper-client.Exception.prototype.getCode ()

function node-zookeeper-client.Exception.prototype.getName ()

function node-zookeeper-client.Exception.prototype.getPath ()

function node-zookeeper-client.Exception.prototype.toString ()

module node-zookeeper-client.Exception.super_

function node-zookeeper-client.Exception.super_ ()

function node-zookeeper-client.Exception.super_.captureStackTrace ()

module node-zookeeper-client.Id

function node-zookeeper-client.Id (scheme, id)

function node-zookeeper-client.Id.fromRecord (record)

module node-zookeeper-client.Id.prototype

function node-zookeeper-client.Id.prototype.toRecord ()

module node-zookeeper-client.PacketQueue

function node-zookeeper-client.PacketQueue ()

function node-zookeeper-client.PacketQueue.super_ ()

module node-zookeeper-client.PacketQueue.prototype

function node-zookeeper-client.PacketQueue.prototype.push (packet)

function node-zookeeper-client.PacketQueue.prototype.shift ()

function node-zookeeper-client.PacketQueue.prototype.unshift (packet)

module node-zookeeper-client.Path

function node-zookeeper-client.Path.validate (path)

module node-zookeeper-client.Transaction

function node-zookeeper-client.Transaction (connectionManager)

module node-zookeeper-client.Transaction.prototype

function node-zookeeper-client.Transaction.prototype.check (path, version)

function node-zookeeper-client.Transaction.prototype.commit (callback)

function node-zookeeper-client.Transaction.prototype.create (path, data, acls, mode)

function node-zookeeper-client.Transaction.prototype.remove (path, version)

function node-zookeeper-client.Transaction.prototype.setData (path, data, version)

module node-zookeeper-client.WatcherManager

function node-zookeeper-client.WatcherManager ()

module node-zookeeper-client.WatcherManager.prototype

function node-zookeeper-client.WatcherManager.prototype.emit (watcherEvent)

function node-zookeeper-client.WatcherManager.prototype.getChildWatcherPaths ()

function node-zookeeper-client.WatcherManager.prototype.getDataWatcherPaths ()

function node-zookeeper-client.WatcherManager.prototype.getExistenceWatcherPaths ()

function node-zookeeper-client.WatcherManager.prototype.isEmpty ()

function node-zookeeper-client.WatcherManager.prototype.registerChildWatcher (path, watcher)

function node-zookeeper-client.WatcherManager.prototype.registerDataWatcher (path, watcher)

function node-zookeeper-client.WatcherManager.prototype.registerExistenceWatcher (path, watcher)

[ this document was created with utility2 ]