From: Andrew K. <ak...@ya...> - 2008-04-23 23:49:37
|
Stefan, It is fixed in SVN. We'll be releasing a new server package soon (this week I hope). Thanks, Andrew > -----Original Message----- > From: zoo...@li... [mailto:zookeeper-user- > bo...@li...] On Behalf Of Stefan Groschupf > Sent: Wednesday, April 23, 2008 4:34 PM > To: zoo...@li... > Subject: [Zookeeper-user] zk.getState() Zookeeper.States not visible. > > 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 > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference > Don't miss this year's exciting event. There's still time to save $100. > Use priority code J8TL2D2. > http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/jav > aone > _______________________________________________ > Zookeeper-user mailing list > Zoo...@li... > https://lists.sourceforge.net/lists/listinfo/zookeeper-user |