I have a very strong feeling against more complex operations in the ZK server.
These are things that should be provided by a ZK client helper library. The
zkclient library from 101tec for example gives you exactly that.
If you're planning to write another layer on top of the ZK API please have a
look at https://issues.apache.org/jira/browse/ZOOKEEPER-835
I'm planning to provide an alternative java client API for 3.4.0 and would
then propose to deprecate the current one in the long run.
You can preview the new API at
However we need to redo it on top of ZOOKEEPER-823 ones it is applied to
Thomas Koch, http://www.koch.ro