This is a code example that complements the material in the ZooKeeper O'Reilly book.