-
- All Implemented Interfaces:
public class InfluxDBClientKotlinFactory.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static InfluxDBClientKotlinFactory.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final InfluxDBClientKotlincreate()Create an instance of the InfluxDB 2.x client that is configured via {@code influx2.properties}. final InfluxDBClientKotlincreate(String connectionString)Create an instance of the InfluxDB 2.x client. final InfluxDBClientKotlincreate(String url, String username, CharArray password)Create an instance of the InfluxDB 2.x reactive client. final InfluxDBClientKotlincreate(String url, CharArray token)Create an instance of the InfluxDB 2.x reactive client. final InfluxDBClientKotlincreate(String url, CharArray token, String org)Create an instance of the InfluxDB 2.x reactive client. final InfluxDBClientKotlincreate(String url, CharArray token, String org, String bucket)Create an instance of the InfluxDB 2.x reactive client. final InfluxDBClientKotlincreate(InfluxDBClientOptions options)Create an instance of the InfluxDB 2.x reactive client. -
-
Method Detail
-
create
final InfluxDBClientKotlin create()
Create an instance of the InfluxDB 2.x client that is configured via {@code influx2.properties}. The {@code influx2.properties} has to be located on classpath.
-
create
final InfluxDBClientKotlin create(String connectionString)
Create an instance of the InfluxDB 2.x client.
<p> The url could be a connection string with various configurations. For more info see: {@link InfluxDBClientOptions.Builder#connectionString(String)}. </p>- Parameters:
connectionString- connection string with various configurations.
-
create
final InfluxDBClientKotlin create(String url, String username, CharArray password)
Create an instance of the InfluxDB 2.x reactive client.
<p> The <i>username/password</i> auth is based on <a href="http://bit.ly/http-basic-auth">HTTP "Basic" authentication</a>. The authorization expires when the <a href="http://bit.ly/session-length">time-to-live (TTL)</a> (default 60 minutes) is reached and client produces {@link com.influxdb.exceptions.UnauthorizedException}. </p><p> The url could be a connection string with various configurations. For more info see: {@link InfluxDBClientOptions.Builder#connectionString(String)}. </p>- Parameters:
url- the url to connect to InfluxDB (required).username- the username to use in the basic authpassword- the password to use in the basic auth
-
create
final InfluxDBClientKotlin create(String url, CharArray token)
Create an instance of the InfluxDB 2.x reactive client.
<p> The url could be a connection string with various configurations. For more info see: {@link InfluxDBClientOptions.Builder#connectionString(String)}. </p>- Parameters:
url- the url to connect to InfluxDB (required).token- the token to use for the authorization
-
create
final InfluxDBClientKotlin create(String url, CharArray token, String org)
Create an instance of the InfluxDB 2.x reactive client.
<p> The url could be a connection string with various configurations. For more info see: {@link InfluxDBClientOptions.Builder#connectionString(String)}. </p>- Parameters:
url- the url to connect to InfluxDB (required).token- the token to use for the authorizationorg- the name of an organization
-
create
final InfluxDBClientKotlin create(String url, CharArray token, String org, String bucket)
Create an instance of the InfluxDB 2.x reactive client.
<p> The url could be a connection string with various configurations. For more info see: {@link InfluxDBClientOptions.Builder#connectionString(String)}. </p>- Parameters:
url- the url to connect to InfluxDB (required).token- the token to use for the authorizationorg- the name of an organizationbucket- the name of a bucket
-
create
final InfluxDBClientKotlin create(InfluxDBClientOptions options)
Create an instance of the InfluxDB 2.x reactive client.
- Parameters:
options- the connection configuration
-
-
-
-