InfluxDB.ConsistencyLevel, InfluxDB.LogLevel| Constructor and Description |
|---|
InfluxDBImpl(String url,
String username,
String password,
retrofit.client.Client client) |
| Modifier and Type | Method and Description |
|---|---|
void |
createDatabase(String name)
Create a new Database.
|
void |
deleteDatabase(String name)
Delete a database.
|
List<String> |
describeDatabases()
Describe all available databases.
|
void |
disableBatch()
Disable Batching.
|
InfluxDB |
enableBatch(int actions,
int flushDuration,
TimeUnit flushDurationTimeUnit)
Enable Batching of single Point writes to speed up writes significant.
|
boolean |
isBatchEnabled()
Returns whether Batching is enabled.
|
Pong |
ping()
Ping this influxDB-
|
QueryResult |
query(Query query)
/**
Execute a query agains a database.
|
QueryResult |
query(Query query,
TimeUnit timeUnit)
Execute a query agains a database.
|
InfluxDB |
setLogLevel(InfluxDB.LogLevel logLevel)
Set the loglevel which is used for REST related actions.
|
String |
version()
Return the version of the connected influxDB Server.
|
void |
write(BatchPoints batchPoints)
Write a set of Points to the influxdb database with the new (>= 0.9.0rc32) lineprotocol.
|
void |
write(String database,
String retentionPolicy,
InfluxDB.ConsistencyLevel consistency,
List<String> records)
Write a set of Points to the influxdb database with the list of string records.
|
void |
write(String database,
String retentionPolicy,
InfluxDB.ConsistencyLevel consistency,
String records)
Write a set of Points to the influxdb database with the string records.
|
void |
write(String database,
String retentionPolicy,
Point point)
Write a single Point to the database.
|
public InfluxDB setLogLevel(InfluxDB.LogLevel logLevel)
InfluxDBsetLogLevel in interface InfluxDBlogLevel - the loglevel to set.public InfluxDB enableBatch(int actions, int flushDuration, TimeUnit flushDurationTimeUnit)
InfluxDBenableBatch in interface InfluxDBactions - the number of actions to collectflushDuration - the time to wait at most.public void disableBatch()
InfluxDBdisableBatch in interface InfluxDBpublic boolean isBatchEnabled()
InfluxDBisBatchEnabled in interface InfluxDBpublic String version()
InfluxDBpublic void write(String database, String retentionPolicy, Point point)
InfluxDBpublic void write(BatchPoints batchPoints)
InfluxDBpublic void write(String database, String retentionPolicy, InfluxDB.ConsistencyLevel consistency, String records)
InfluxDBpublic void write(String database, String retentionPolicy, InfluxDB.ConsistencyLevel consistency, List<String> records)
InfluxDBpublic QueryResult query(Query query)
public QueryResult query(Query query, TimeUnit timeUnit)
public void createDatabase(String name)
createDatabase in interface InfluxDBname - the name of the new database.public void deleteDatabase(String name)
deleteDatabase in interface InfluxDBname - the name of the database to delete.public List<String> describeDatabases()
describeDatabases in interface InfluxDBCopyright © 2016. All rights reserved.