You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@curator.apache.org by ra...@apache.org on 2015/06/22 03:48:53 UTC
[1/2] curator git commit: Doc misnamed CuratorEvent
Repository: curator
Updated Branches:
refs/heads/CURATOR-222 81600019e -> d678de0bf
Doc misnamed CuratorEvent
Project: http://git-wip-us.apache.org/repos/asf/curator/repo
Commit: http://git-wip-us.apache.org/repos/asf/curator/commit/f27b4909
Tree: http://git-wip-us.apache.org/repos/asf/curator/tree/f27b4909
Diff: http://git-wip-us.apache.org/repos/asf/curator/diff/f27b4909
Branch: refs/heads/CURATOR-222
Commit: f27b49095bbe359afd904e1f3a227a00d2239578
Parents: 8160001
Author: randgalt <ra...@apache.org>
Authored: Sun Jun 21 11:04:35 2015 -0500
Committer: randgalt <ra...@apache.org>
Committed: Sun Jun 21 11:04:35 2015 -0500
----------------------------------------------------------------------
curator-framework/src/site/confluence/index.confluence | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/curator/blob/f27b4909/curator-framework/src/site/confluence/index.confluence
----------------------------------------------------------------------
diff --git a/curator-framework/src/site/confluence/index.confluence b/curator-framework/src/site/confluence/index.confluence
index 84f794f..efde81b 100644
--- a/curator-framework/src/site/confluence/index.confluence
+++ b/curator-framework/src/site/confluence/index.confluence
@@ -51,9 +51,9 @@ CuratorFramework instance using the addListener() method. The listener implement
|eventReceived()|A background operation has completed or a watch has triggered. Examine the given event for details|
<td>clientClosedDueToError()|An unrecoverable error has occurred. The CuratorFramework instance has been shut down|
-h3. ClientEvent
-The ClientEvent object is a super\-set POJO that can hold every type of background notification and triggered watch. The useful fields of
-ClientEvent depend on the type of event which is exposed via the getType() method.
+h3. CuratorEvent
+The CuratorEvent object is a super\-set POJO that can hold every type of background notification and triggered watch. The useful fields of
+CuratorEvent depend on the type of event which is exposed via the getType() method.
||Event Type||Event Methods||
|CREATE|getResultCode() and getPath()|
[2/2] curator git commit: updated deprecated tags
Posted by ra...@apache.org.
updated deprecated tags
Project: http://git-wip-us.apache.org/repos/asf/curator/repo
Commit: http://git-wip-us.apache.org/repos/asf/curator/commit/d678de0b
Tree: http://git-wip-us.apache.org/repos/asf/curator/tree/d678de0b
Diff: http://git-wip-us.apache.org/repos/asf/curator/diff/d678de0b
Branch: refs/heads/CURATOR-222
Commit: d678de0bf8932710d47680ac9bdafc682f2e3019
Parents: f27b490
Author: randgalt <ra...@apache.org>
Authored: Sun Jun 21 20:48:42 2015 -0500
Committer: randgalt <ra...@apache.org>
Committed: Sun Jun 21 20:48:42 2015 -0500
----------------------------------------------------------------------
.../src/main/java/org/apache/curator/utils/EnsurePath.java | 3 ++-
.../java/org/apache/curator/framework/CuratorFramework.java | 8 ++++++--
.../java/org/apache/curator/framework/api/CreateBuilder.java | 1 +
.../curator/framework/recipes/cache/PathChildrenCache.java | 3 +++
.../framework/recipes/cache/PathChildrenCacheMode.java | 1 +
.../apache/curator/framework/recipes/locks/ChildReaper.java | 3 ++-
.../framework/recipes/locks/InterProcessSemaphore.java | 1 +
.../org/apache/curator/framework/recipes/locks/Reaper.java | 3 ++-
8 files changed, 18 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/curator/blob/d678de0b/curator-client/src/main/java/org/apache/curator/utils/EnsurePath.java
----------------------------------------------------------------------
diff --git a/curator-client/src/main/java/org/apache/curator/utils/EnsurePath.java b/curator-client/src/main/java/org/apache/curator/utils/EnsurePath.java
index a4a8528..3845a74 100644
--- a/curator-client/src/main/java/org/apache/curator/utils/EnsurePath.java
+++ b/curator-client/src/main/java/org/apache/curator/utils/EnsurePath.java
@@ -48,8 +48,9 @@ import java.util.concurrent.atomic.AtomicReference;
* zk.create(nodePath, ...);
* </pre>
*
- * @deprecated Prefer CuratorFramework.create().creatingParentContainersIfNeeded() or CuratorFramework.exists().creatingParentContainersIfNeeded()
+ * @deprecated Since 2.9.0 - Prefer CuratorFramework.create().creatingParentContainersIfNeeded() or CuratorFramework.exists().creatingParentContainersIfNeeded()
*/
+@Deprecated
public class EnsurePath
{
private final String path;
http://git-wip-us.apache.org/repos/asf/curator/blob/d678de0b/curator-framework/src/main/java/org/apache/curator/framework/CuratorFramework.java
----------------------------------------------------------------------
diff --git a/curator-framework/src/main/java/org/apache/curator/framework/CuratorFramework.java b/curator-framework/src/main/java/org/apache/curator/framework/CuratorFramework.java
index fdf583c..de9bcc5 100644
--- a/curator-framework/src/main/java/org/apache/curator/framework/CuratorFramework.java
+++ b/curator-framework/src/main/java/org/apache/curator/framework/CuratorFramework.java
@@ -59,6 +59,7 @@ public interface CuratorFramework extends Closeable
* @return true/false
* @deprecated use {@link #getState()} instead
*/
+ @Deprecated
public boolean isStarted();
/**
@@ -134,6 +135,7 @@ public interface CuratorFramework extends Closeable
* @param backgroundContextObject optional context
* @deprecated use {@link #sync()} instead
*/
+ @Deprecated
public void sync(String path, Object backgroundContextObject);
/**
@@ -170,8 +172,9 @@ public interface CuratorFramework extends Closeable
* pre-pend the namespace to all paths
*
* @return facade
- * @deprecated use {@link #usingNamespace} passing <code>null</code>
+ * @deprecated Since 2.9.0 - use {@link #usingNamespace} passing <code>null</code>
*/
+ @Deprecated
public CuratorFramework nonNamespaceView();
/**
@@ -202,8 +205,9 @@ public interface CuratorFramework extends Closeable
*
* @param path path to ensure
* @return new EnsurePath instance
- * @deprecated prefer {@link CreateBuilder#creatingParentContainersIfNeeded()} or {@link ExistsBuilder#creatingParentContainersIfNeeded()}
+ * @deprecated Since 2.9.0 - prefer {@link CreateBuilder#creatingParentContainersIfNeeded()} or {@link ExistsBuilder#creatingParentContainersIfNeeded()}
*/
+ @Deprecated
public EnsurePath newNamespaceAwareEnsurePath(String path);
/**
http://git-wip-us.apache.org/repos/asf/curator/blob/d678de0b/curator-framework/src/main/java/org/apache/curator/framework/api/CreateBuilder.java
----------------------------------------------------------------------
diff --git a/curator-framework/src/main/java/org/apache/curator/framework/api/CreateBuilder.java b/curator-framework/src/main/java/org/apache/curator/framework/api/CreateBuilder.java
index 5e1bc56..0db2094 100644
--- a/curator-framework/src/main/java/org/apache/curator/framework/api/CreateBuilder.java
+++ b/curator-framework/src/main/java/org/apache/curator/framework/api/CreateBuilder.java
@@ -50,6 +50,7 @@ public interface CreateBuilder extends
* </pre>
* @return this
*/
+ @Deprecated
public ACLPathAndBytesable<String> withProtectedEphemeralSequential();
/**
http://git-wip-us.apache.org/repos/asf/curator/blob/d678de0b/curator-recipes/src/main/java/org/apache/curator/framework/recipes/cache/PathChildrenCache.java
----------------------------------------------------------------------
diff --git a/curator-recipes/src/main/java/org/apache/curator/framework/recipes/cache/PathChildrenCache.java b/curator-recipes/src/main/java/org/apache/curator/framework/recipes/cache/PathChildrenCache.java
index 05ccace..d2e3ddf 100644
--- a/curator-recipes/src/main/java/org/apache/curator/framework/recipes/cache/PathChildrenCache.java
+++ b/curator-recipes/src/main/java/org/apache/curator/framework/recipes/cache/PathChildrenCache.java
@@ -140,6 +140,7 @@ public class PathChildrenCache implements Closeable
* @param mode caching mode
* @deprecated use {@link #PathChildrenCache(CuratorFramework, String, boolean)} instead
*/
+ @Deprecated
@SuppressWarnings("deprecation")
public PathChildrenCache(CuratorFramework client, String path, PathChildrenCacheMode mode)
{
@@ -153,6 +154,7 @@ public class PathChildrenCache implements Closeable
* @param threadFactory factory to use when creating internal threads
* @deprecated use {@link #PathChildrenCache(CuratorFramework, String, boolean, ThreadFactory)} instead
*/
+ @Deprecated
@SuppressWarnings("deprecation")
public PathChildrenCache(CuratorFramework client, String path, PathChildrenCacheMode mode, ThreadFactory threadFactory)
{
@@ -239,6 +241,7 @@ public class PathChildrenCache implements Closeable
* @throws Exception errors
* @deprecated use {@link #start(StartMode)}
*/
+ @Deprecated
public void start(boolean buildInitial) throws Exception
{
start(buildInitial ? StartMode.BUILD_INITIAL_CACHE : StartMode.NORMAL);
http://git-wip-us.apache.org/repos/asf/curator/blob/d678de0b/curator-recipes/src/main/java/org/apache/curator/framework/recipes/cache/PathChildrenCacheMode.java
----------------------------------------------------------------------
diff --git a/curator-recipes/src/main/java/org/apache/curator/framework/recipes/cache/PathChildrenCacheMode.java b/curator-recipes/src/main/java/org/apache/curator/framework/recipes/cache/PathChildrenCacheMode.java
index dcd9be3..5c15fda 100644
--- a/curator-recipes/src/main/java/org/apache/curator/framework/recipes/cache/PathChildrenCacheMode.java
+++ b/curator-recipes/src/main/java/org/apache/curator/framework/recipes/cache/PathChildrenCacheMode.java
@@ -27,6 +27,7 @@ import java.util.concurrent.ThreadFactory;
* @deprecated no longer used. Instead use either {@link PathChildrenCache#PathChildrenCache(CuratorFramework, String, boolean)}
* or {@link PathChildrenCache#PathChildrenCache(CuratorFramework, String, boolean, ThreadFactory)}
*/
+@Deprecated
public enum PathChildrenCacheMode
{
/**
http://git-wip-us.apache.org/repos/asf/curator/blob/d678de0b/curator-recipes/src/main/java/org/apache/curator/framework/recipes/locks/ChildReaper.java
----------------------------------------------------------------------
diff --git a/curator-recipes/src/main/java/org/apache/curator/framework/recipes/locks/ChildReaper.java b/curator-recipes/src/main/java/org/apache/curator/framework/recipes/locks/ChildReaper.java
index 5949b95..9d196e8 100644
--- a/curator-recipes/src/main/java/org/apache/curator/framework/recipes/locks/ChildReaper.java
+++ b/curator-recipes/src/main/java/org/apache/curator/framework/recipes/locks/ChildReaper.java
@@ -50,9 +50,10 @@ import java.util.concurrent.atomic.AtomicReference;
* Utility to reap empty child nodes of a parent node. Periodically calls getChildren on
* the node and adds empty nodes to an internally managed {@link Reaper}
*
- * @deprecated Reaper/ChildReaper are no longer needed. Use {@link CreateMode#CONTAINER}.
+ * @deprecated Since 2.9.0 - Reaper/ChildReaper are no longer needed. Use {@link CreateMode#CONTAINER}.
* Also, all Curator recipes create container parents.
*/
+@Deprecated
public class ChildReaper implements Closeable
{
private final Logger log = LoggerFactory.getLogger(getClass());
http://git-wip-us.apache.org/repos/asf/curator/blob/d678de0b/curator-recipes/src/main/java/org/apache/curator/framework/recipes/locks/InterProcessSemaphore.java
----------------------------------------------------------------------
diff --git a/curator-recipes/src/main/java/org/apache/curator/framework/recipes/locks/InterProcessSemaphore.java b/curator-recipes/src/main/java/org/apache/curator/framework/recipes/locks/InterProcessSemaphore.java
index 2f4b1ed..3d29aa8 100644
--- a/curator-recipes/src/main/java/org/apache/curator/framework/recipes/locks/InterProcessSemaphore.java
+++ b/curator-recipes/src/main/java/org/apache/curator/framework/recipes/locks/InterProcessSemaphore.java
@@ -63,6 +63,7 @@ import java.util.concurrent.TimeUnit;
*
* @deprecated Use {@link InterProcessSemaphoreV2} instead of this class. It uses a better algorithm.
*/
+@Deprecated
public class InterProcessSemaphore
{
private final Logger log = LoggerFactory.getLogger(getClass());
http://git-wip-us.apache.org/repos/asf/curator/blob/d678de0b/curator-recipes/src/main/java/org/apache/curator/framework/recipes/locks/Reaper.java
----------------------------------------------------------------------
diff --git a/curator-recipes/src/main/java/org/apache/curator/framework/recipes/locks/Reaper.java b/curator-recipes/src/main/java/org/apache/curator/framework/recipes/locks/Reaper.java
index 578fa0c..a7a575f 100644
--- a/curator-recipes/src/main/java/org/apache/curator/framework/recipes/locks/Reaper.java
+++ b/curator-recipes/src/main/java/org/apache/curator/framework/recipes/locks/Reaper.java
@@ -43,9 +43,10 @@ import java.util.concurrent.atomic.AtomicReference;
/**
* Utility to clean up parent lock nodes so that they don't stay around as garbage
*
- * @deprecated Reaper/ChildReaper are no longer needed. Use {@link CreateMode#CONTAINER}.
+ * @deprecated Since 2.9.0 - Reaper/ChildReaper are no longer needed. Use {@link CreateMode#CONTAINER}.
* Also, all Curator recipes create container parents.
*/
+@Deprecated
public class Reaper implements Closeable
{
private final Logger log = LoggerFactory.getLogger(getClass());