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).
-JZ On September 8, 2015 at 9:03:49 PM, Check Peck ([email protected]) 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); }
