public static List < String > getSortedChildren ( ZooKeeper zookeeper , String path ) throws InterruptedException , KeeperException { List < String > children = zookeeper . getChildren ( path , false ) ; List < String > sortedList = Lists . newArrayList ( children ) ; Collections . sort ( sortedList ) ; return sortedList ; }
Return the children of the given path sorted by sequence number