CURATOR-590: Add option to disable parent creation for PersistentNode

Adds a `useParentCreation` boolean flag to control the parent creation.

If this flag is set to `false`, the `PersistentNode` won't create the underlying znodes with the `createParentContainersIfNeeded()`, meaning that the parent znodes will have to exist beforehand in order for the `PersistentNode` to succeed its creation.

The `useParentCreation` flag is set to `true` by default.

https://issues.apache.org/jira/browse/CURATOR-590

Author: Paul Boutes <paul.boutes@elastic.co>
Author: Paul Boutes <paul.boutes@gmail.com>

Reviewers: Enrico Olivelli <eolivelli@apache.org>, Cameron McKenzie <mckenzie.cam@gmail.com>, Zili Chen <wander4096@gmail.com>, Jordan Zimmerman <jordan@jordanzimmerman.com>

Closes #380 from pboutes/CURATOR-590
2 files changed
tree: aa9cc25f74e738019d73151d00389dcf90706309
  1. curator-client/
  2. curator-examples/
  3. curator-framework/
  4. curator-recipes/
  5. curator-test/
  6. curator-test-zk35/
  7. curator-x-async/
  8. curator-x-discovery/
  9. curator-x-discovery-server/
  10. src/
  11. .gitignore
  12. .travis.yml
  13. DEPENDENCIES
  14. doap.rdf
  15. LICENSE
  16. merge-pr.py
  17. NOTICE
  18. pom.xml
  19. README.md
README.md

Apache Curator

Build Status Maven Central Curator Website Stack Overflow Twitter

What's is Apache Curator?

Apache Curator is a Java/JVM client library for Apache ZooKeeper, a distributed coordination service.

Apache Curator includes a high-level API framework and utilities to make using Apache ZooKeeper much easier and more reliable. It also includes recipes for common use cases and extensions such as service discovery and a Java 8 asynchronous DSL.

For more details: