curator-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cameron McKenzie <cammcken...@apache.org>
Subject Re: PathChildrenCache creates the node if not present
Date Thu, 14 Jul 2016 21:46:37 GMT
I don't have the code handy, but have you tried TreeCache?

On 14 Jul 2016 11:31 PM, "Alvaro Gareppe" <agareppe@gmail.com> wrote:

> Is there a way to avoid the node creation on PathChildrenCache start() ?
>
> I have this case
>
> 1.- There is no node in ZK
> 2.- I do this:
>          cp = new PathChildrenCache(conn, "/a",
> PathChildrenCache.CACHE_PATH_ONLY);
>          cp.start()
> 3.- now I have a node /a in ZK
>
> Im using the pathCache in a different thread (and possibly different
> server) of the node creation, so I would like to have an option where the
> node is not created, so it does nothing or throws and exception in that
> case (both works for me).
>
> Is there some way to configure the PathChildrenCache to do so ?
>
> I'm using curator version: 2.9.1
>
> --
> Ing. Alvaro Gareppe
> agareppe@gmail.com
>

Mime
View raw message