public class InfluxDb09Driver extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
InfluxDb09Driver.InfluxException |
| Constructor and Description |
|---|
InfluxDb09Driver(IHttpClientComponent httpClient,
String endpoint,
String username,
String password) |
| Modifier and Type | Method and Description |
|---|---|
protected <T> void |
handleError(IAsyncResult<IHttpClientResponse> result,
IAsyncResultHandler<T> handler) |
void |
listDatabases(IAsyncResultHandler<List<String>> handler)
List all databases
|
void |
write(String jsonDocument,
String encoding,
IAsyncHandler<InfluxDb09Driver.InfluxException> failureHandler)
Simple write to "/write".
|
public InfluxDb09Driver(IHttpClientComponent httpClient, String endpoint, String username, String password)
public void write(String jsonDocument, String encoding, IAsyncHandler<InfluxDb09Driver.InfluxException> failureHandler)
jsonDocument - document to write, as stringencoding - encoding of stringfailureHandler - handler in case of failurepublic void listDatabases(IAsyncResultHandler<List<String>> handler)
handler - the result handlerprotected <T> void handleError(IAsyncResult<IHttpClientResponse> result, IAsyncResultHandler<T> handler)
Copyright © 2015 JBoss, a division of Red Hat. All rights reserved.