Netflix/curator — pull request #201 by bbeck (2012-11-07 20:32:13+00:00)
Title: PersistentEphemeralNode recipe

Here's a first pass at incorporating a PersistentEphemeralNode class into Curator as a recipe. The idea is that this is the backing primitive behind a registry implementation using ZooKeeper as the backing data store. Registrations are performed using ephemeral nodes so that they can take advantage of ZooKeeper's ability to automatically clean them up upon session destruction. On the flip side if a temporary connection loss with the ZooKeeper ensemble happens the node ought to be recreated when the connection is reestablished. This recipe aims to encapsulate all of those features into one.

I tried my best to adhere to the coding standard already inside of Curator, but I'm sure I messed a few things up. Feel free to nitpick where things aren't quite right and I'll do my best to fix them.

Thanks,
Brandon