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 2016/05/19 19:02:46 UTC

[31/35] curator git commit: Added getSchemas()

Added getSchemas()


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

Branch: refs/heads/CURATOR-3.0
Commit: 762472588b03ff9084d81e6fa1749b88dfaf572b
Parents: 32965e5
Author: randgalt <ra...@apache.org>
Authored: Wed May 4 16:58:07 2016 -0500
Committer: randgalt <ra...@apache.org>
Committed: Wed May 4 16:58:07 2016 -0500

----------------------------------------------------------------------
 .../org/apache/curator/framework/schema/SchemaSet.java   | 11 +++++++++++
 1 file changed, 11 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/curator/blob/76247258/curator-framework/src/main/java/org/apache/curator/framework/schema/SchemaSet.java
----------------------------------------------------------------------
diff --git a/curator-framework/src/main/java/org/apache/curator/framework/schema/SchemaSet.java b/curator-framework/src/main/java/org/apache/curator/framework/schema/SchemaSet.java
index 65051fd..95a6ef9 100644
--- a/curator-framework/src/main/java/org/apache/curator/framework/schema/SchemaSet.java
+++ b/curator-framework/src/main/java/org/apache/curator/framework/schema/SchemaSet.java
@@ -29,6 +29,7 @@ import com.google.common.collect.Maps;
 import org.apache.curator.framework.CuratorFramework;
 import org.slf4j.Logger;
 import org.slf4j.LoggerFactory;
+import java.util.Collection;
 import java.util.Collections;
 import java.util.List;
 import java.util.Map;
@@ -126,6 +127,16 @@ public class SchemaSet
     }
 
     /**
+     * Return the schemas
+     *
+     * @return schemas
+     */
+    public Collection<Schema> getSchemas()
+    {
+        return schemas.values();
+    }
+
+    /**
      * Find the first matching schema for the path and return it
      *
      * @param path ZNode full path