curator-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From randg...@apache.org
Subject [04/35] curator git commit: Log the schema at start
Date Thu, 19 May 2016 19:02:19 GMT
Log the schema at start


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

Branch: refs/heads/CURATOR-3.0
Commit: df3c1c4b059fc9c930716f91230dbe8a466fef08
Parents: f25a812
Author: randgalt <randgalt@apache.org>
Authored: Mon May 2 16:12:47 2016 -0500
Committer: randgalt <randgalt@apache.org>
Committed: Mon May 2 16:12:47 2016 -0500

----------------------------------------------------------------------
 .../apache/curator/framework/CuratorFrameworkFactory.java   | 9 ++++++++-
 .../apache/curator/framework/imps/CuratorFrameworkImpl.java | 2 ++
 2 files changed, 10 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/curator/blob/df3c1c4b/curator-framework/src/main/java/org/apache/curator/framework/CuratorFrameworkFactory.java
----------------------------------------------------------------------
diff --git a/curator-framework/src/main/java/org/apache/curator/framework/CuratorFrameworkFactory.java
b/curator-framework/src/main/java/org/apache/curator/framework/CuratorFrameworkFactory.java
index 5aed199..c17534f 100644
--- a/curator-framework/src/main/java/org/apache/curator/framework/CuratorFrameworkFactory.java
+++ b/curator-framework/src/main/java/org/apache/curator/framework/CuratorFrameworkFactory.java
@@ -144,7 +144,14 @@ public class CuratorFrameworkFactory
         private boolean useContainerParentsIfAvailable = true;
         private ConnectionStateErrorPolicy connectionStateErrorPolicy = new StandardConnectionStateErrorPolicy();
         private ConnectionHandlingPolicy connectionHandlingPolicy = Boolean.getBoolean("curator-use-classic-connection-handling")
? new ClassicConnectionHandlingPolicy() : new StandardConnectionHandlingPolicy();
-        private SchemaSet schemaSet = new SchemaSet();
+        private SchemaSet schemaSet = new SchemaSet()
+        {
+            @Override
+            public String toDocumentation()
+            {
+                return "Default schema";
+            }
+        };
 
         /**
          * Apply the current values and build a new CuratorFramework

http://git-wip-us.apache.org/repos/asf/curator/blob/df3c1c4b/curator-framework/src/main/java/org/apache/curator/framework/imps/CuratorFrameworkImpl.java
----------------------------------------------------------------------
diff --git a/curator-framework/src/main/java/org/apache/curator/framework/imps/CuratorFrameworkImpl.java
b/curator-framework/src/main/java/org/apache/curator/framework/imps/CuratorFrameworkImpl.java
index 739f07e..f5ae213 100644
--- a/curator-framework/src/main/java/org/apache/curator/framework/imps/CuratorFrameworkImpl.java
+++ b/curator-framework/src/main/java/org/apache/curator/framework/imps/CuratorFrameworkImpl.java
@@ -317,6 +317,8 @@ public class CuratorFrameworkImpl implements CuratorFramework
             });
 
             ensembleTracker.start();
+
+            log.info(schemaSet.toDocumentation());
         }
         catch ( Exception e )
         {


Mime
View raw message