curator-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject curator git commit: remove doc for EnsurePath as it is now deprecated
Date Sun, 21 Jun 2015 15:45:08 GMT
Repository: curator
Updated Branches:
  refs/heads/CURATOR-222 759ae6827 -> 81600019e

remove doc for EnsurePath as it is now deprecated


Branch: refs/heads/CURATOR-222
Commit: 81600019e28fe0bb961a99f485556aaf6be3fc3b
Parents: 759ae68
Author: randgalt <>
Authored: Sun Jun 21 10:45:00 2015 -0500
Committer: randgalt <>
Committed: Sun Jun 21 10:45:00 2015 -0500

 src/site/confluence/utilities.confluence | 18 ------------------
 1 file changed, 18 deletions(-)
diff --git a/src/site/confluence/utilities.confluence b/src/site/confluence/utilities.confluence
index d1484e3..16bbc13 100644
--- a/src/site/confluence/utilities.confluence
+++ b/src/site/confluence/utilities.confluence
@@ -14,24 +14,6 @@ Various static methods to help with using ZooKeeper ZNode paths:
 * getSortedChildren: Return the children of the given path sorted by sequence number
 * makePath: Given a parent path and a child node, create a combined full path
-h2. EnsurePath
-Utility to ensure that a particular path is created.
-The first time it is used, a synchronized call to {{ZKPaths.mkdirs(ZooKeeper, String)}} is
made to ensure that the entire path has been created (with an empty byte array if needed).
Subsequent calls with the instance are un\-synchronized NOPs.
-EnsurePath       ensurePath = new EnsurePath(aFullPathToEnsure);
-String           nodePath = aFullPathToEnsure + "/foo";
-ensurePath.ensure(zk);   // first time syncs and creates if needed
-zk.create(nodePath, ...);
-ensurePath.ensure(zk);   // subsequent times are NOPs
-zk.create(nodePath, ...);
-*NOTE:* There's a method in the [[CuratorFramework class|curator-framework/index.html]] that
returns an EnsurePath instance that is namespace aware.
 h2. BlockingQueueConsumer
 See: *[[DistributedQueue|curator-recipes/distributed-queue.html]]* and *[[DistributedPriorityQueue|curator-recipes/distributed-priority-queue.html]]*

View raw message