public class InfluxDBReaderTask extends Object
| Modifier and Type | Field and Description |
|---|---|
private static int |
CONNECT_TIMEOUT_SECONDS_DEFAULT |
private int |
connTimeout |
private String |
database |
private String |
endpoint |
private static org.slf4j.Logger |
LOG |
private String |
password |
private String |
querySql |
private static int |
SOCKET_TIMEOUT_SECONDS_DEFAULT |
private int |
socketTimeout |
private String |
username |
| Constructor and Description |
|---|
InfluxDBReaderTask(Configuration configuration) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
String |
get(String url) |
private String |
getLastMinute() |
void |
post() |
private String |
post(String url,
Map<String,Object> params) |
private String |
post(String url,
Map<String,Object> params,
int connectTimeoutInMill,
int socketTimeoutInMill) |
private String |
post(String url,
String params) |
private String |
post(String url,
String params,
int connectTimeoutInMill,
int socketTimeoutInMill) |
void |
startRead(RecordSender recordSender,
TaskPluginCollector taskPluginCollector) |
private static final org.slf4j.Logger LOG
private static final int CONNECT_TIMEOUT_SECONDS_DEFAULT
private static final int SOCKET_TIMEOUT_SECONDS_DEFAULT
private String querySql
private final String database
private final String endpoint
private final String username
private final String password
private final int connTimeout
private final int socketTimeout
public InfluxDBReaderTask(Configuration configuration)
public void post()
public void destroy()
public void startRead(RecordSender recordSender, TaskPluginCollector taskPluginCollector)
private String post(String url, Map<String,Object> params, int connectTimeoutInMill, int socketTimeoutInMill) throws Exception
Exceptionprivate String post(String url, String params, int connectTimeoutInMill, int socketTimeoutInMill) throws Exception
Exceptionprivate String getLastMinute()
Copyright © 2021. All rights reserved.