hadoop-zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Bowman <ebow...@boboco.ie>
Subject Re: Watches
Date Thu, 04 Jun 2009 19:53:23 GMT
Avinash Lakshman wrote:
> I want to get notified whenever any sub znode is created under /A. Only one
> process amongst many will create these sub znodes. But everyone needs to be
> notified about this

Right.  So, each process that needs to be notified should call

zk_.watchChildren( "/A", true )

Every process that makes that call will get notified when a child is created (directly) under
/A.


-- 
Eric Bowman
Boboco Ltd
ebowman@boboco.ie
http://www.boboco.ie/ebowman/pubkey.pgp
+35318394189/+353872801532


Mime
View raw message