Hi, You can also have a look at this issue: https://issues.apache.org/jira/browse/ZOOKEEPER-723
Think about which API suits your use case better, or which one you like more. On Jun 27, 2011, at 19:42 , Yosef Arraf wrote: > a)The zookeeper holds an entries(nods) of resources > (resource allocation framework), > Any component in our running environment wants to get any resource (by > type) will ask the zookeeper to get it (attributes,location,port,...) > Every resource will be added as a node in the zookeeper (on > it's bootstrap will create zKclient and add himself to the zookeeper) > if the client die OR the resource machine is not available - So i need to > delete it's node. > > > -Yosef. > > On Mon, Jun 27, 2011 at 8:27 PM, Ivan Kelly <[email protected]> wrote: > >> ** >> a) explain your problem more, what type of data do you want to store under >> the client znode? what is the lifetime of clients? what do you expect to >> happen when clients die? >> b) reply to the list so others in the future can benefit from any >> solutions/discussions >> >> -Ivan >> >> >> On 27/06/2011 19:23, Yosef Arraf wrote: >> >> any other idea? >> >> >> On Mon, Jun 27, 2011 at 8:09 PM, Ivan Kelly <[email protected]> wrote: >> >>> Thats not possible at the moment. Have a look at >>> https://issues.apache.org/jira/browse/ZOOKEEPER-834 >>> >>> -Ivan >>> >>> >>> On 27/06/2011 19:02, Yosef Arraf wrote: >>> >>> Hi Ivan, >>> Thanks for the replay, >>> we cannot use Ephemeral nodes: >>> "Ephemeral znodes are not allowed to have children" >>> Our Nodes have chields (/nodeid/attrebutes/type/id/...) >>> >>> any other idea? >>> Thanks, >>> Yosef >>> >>> >>> >>> On Mon, Jun 27, 2011 at 7:40 PM, Ivan Kelly <[email protected]> wrote: >>> >>>> Hi Yosef, >>>> >>>> Sounds like you need to create the znode as Ephemeral. >>>> >>>> http://zookeeper.apache.org/doc/r3.3.3/api/org/apache/zookeeper/CreateMode.html#EPHEMERAL >>>> >>>> Regards >>>> Ivan >>>> >>>> >>>> On 27/06/2011 17:33, Yosef Arraf wrote: >>>> >>>>> Hi, >>>>> My Name is Yosef and i'm facing a problem when one of my ZooKeeper >>>>> Clients crash or shutdown (disconnected), >>>>> i want to delete is is znode and make it as unavailable. >>>>> >>>>> Any one have any Idea that can help me to solve my problem? >>>>> >>>>> Thanks, >>>>> Yosef. >>>>> >>>> >>>> >>> >>> >> >>
