curator-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cameron McKenzie <mckenzie....@gmail.com>
Subject Re: Create a Sequence node using Apache Curator?
Date Fri, 08 Nov 2013 01:13:11 GMT
client.create().creatingParentsIfNeeded().withMode(CreateMode.SEQUENTIAL).forPath("/foo/path");

Look at the CreateMode enumeration for various options.


On Fri, Nov 8, 2013 at 12:04 PM, Techy Teck <comptechgeeky@gmail.com> wrote:

> I am trying to create sequence node using Apache Curator. I am not able to
> find any example of that?
>
>     private static void createZnodes(CuratorFramework client) throws
> Exception {
>
>
> client.create().creatingParentsIfNeeded().forPath("/foo/path-");
>     }
>
> Any example will be greatly appreciated.. Thanks..
>

Mime
View raw message