mino181295 opened a new issue #2114: Implement a method to get all the Bookies URL: https://github.com/apache/bookkeeper/issues/2114 **FEATURE REQUEST** I'm building a dashboard for Bookkeeper and I need a method to retrive from `BookKeeper` all the available Bookies including the down ones. I have found `BookKeeper#getBookieInfo` and `BookKeeperAdmin#getAvailableBookies` but I didn't find a proper way to get the `BookieSocketAddress` inside the Zookeeper path `/ledgers/cookies`. The workaround that I have right now is to access directly Zookeeper in this way: ``` Collection<BookieSocketAddress> result = new ArrayList<>(); Stat stat = zkClient.exists(BK_LEDGERS_PATH, true); if (stat == null) { return result; } List<String> bkCookies = zkClient.getChildren(BK_LEDGERS_PATH + "/cookies", false); if (bkCookies == null) { return result; } for (String bookieAddress : bkCookies) { result.add(new BookieSocketAddress(bookieAddress)); } ``` I would be happy to contribute to this patch if you give me some hints.
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
