Comparing version 3.3.2-1 to 3.3.2-2
{ | ||
"name": "zookeeper", | ||
"description": "apache zookeeper client for node.js (zookeeper async API >= 3.3.1)", | ||
"version": "3.3.2-1", | ||
"version": "3.3.2-2", | ||
"author": "Yuri Finkelstein <yurif2003@yahoo.com>", | ||
@@ -6,0 +6,0 @@ "contributors": [ |
@@ -6,5 +6,10 @@ NAME | ||
INSTALL | ||
------- | ||
npm install zookeeper | ||
SYNOPSIS | ||
-------- | ||
var ZK = require ("zookeeper").ZooKeeper; | ||
@@ -16,3 +21,3 @@ var zk = new ZK(); | ||
zkk.a_create ("/node.js1", "some value", ZK.ZOO_SEQUENCE | ZK.ZOO_EPHEMERAL, function (rc, error, path) { | ||
if (rc != 0) | ||
if (rc != 0) | ||
console.log ("zk node create result: %d, error: '%s', path=%s", rc, error, path); | ||
@@ -92,3 +97,3 @@ else { | ||
* a_set ( path, data, version, stat_cb ) | ||
* a_delete`_` ( path, version, void_cb ) | ||
* a_delete`_` ( path, version, void_cb ) | ||
* (trailing `_` is added to avoid conflict with reserved word `_delete_` since zk_promise.js strips off prefix `a_` from all operations) | ||
@@ -98,3 +103,3 @@ | ||
* aw_exists ( path, watch_cb, stat_cb ) | ||
* aw_exists ( path, watch_cb, stat_cb ) | ||
* aw_get ( path, watch_cb, data_cb ) | ||
@@ -113,6 +118,6 @@ * aw_get_children ( path, watch_cb, child_cb ) | ||
* The C++ code uses the same logging facility that ZK C API uses internally. Hence zk_log.h file checked into this project. The file is considered ZK internal and is not installed into /usr/local/include | ||
* Multiple simultaneous ZK connections are supported and tested | ||
* Multiple simultaneous ZK connections are supported and tested | ||
* All ZK constants are exposed as read-only properties of the ZooKeeper function, like ZK.ZOO_EPHEMERAL | ||
* All ZK API methods including watchers are supported. | ||
* lib/zk_promise.js is an optional module that makes use of the very cool **node-promise** library; | ||
* lib/zk_promise.js is an optional module that makes use of the very cool **node-promise** library; | ||
see tests/zk_test_shootout_promise.js for illustration of how it can simplify coding. Isn't the following looking nicer? | ||
@@ -131,3 +136,3 @@ | ||
console.log ("node created path=%s", path); | ||
return zk_r.w_get (path, | ||
return zk_r.w_get (path, | ||
function (type, state, path_w) { // this is a watcher | ||
@@ -156,3 +161,3 @@ console.log ("watcher for path %s triggered", path_w); | ||
* Also compare test/zk_test_watcher.js with test/zk_test_watcher_promise.js | ||
* Also compare test/zk_test_watcher.js with test/zk_test_watcher_promise.js | ||
* tests/zk_master.js and tests/zk_worker.js illustrate launching multiple ZK client workers using webworker library. You have to install it first with **"npm install webworker"** | ||
@@ -165,5 +170,5 @@ | ||
* zookeeper version 3.3.1 (or 3.3.2) | ||
* zookeeper native client should be installed in your system: | ||
**cd $ZK_HOME/src/c && configure && make && make install** | ||
this puts *.h files under /usr/local/include/c-client-src/ and lib files in /usr/local/lib/libzookeeper_* | ||
* zookeeper native client should be installed in your system: | ||
**cd $ZK_HOME/src/c && configure && make && make install** | ||
this puts *.h files under /usr/local/include/c-client-src/ and lib files in /usr/local/lib/libzookeeper_* | ||
The build process is described in details [here](http://hadoop.apache.org/zookeeper/docs/r3.3.1/zookeeperProgrammers.html#C+Binding "Build C client") | ||
@@ -175,3 +180,3 @@ (has been tested with and without --without-syncapi) | ||
- node-waf configure build | ||
- node-waf configure build [--zookeeper zookeeper-version|prefix-path] | ||
- node demo1.js | ||
@@ -212,5 +217,5 @@ - cd tests && node zk_test_XYZ.js | ||
- **[node-promise](http://github.com/kriszyp/node-promise "node-promise") by kriszyp** is a fantastic tool imho. I wish it was distributed as a module so that I could easily 'require' it rather then | ||
resort to distribution by copy. | ||
- **[node-webworker](http://github.com/pgriess/node-webworker "node-webworker") by pgriess** is used to spawn multiple ZK workers in one of the tests. | ||
- **[node-promise](http://github.com/kriszyp/node-promise "node-promise") by kriszyp** is a fantastic tool imho. I wish it was distributed as a module so that I could easily 'require' it rather then | ||
resort to distribution by copy. | ||
- **[node-webworker](http://github.com/pgriess/node-webworker "node-webworker") by pgriess** is used to spawn multiple ZK workers in one of the tests. | ||
@@ -217,0 +222,0 @@ LICENSE |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
97512
221