curator-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cammcken...@apache.org
Subject [18/50] curator git commit: remove doc for EnsurePath as it is now deprecated
Date Tue, 25 Aug 2015 04:08:38 GMT
remove doc for EnsurePath as it is now deprecated


Project: http://git-wip-us.apache.org/repos/asf/curator/repo
Commit: http://git-wip-us.apache.org/repos/asf/curator/commit/81600019
Tree: http://git-wip-us.apache.org/repos/asf/curator/tree/81600019
Diff: http://git-wip-us.apache.org/repos/asf/curator/diff/81600019

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

----------------------------------------------------------------------
 src/site/confluence/utilities.confluence | 18 ------------------
 1 file changed, 18 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/curator/blob/81600019/src/site/confluence/utilities.confluence
----------------------------------------------------------------------
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.
-
-Usage:
-{code}
-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, ...);
-{code}
-
-*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]]*


Mime
View raw message