Class InfluxConnector

java.lang.Object
io.openems.shared.influxdb.InfluxConnector

public class InfluxConnector extends Object
  • Field Details

  • Constructor Details

    • InfluxConnector

      public InfluxConnector(String componentId, QueryLanguageConfig queryLanguage, URI url, String org, String apiKey, String bucket, String tag, boolean isReadOnly, int poolSize, int maxQueueSize, Consumer<com.influxdb.exceptions.BadRequestException> onWriteError, boolean safeWrite, com.influxdb.client.write.WriteParameters... parameters)
      The Constructor.
      Parameters:
      componentId - ID of the calling OpenEMS Component
      queryLanguage - A QueryLanguageConfig
      url - URL of the InfluxDB-Server (http://ip:port)
      org - The organisation; '-' for InfluxDB v1
      apiKey - The apiKey; 'username:password' for InfluxDB v1
      bucket - The bucket name; 'database/retentionPolicy' for InfluxDB v1
      tag - The InfluxDB tag
      isReadOnly - If true, a 'Read-Only-Mode' is activated, where no data is actually written to the database
      poolSize - the number of threads dedicated to handle the tasks
      maxQueueSize - queue size limit for executor
      onWriteError - A consumer for write-errors
      safeWrite - Adds back points to the queue if a write fails
      parameters - the WriteParameters to create a MergePointsWorker for. All later used WriteParameters need to be passed here
    • InfluxConnector

      public InfluxConnector(String componentId, QueryLanguageConfig queryLanguage, URI url, String org, String apiKey, String bucket, String tag, boolean isReadOnly, int poolSize, int maxQueueSize, Consumer<com.influxdb.exceptions.BadRequestException> onWriteError, com.influxdb.client.write.WriteParameters... parameters)
  • Method Details