curator-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From randg...@apache.org
Subject curator git commit: Added getSchemas()
Date Wed, 04 May 2016 21:58:13 GMT
Repository: curator
Updated Branches:
  refs/heads/CURATOR-322 32965e53b -> 762472588


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-322
Commit: 762472588b03ff9084d81e6fa1749b88dfaf572b
Parents: 32965e5
Author: randgalt <randgalt@apache.org>
Authored: Wed May 4 16:58:07 2016 -0500
Committer: randgalt <randgalt@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


Mime
View raw message