Sha256: c85097fbcaaa85f7f8f7cf5a817f6612b2ea5790d61ab70c259639e3d46136e3

Contents?: true

Size: 1.16 KB

Versions: 30

Compression:

Stored size: 1.16 KB

Contents

zookeeper

An interface to the Zookeeper distributed configuration server.

For a higher-level interface with a slightly more convenient API and features
such as locks, have a look at [ZK](https://github.com/slyphon/zk) (also
available is [ZK-EventMachine](https://github.com/slyphon/zk-eventmachine) for
those who prefer async).

## License

Copyright 2008 Phillip Pearson, and 2010 Twitter, Inc. Licensed under the
MIT License.  See the included LICENSE file.  Portions copyright 2008-2010
the Apache Software Foundation, licensed under the Apache 2 license, and
used with permission.

## Install

sudo gem install zookeeper

## Usage

Connect to a server:

	require 'rubygems'
	require 'zookeeper'
	z = Zookeeper.new("localhost:2181")
	z.get_children(:path => "/")

## Idioms

The following methods are initially supported:
* get
* set
* get\_children
* stat
* create
* delete
* get\_acl
* set\_acl

All support async callbacks.  get, get\_children and stat support both
watchers and callbacks.

Calls take a dictionary of parameters.  With the exception of set\_acl, the
only required parameter is :path.  Each call returns a dictionary with at
minimum two keys :req\_id and :rc.

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
slyphon-zookeeper-0.2.10 README.markdown
slyphon-zookeeper-0.2.10-java README.markdown
slyphon-zookeeper-0.2.9-java README.markdown
slyphon-zookeeper-0.2.9 README.markdown
slyphon-zookeeper-0.2.8-java README.markdown
slyphon-zookeeper-0.2.8 README.markdown
slyphon-zookeeper-0.2.7 README.markdown
slyphon-zookeeper-0.2.7-java README.markdown
slyphon-zookeeper-0.2.5 README.markdown
slyphon-zookeeper-0.2.5-java README.markdown