Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

zookeeper-hd

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zookeeper-hd

Higher level (normalized) zookeeper client

  • 0.5.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

zookeeper-hd

Higher level (normalized) client for Zookeeper.

Uses https://github.com/yfinkelstein/node-zookeeper as underlying client.

Codeship Status for hans-d/node-zookeeper-hd

API

SimpleClient

Quick overview:

  • normalize function names ( get vs a_get )
  • normalize callback signatures to common nodejs callback structures (error, results)
  • exists returns true/false via callback (error, exists, stats)
  • except for noted above, tries to follow the underlying zookeeper client signature

Methods

  • create (zkPath, value, flags, onReady)
  • exists: (zkPath, watch, onData)
  • get: (zkPath, watch, onData)
  • getChildren: (zkPath, watch, onData)
  • mkdir: (zkPath, onReady)
  • set: (zkPath, value, version, onReady)

PlusClient

Quick overview

  • wraps SimpleClients
  • added: createOrUpdate
  • added: createPathIfNotExist
  • redefines the signatures of the SimpleClient methods, using an optional options argument

Added methods:

  • createOrUpdate: (zkPath, value, options, onReady, extraArg) Options: { flags, watch }
  • createPathIfNotExist: (zkPath, options, onReady)

Redefined methods from SimpleClient

  • create: (zkPath, value, options, onReady)
  • exists: (zkPath, options, onData)
  • get: (zkPath, options, onData)
  • getChildren: (zkPath, options, onData)
  • mkdir: (zkPath, options, onReady)
  • set: (zkPath, value, version, options, onReady)

FakeZookeeper

Provides a fake zookeeper, with methods of the zookeeper client and backed with a memory based registry. Watches are not implemented yet.

See [coffeescript | js]/test/integration/FakePlusClient for an example where only the original zookeeper module is changed (using mockery), and the PlusClient is used to perform zookeeper actions

Various

MIT Licensed

Source is in coffee script, but is delivered as plain .js

Semantic Versioning

Grunt is used for build/development automation

Keywords

FAQs

Package last updated on 31 Oct 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc