public enum InfluxDBFactory extends Enum<InfluxDBFactory>
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
static InfluxDB |
connect(String url)
Create a connection to a InfluxDB.
|
static InfluxDB |
connect(String url,
okhttp3.OkHttpClient.Builder client)
Create a connection to a InfluxDB.
|
static InfluxDB |
connect(String url,
String username,
String password)
Create a connection to a InfluxDB.
|
static InfluxDB |
connect(String url,
String username,
String password,
okhttp3.OkHttpClient.Builder client)
Create a connection to a InfluxDB.
|
static InfluxDB |
connect(String url,
String username,
String password,
okhttp3.OkHttpClient.Builder client,
InfluxDB.ResponseFormat responseFormat)
Create a connection to a InfluxDB.
|
static InfluxDBFactory |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static InfluxDBFactory[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final InfluxDBFactory INSTANCE
public static InfluxDBFactory[] values()
for (InfluxDBFactory c : InfluxDBFactory.values()) System.out.println(c);
public static InfluxDBFactory valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static InfluxDB connect(String url)
url
- the url to connect to.public static InfluxDB connect(String url, String username, String password)
url
- the url to connect to.username
- the username which is used to authorize against the influxDB instance.password
- the password for the username which is used to authorize against the influxDB
instance.public static InfluxDB connect(String url, okhttp3.OkHttpClient.Builder client)
url
- the url to connect to.client
- the HTTP client to usepublic static InfluxDB connect(String url, String username, String password, okhttp3.OkHttpClient.Builder client)
url
- the url to connect to.username
- the username which is used to authorize against the influxDB instance.password
- the password for the username which is used to authorize against the influxDB
instance.client
- the HTTP client to usepublic static InfluxDB connect(String url, String username, String password, okhttp3.OkHttpClient.Builder client, InfluxDB.ResponseFormat responseFormat)
url
- the url to connect to.username
- the username which is used to authorize against the influxDB instance.password
- the password for the username which is used to authorize against the influxDB
instance.client
- the HTTP client to useresponseFormat
- The ResponseFormat
to use for response from InfluxDB serverCopyright © 2020. All rights reserved.