InfluxDB.ConsistencyLevel, InfluxDB.LogLevel
Constructor and Description |
---|
InfluxDBImpl(String url,
String username,
String password)
Constructor which should only be used from the InfluxDBFactory.
|
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.
|
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,
Point point)
Write a single Point to the database.
|
public InfluxDB setLogLevel(InfluxDB.LogLevel logLevel)
InfluxDB
setLogLevel
in interface InfluxDB
logLevel
- the loglevel to set.public InfluxDB enableBatch(int actions, int flushDuration, TimeUnit flushDurationTimeUnit)
InfluxDB
enableBatch
in interface InfluxDB
actions
- the number of actions to collectflushDuration
- the time to wait at most.public void disableBatch()
InfluxDB
disableBatch
in interface InfluxDB
public String version()
InfluxDB
public void write(String database, String retentionPolicy, Point point)
InfluxDB
public void write(BatchPoints batchPoints)
InfluxDB
public QueryResult query(Query query)
public QueryResult query(Query query, TimeUnit timeUnit)
public void createDatabase(String name)
createDatabase
in interface InfluxDB
name
- the name of the new database.public void deleteDatabase(String name)
deleteDatabase
in interface InfluxDB
name
- the name of the database to delete.public List<String> describeDatabases()
describeDatabases
in interface InfluxDB
Copyright © 2015. All rights reserved.