Re: zookeeper utils

2010-03-03 Thread Patrick Hunt
This is def. something we should add to the recipes (docs code lib), Henry/David can you create a jira for this? Patrick Henry Robinson wrote: Just to illustrate one of the primitives you're looking for: an AtomicInteger equivalent would be fairly easy to construct, with nearly identical

Re: zookeeper utils

2010-03-03 Thread David Rosenstrauch
On 03/03/2010 01:43 AM, Henry Robinson wrote: Just to illustrate one of the primitives you're looking for: an AtomicInteger equivalent would be fairly easy to construct, with nearly identical semantics to the Java version. Let's say a given znode has four bytes of data that represent an integer

Re: zookeeper utils

2010-03-03 Thread David Rosenstrauch
On 03/03/2010 12:05 PM, Patrick Hunt wrote: This is def. something we should add to the recipes (docs code lib), Henry/David can you create a jira for this? Patrick Done. https://issues.apache.org/jira/browse/ZOOKEEPER-686 Thanks, DR

Re: zookeeper utils

2010-03-02 Thread Mahadev Konar
Hi David, There is an implementation for locks and queues in src/recipes. The documentation residres in src/recipes/{lock/queue}/README.txt. Thanks mahadev On 3/2/10 1:04 PM, David Rosenstrauch dar...@darose.net wrote: Was reading through the zookeeper docs on the web - specifically the

Re: zookeeper utils

2010-03-02 Thread Ted Dunning
What other examples are you looking for? On Tue, Mar 2, 2010 at 1:04 PM, David Rosenstrauch dar...@darose.netwrote: Is there a library of higher-level zookeeper utilities that people have contributed, beyond the barrier and queue examples provided in the docs? -- Ted Dunning, CTO DeepDyve

Re: zookeeper utils

2010-03-02 Thread David Rosenstrauch
Thanks, I'll take a look. DR On 03/02/2010 05:37 PM, Mahadev Konar wrote: Hi David, There is an implementation for locks and queues in src/recipes. The documentation residres in src/recipes/{lock/queue}/README.txt. Thanks mahadev On 3/2/10 1:04 PM, David Rosenstrauchdar...@darose.net

Re: zookeeper utils

2010-03-02 Thread Henry Robinson
Just to illustrate one of the primitives you're looking for: an AtomicInteger equivalent would be fairly easy to construct, with nearly identical semantics to the Java version. Let's say a given znode has four bytes of data that represent an integer value. Get operations or set operations are