public class InfluxDBReaderTask extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
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 |
| 构造器和说明 |
|---|
InfluxDBReaderTask(Configuration configuration) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 © 2022. All rights reserved.