Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 40918200B45 for ; Fri, 15 Jul 2016 23:03:15 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 3F21E160A61; Fri, 15 Jul 2016 21:03:15 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 64E3C160A57 for ; Fri, 15 Jul 2016 23:03:14 +0200 (CEST) Received: (qmail 42430 invoked by uid 500); 15 Jul 2016 21:03:13 -0000 Mailing-List: contact user-help@curator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@curator.apache.org Delivered-To: mailing list user@curator.apache.org Received: (qmail 42419 invoked by uid 99); 15 Jul 2016 21:03:13 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jul 2016 21:03:13 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 21C2EC0C0F for ; Fri, 15 Jul 2016 21:03:13 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.198 X-Spam-Level: ** X-Spam-Status: No, score=2.198 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_REPLY=1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id mI08ZJkcFgO1 for ; Fri, 15 Jul 2016 21:03:12 +0000 (UTC) Received: from mail-oi0-f43.google.com (mail-oi0-f43.google.com [209.85.218.43]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id EC9085F613 for ; Fri, 15 Jul 2016 21:03:11 +0000 (UTC) Received: by mail-oi0-f43.google.com with SMTP id w18so180557814oiw.3 for ; Fri, 15 Jul 2016 14:03:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=fMc/Oh5+LV3R23ixDX4fAhGyT5JXu2avQ/Bqem5Jtk4=; b=NxBPZ9o7chMXs9ZItIYw6MGhoN18JamdL3mcSx1qBHlHHWghnkpH8Otia9DgA2EnB1 QGsVR+MjtN0OqgSsDYfVvluqltlU3IUTgIunZX2GZ/O3V1u34p+Z3CaAy7/rFQeMrmC9 90tahPIU195lc/Iw4l4J0tdPbvuXxPBlnYQwVGoJlB52DJJ2RAy+k742flyWDWZz2LSb CJjLyfwOx27z2ZeXqO7RD1Mm4CZ+urx6mSSw/0phxOyisyNroiDg4hE9RGAXejx3GlvB ljGih3++rh9gten8AH87RYBgB5a1k7vCa8JZnaQ9trX1VPX+RK7BU7FCzzhhVlWEUOnN Z2Lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=fMc/Oh5+LV3R23ixDX4fAhGyT5JXu2avQ/Bqem5Jtk4=; b=AAoyEaK8F9Br98KlCmZbItRDTZjV1Qft3OUXPmFv0y1FNmcmLl/Gbvh75umVi4lTrF YWkIp80GPi18su/EeO9VDV9XjEvCpcS27kla44csGAft6Bv5XJhlzWVyJ0PPxwkwWaz7 OCKR9UXcb2jSjSGsdNnhYiztB//gAhaxRHgeEICZvThAxas+xp3Y2eSRdI7jG5OAl99g O3bgcUhSxhcmEUG842PP0dI9xsJP1ONBGaRC2JKnuxchK/rQgaqfWfwcB+uQi7ptnD96 hO8VgByUBYiYtT8ibDp0U8pHIAJKMDf4WMeDZrdkujxEzR5gRU/4cHDNZit6pRFZpvMB 4pxA== X-Gm-Message-State: ALyK8tKIUIZfOOhfa0Y8N8GafGMUudOzvBGMCYxhWD6mmOvmxKjNxbRTholTO/pqGJxWR0gkplfM6UU+hDxz2g== X-Received: by 10.202.229.76 with SMTP id c73mr9376423oih.80.1468616589271; Fri, 15 Jul 2016 14:03:09 -0700 (PDT) MIME-Version: 1.0 Received: by 10.157.40.196 with HTTP; Fri, 15 Jul 2016 14:03:08 -0700 (PDT) In-Reply-To: References: From: Scott Blum Date: Fri, 15 Jul 2016 17:03:08 -0400 Message-ID: Subject: Re: PathChildrenCache creates the node if not present To: user@curator.apache.org, cammckenzie@apache.org Content-Type: multipart/alternative; boundary=001a114034b01d6edb0537b2f2a5 archived-at: Fri, 15 Jul 2016 21:03:15 -0000 --001a114034b01d6edb0537b2f2a5 Content-Type: text/plain; charset=UTF-8 TreeCache is read-only unless you specifically ask it to create the root node. Use depth=1 to watch only a single node. On Thu, Jul 14, 2016 at 5:46 PM, Cameron McKenzie wrote: > I don't have the code handy, but have you tried TreeCache? > > On 14 Jul 2016 11:31 PM, "Alvaro Gareppe" 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 >> > --001a114034b01d6edb0537b2f2a5 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
TreeCache is read-only unless you specifically ask it to c= reate the root node.=C2=A0 Use depth=3D1 to watch only a single node.
=

On Thu, Jul 14, 2= 016 at 5:46 PM, Cameron McKenzie <cammckenzie@apache.org> wrote:

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:
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0cp =3D new PathChil= drenCache(conn, "/a", PathChildrenCache.CACHE_PATH_ONLY);
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0cp.start()
3.- now I have a = node /a in ZK

Im using the pathCache in a differen= t thread (and possibly different server) of the node creation, so I would l= ike 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 ?
<= div>
I'm using curator version: 2.9.1

=
--
Ing. Alvaro Gareppeagareppe@gmail.com=

--001a114034b01d6edb0537b2f2a5--