Java example uses of ZooKeeper