From: Stefan G. <sg...@10...> - 2008-04-23 23:33:40
|
Hi, I would be kind of nice to check the state of a zookeeper. There is a method zk.getState(), though the States enum in ZooKeeper is not public but default visible. This makes an zk.getState().isAlive() call impossible from a different package. Just curious is there any reason for that? Any other good way to test if zookeeper is in a healthy state? (Server and client connected). I basically want to add this to my unit tests. Thanks. Stefan ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 101tec Inc. Menlo Park, California, USA http://www.101tec.com |