From: Mahadev K. <ma...@ya...> - 2008-04-22 23:17:31
|
HI Stefan, Take a look at the tests in zookeeper. They startup Zookeeper Quorum servers all the time. That should be of some help. The test test/com/yahoo/zookeeper/test/QuorumTest.java should be helpful. Regards Mahadev > -----Original Message----- > From: zoo...@li... [mailto:zookeeper-user- > bo...@li...] On Behalf Of Stefan Groschupf > Sent: Tuesday, April 22, 2008 4:11 PM > To: zoo...@li... > Subject: [Zookeeper-user] start zookeeper programtic > > Frist, thank you guys so much for the very helpful and fast help. > > I would love to start zookeeper servers within my code programmatically. > So for example starting a master starts always a zookeeper server as > well. > But I kind of like the idea to manage zookeeper with zookeeper as well. > Means if a slave starts and it can not connect to zookeeper it starts > a zookeeper server. > In case it can connect and it discover only one zookeeper server it > starts a second zookeeper server. > > I looked into QuorumPeer#main but guess simply copy those > functionality will not solve my problem. > Since the configuration is static and do not allow setting of new > QuorumServers. > > Did anyone look into that area already? > > 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/j av > aone > _______________________________________________ > Zookeeper-user mailing list > Zoo...@li... > https://lists.sourceforge.net/lists/listinfo/zookeeper-user |