You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by ri...@apache.org on 2021/07/21 11:05:49 UTC

[incubator-streampipes-extensions] branch STREAMPIPES-319 updated: [STREAMPIPES-319] Modify Flink config

This is an automated email from the ASF dual-hosted git repository.

riemer pushed a commit to branch STREAMPIPES-319
in repository https://gitbox.apache.org/repos/asf/incubator-streampipes-extensions.git


The following commit(s) were added to refs/heads/STREAMPIPES-319 by this push:
     new af47b03  [STREAMPIPES-319] Modify Flink config
af47b03 is described below

commit af47b03f49d3900dd280f06f0251794b6175a925
Author: Dominik Riemer <ri...@fzi.de>
AuthorDate: Wed Jul 21 13:05:34 2021 +0200

    [STREAMPIPES-319] Modify Flink config
---
 .../src/main/java/org/apache/streampipes/pe/flink/config/Config.java   | 3 ++-
 .../apache/streampipes/processor/geo/flink/config/GeoFlinkConfig.java  | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/streampipes-pipeline-elements-all-flink/src/main/java/org/apache/streampipes/pe/flink/config/Config.java b/streampipes-pipeline-elements-all-flink/src/main/java/org/apache/streampipes/pe/flink/config/Config.java
index b440204..e807572 100644
--- a/streampipes-pipeline-elements-all-flink/src/main/java/org/apache/streampipes/pe/flink/config/Config.java
+++ b/streampipes-pipeline-elements-all-flink/src/main/java/org/apache/streampipes/pe/flink/config/Config.java
@@ -17,6 +17,7 @@
  */
 package org.apache.streampipes.pe.flink.config;
 
+import org.apache.streampipes.svcdiscovery.SpServiceDiscovery;
 import org.apache.streampipes.svcdiscovery.api.SpConfig;
 import org.apache.streampipes.container.model.PeConfig;
 
@@ -30,7 +31,7 @@ public enum Config implements PeConfig {
   private final static String SERVICE_CONTAINER_NAME = "pipeline-elements-all-flink";
 
   Config() {
-    config = SpConfig.getSpConfig(SERVICE_ID);
+    config = SpServiceDiscovery.getSpConfig(SERVICE_ID);
     config.register(ConfigKeys.HOST, SERVICE_CONTAINER_NAME, "Data processor host");
     config.register(ConfigKeys.PORT, 8090, "Data processor port");
     config.register(ConfigKeys.SERVICE_NAME, SERVICE_NAME, "Data processor service name");
diff --git a/streampipes-processors-geo-flink/src/main/java/org/apache/streampipes/processor/geo/flink/config/GeoFlinkConfig.java b/streampipes-processors-geo-flink/src/main/java/org/apache/streampipes/processor/geo/flink/config/GeoFlinkConfig.java
index 0f704ca..498bfb1 100644
--- a/streampipes-processors-geo-flink/src/main/java/org/apache/streampipes/processor/geo/flink/config/GeoFlinkConfig.java
+++ b/streampipes-processors-geo-flink/src/main/java/org/apache/streampipes/processor/geo/flink/config/GeoFlinkConfig.java
@@ -18,6 +18,7 @@
 
 package org.apache.streampipes.processor.geo.flink.config;
 
+import org.apache.streampipes.svcdiscovery.SpServiceDiscovery;
 import org.apache.streampipes.svcdiscovery.api.SpConfig;
 import org.apache.streampipes.container.model.PeConfig;
 
@@ -31,7 +32,7 @@ public enum GeoFlinkConfig implements PeConfig {
   private final static String service_name = "Processors Geo Flink";
   private final static String service_container_name = "processors-geo-flink";
   GeoFlinkConfig() {
-    config = SpConfig.getSpConfig(service_id);
+    config = SpServiceDiscovery.getSpConfig(service_id);
 
     config.register(ConfigKeys.HOST, service_container_name, "Hostname for the geo flink component");
     config.register(ConfigKeys.PORT, 8090, "Port for the geo flink component");