public interface InfluxDB
Modifier and Type | Interface and Description |
---|---|
static class |
InfluxDB.ConsistencyLevel
ConsistencyLevel for write Operations.
|
static class |
InfluxDB.LogLevel
Controls the level of logging of the REST layer.
|
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.
|
InfluxDB setLogLevel(InfluxDB.LogLevel logLevel)
logLevel
- the loglevel to set.InfluxDB enableBatch(int actions, int flushDuration, TimeUnit flushDurationTimeUnit)
actions
- the number of actions to collectflushDuration
- the time to wait at most.flushDurationTimeUnit
- void disableBatch()
boolean isBatchEnabled()
Pong ping()
String version()
void write(String database, String retentionPolicy, Point point)
database
- the database to write to.retentionPolicy
- the retentionPolicy to use.point
- The point to writevoid write(BatchPoints batchPoints)
batchPoints
- void write(String database, String retentionPolicy, InfluxDB.ConsistencyLevel consistency, String records)
records
- void write(String database, String retentionPolicy, InfluxDB.ConsistencyLevel consistency, List<String> records)
records
- QueryResult query(Query query)
query
- the query to execute.QueryResult query(Query query, TimeUnit timeUnit)
query
- the query to execute.timeUnit
- the time unit of the results.void createDatabase(String name)
name
- the name of the new database.void deleteDatabase(String name)
name
- the name of the database to delete.Copyright © 2016. All rights reserved.