Class InfluxDBConnector

java.lang.Object
com.influxdb.client.osgi.InfluxDBConnector

public class InfluxDBConnector extends Object
InfluxDB connector managing InfluxDBClient OSGi service.

Service is used to define an InfluxDB connection. A InfluxDBClient service is registered by the connector, and it can be referenced by any custom OSGi component.

  1. InfluxDB V2 client is created if token is set.
  2. InfluxDB V1 (V1.7+) client is created if token is not set but database.
  3. InfluxDB V2 client is created (by username and password) otherwise.

The following connector properties are added to InfluxDB client too: organization, bucket, database, url and alias.

  • Constructor Details

    • InfluxDBConnector

      public InfluxDBConnector()