curator-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Check Peck <comptechge...@gmail.com>
Subject Update the znode data using curator?
Date Wed, 08 Jan 2014 22:25:04 GMT
Is there any way to update the znode data using Curator.

    CuratorFramework client = CuratorClient.createSimple("localhost:2181");
    client.start();

Suppose if the node (/my/example/hello) already exists and we just need to
update the znode data. Do I need to execute the below code again just to
update the data using curator?

    client.create().creatingParentsIfNeeded().forPath("/my/example/hello",
"new-data-inserted".getBytes());

or is there some better API for that?

Mime
View raw message