zookeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Avinash Lakshman <avinash.laksh...@gmail.com>
Subject Zookeeper in embedded mode
Date Sat, 28 May 2011 17:18:24 GMT
Hi All

I am trying to run ZK in embedded mode. Basically I invoke
QuorumPeerMain.main() on a separate thread. However is there a way to
programmatically determine if the local server is ready to take write
requests? I would like to on a separate thread create a Zookeeper instance
and save some state. Currently I have a Thread.sleep(10seconds) to achieve
what I want.

Thanks in advance
Avinash

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message