curator-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jordan Zimmerman <>
Subject Re: find all the children which are x days old?
Date Wed, 09 Sep 2015 06:07:37 GMT
You can use PathChildrenCache or TreeCache. These classes cache trees of ZNodes. You can then
iterate over each node and look at the Stat object. One of the Stat object’s fields has
the value you want (I forget which).


On September 8, 2015 at 9:03:49 PM, Check Peck ( wrote:

Is there any way we can find childrens of a given znode which is 30 days old using curator?
I mean the node which doesn't had any activity for last 30 days or X days.

    public List<String> getChildrenOfANode(final String path) throws Exception {
        return client.getChildren().forPath(path);

View raw message