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.
the session password
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.
the negotiated session timeout (in milliseconds)
Add the specified scheme:auth information to this client.
Add the specified scheme:auth information to this client.
The authentication scheme.
The authentication data buffer.
zookeeper.addAuthInfo('ip', new Buffer('127.0.0.1'));
void addAuthInfo(scheme, auth)
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.
void close()
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.
void connect()
void create(path, [data], [acls], [mode], callback)
void create(path, [data], [acls], [mode], callback)
void create(path, [data], [acls], [mode], callback)
void create(path, [data], [acls], [mode], callback)
void exists(path, [watcher], callback)
void exists(path, [watcher], callback)
void getACL(path, callback)
void getChildren(path, [watcher], callback)
void getChildren(path, [watcher], callback)
void getData(path, [watcher], callback)
void getData(path, [watcher], callback)
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.
a long integer stored as an 8-byte Buffer
Return the current client state.
Return the current client state.
the current client state.
void mkdirp(path, [data], [acls], [mode], callback)
void mkdirp(path, [data], [acls], [mode], callback)
void mkdirp(path, [data], [acls], [mode], callback)
void mkdirp(path, [data], [acls], [mode], callback)
void remove(path, [version], callback)
void remove(path, [version], callback)
void setACL(path, acls, [version], callback)
void setACL(path, acls, [version], callback)
void setData(path, data, [version], callback)
void setData(path, data, [version], callback)
transaction(): Transaction
Node Zookeeper Client (node-zookeeper-client)
https://github.com/alexguan/node-zookeeper-client