[1/2] camel git commit: fix using MasterComponent

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[1/2] camel git commit: fix using MasterComponent

davsclaus-2
Repository: camel
Updated Branches:
  refs/heads/camel-2.19.x a32d23124 -> 60a6bf951
  refs/heads/master 68bd833a6 -> a1352b262


fix using MasterComponent


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

Branch: refs/heads/master
Commit: a1352b262c795115049710c74b51e2d3d4c08f89
Parents: 68bd833
Author: itarius <[hidden email]>
Authored: Fri Aug 11 22:20:09 2017 +0300
Committer: Claus Ibsen <[hidden email]>
Committed: Sun Aug 13 01:45:27 2017 +0200

----------------------------------------------------------------------
 .../apache/camel/component/zookeepermaster/MasterConsumer.java   | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/a1352b26/components/camel-zookeeper-master/src/main/java/org/apache/camel/component/zookeepermaster/MasterConsumer.java
----------------------------------------------------------------------
diff --git a/components/camel-zookeeper-master/src/main/java/org/apache/camel/component/zookeepermaster/MasterConsumer.java b/components/camel-zookeeper-master/src/main/java/org/apache/camel/component/zookeepermaster/MasterConsumer.java
index dcd5229..ab0d5c6 100644
--- a/components/camel-zookeeper-master/src/main/java/org/apache/camel/component/zookeepermaster/MasterConsumer.java
+++ b/components/camel-zookeeper-master/src/main/java/org/apache/camel/component/zookeepermaster/MasterConsumer.java
@@ -90,6 +90,10 @@ public class MasterConsumer extends DefaultConsumer {
         String path = endpoint.getComponent().getCamelClusterPath(endpoint.getGroupName());
         this.groupListener = new ZookeeperGroupListenerSupport(path, endpoint, onLockOwned(), onDisconnected());
         this.groupListener.setCamelContext(endpoint.getCamelContext());
+        this.groupListener.setZooKeeperUrl(endpoint.getComponent().getZooKeeperUrl());
+        this.groupListener.setZooKeeperPassword(endpoint.getComponent().getZooKeeperPassword());
+        this.groupListener.setCurator(endpoint.getComponent().getCurator());
+        this.groupListener.setMaximumConnectionTimeout(endpoint.getComponent().getMaximumConnectionTimeout());
         ServiceHelper.startService(groupListener);
 
         LOG.info("Attempting to become master for endpoint: " + endpoint + " in " + endpoint.getCamelContext() + " with singletonID: " + endpoint.getGroupName());

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[2/2] camel git commit: fix using MasterComponent

davsclaus-2
fix using MasterComponent


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

Branch: refs/heads/camel-2.19.x
Commit: 60a6bf951324302eea1c401639d7e89663a48dc5
Parents: a32d231
Author: itarius <[hidden email]>
Authored: Fri Aug 11 22:20:09 2017 +0300
Committer: Claus Ibsen <[hidden email]>
Committed: Sun Aug 13 01:47:19 2017 +0200

----------------------------------------------------------------------
 .../apache/camel/component/zookeepermaster/MasterConsumer.java   | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/camel/blob/60a6bf95/components/camel-zookeeper-master/src/main/java/org/apache/camel/component/zookeepermaster/MasterConsumer.java
----------------------------------------------------------------------
diff --git a/components/camel-zookeeper-master/src/main/java/org/apache/camel/component/zookeepermaster/MasterConsumer.java b/components/camel-zookeeper-master/src/main/java/org/apache/camel/component/zookeepermaster/MasterConsumer.java
index dcd5229..ab0d5c6 100644
--- a/components/camel-zookeeper-master/src/main/java/org/apache/camel/component/zookeepermaster/MasterConsumer.java
+++ b/components/camel-zookeeper-master/src/main/java/org/apache/camel/component/zookeepermaster/MasterConsumer.java
@@ -90,6 +90,10 @@ public class MasterConsumer extends DefaultConsumer {
         String path = endpoint.getComponent().getCamelClusterPath(endpoint.getGroupName());
         this.groupListener = new ZookeeperGroupListenerSupport(path, endpoint, onLockOwned(), onDisconnected());
         this.groupListener.setCamelContext(endpoint.getCamelContext());
+        this.groupListener.setZooKeeperUrl(endpoint.getComponent().getZooKeeperUrl());
+        this.groupListener.setZooKeeperPassword(endpoint.getComponent().getZooKeeperPassword());
+        this.groupListener.setCurator(endpoint.getComponent().getCurator());
+        this.groupListener.setMaximumConnectionTimeout(endpoint.getComponent().getMaximumConnectionTimeout());
         ServiceHelper.startService(groupListener);
 
         LOG.info("Attempting to become master for endpoint: " + endpoint + " in " + endpoint.getCamelContext() + " with singletonID: " + endpoint.getGroupName());

Loading...