Connecting_state

2010-08-16 Thread Goran Zuzic
Hi! I just started using Zookeeper so excuse my dumb question :)

I'm developing an zookeeper client that allows only one instance of an 
application to run at a time. It is not so good if two applications run at the 
same time.
As a precaution, I made my client shut down the application whenever it 
receives CONNECTING_STATE (for instance, if I can't reach the zookeeper 
ensamble due to a cable cut, I won't receive any other notification so I just 
shut down as a precaution).

So my question would be: if everything runs smoothly, will I ever receive a 
CONNECTING_STATE trigger? For instance, it would be bad if there is a 
CONNECTING_STATE that sometimes precedes CONNECTED_STATE even if everything is 
connected and within timeouts.

Hope I made sense,
Goran




C++ client wrapper

2010-08-31 Thread Goran Zuzic
Hi!

I'm looking for a good zookeeper C++ client wrapper (something like Java) for 
educational purposes. Is there anything similar available?

Thanks,
Goran