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 2022/10/27 09:17:07 UTC
[incubator-streampipes] 01/02: [hotfix] Extend constructor of ts storage
This is an automated email from the ASF dual-hosted git repository.
riemer pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-streampipes.git
commit 40fcd14458392c3515ecb142cc2e4cfb074cb913
Author: Dominik Riemer <do...@gmail.com>
AuthorDate: Thu Oct 27 11:16:34 2022 +0200
[hotfix] Extend constructor of ts storage
---
.../streampipes/dataexplorer/commons/influx/InfluxStore.java | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/streampipes-data-explorer-commons/src/main/java/org/apache/streampipes/dataexplorer/commons/influx/InfluxStore.java b/streampipes-data-explorer-commons/src/main/java/org/apache/streampipes/dataexplorer/commons/influx/InfluxStore.java
index 429f62eda..3d33e1d3e 100644
--- a/streampipes-data-explorer-commons/src/main/java/org/apache/streampipes/dataexplorer/commons/influx/InfluxStore.java
+++ b/streampipes-data-explorer-commons/src/main/java/org/apache/streampipes/dataexplorer/commons/influx/InfluxStore.java
@@ -51,11 +51,8 @@ public class InfluxStore {
Map<String, String> sanitizedRuntimeNames = new HashMap<>();
public InfluxStore(DataLakeMeasure measure,
- SpConfig configStore) throws SpRuntimeException {
-
+ InfluxConnectionSettings settings) {
this.measure = measure;
- InfluxConnectionSettings settings = InfluxConnectionSettings.from(configStore);
-
// store sanitized target property runtime names in local variable
measure.getEventSchema()
.getEventProperties()
@@ -65,6 +62,11 @@ public class InfluxStore {
connect(settings);
}
+ public InfluxStore(DataLakeMeasure measure,
+ SpConfig configStore) throws SpRuntimeException {
+ this(measure, InfluxConnectionSettings.from(configStore));
+ }
+
/**
* Connects to the InfluxDB Server, sets the database and initializes the batch-behaviour
*