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

Reply via email to