curator-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cameron McKenzie <mckenzie....@gmail.com>
Subject Re: Znode Timestamp?
Date Wed, 13 Nov 2013 06:15:57 GMT
If you execute a checkExists() on the zNode, it will tell you the creation
time (ctime) and the modification time (mtime)

Stat stat = client.checkExists().forPath("/path_to_znode");

stat.getCtime();
stat.getMtime();



On Wed, Nov 13, 2013 at 4:51 PM, Techy Teck <comptechgeeky@gmail.com> wrote:

> When we create any znode or update znode's data then is there any
> timestamps related with znode?
>
> Basically I am interested in getting the znode timestamp when that node
> got created or when it got updated?
>
> I am using apache curator library -
>
>            CuratorFramework client =
> CuratorClient.createSimple("localhost:2181");
>            client.start();
>
> Any thoughts?
>

Mime
View raw message