public class TelemetryReporter extends Object
Modifier and Type | Field and Description |
---|---|
protected CommandExecutor |
commandExecutor |
protected Data |
data |
static long |
DEFAULT_INIT_REPORT_DELAY_SECONDS
Report after 5 minutes the first time so that we get an initial ping
quickly.
|
static long |
EXTENDED_INIT_REPORT_DELAY_SECONDS
Report after 3 hours for the first time so that other modules (e.g.
|
protected org.camunda.connect.spi.Connector<? extends org.camunda.connect.spi.ConnectorRequest<?>> |
httpConnector |
protected static TelemetryLogger |
LOG |
protected MetricsRegistry |
metricsRegistry |
protected long |
reportingIntervalInSeconds |
protected String |
telemetryEndpoint |
protected TelemetryRegistry |
telemetryRegistry |
protected int |
telemetryRequestRetries |
protected int |
telemetryRequestTimeout |
protected TelemetrySendingTask |
telemetrySendingTask |
protected Timer |
timer |
Constructor and Description |
---|
TelemetryReporter(CommandExecutor commandExecutor,
String telemetryEndpoint,
int telemetryRequestRetries,
long telemetryReportingPeriod,
Data data,
org.camunda.connect.spi.Connector<? extends org.camunda.connect.spi.ConnectorRequest<?>> httpConnector,
TelemetryRegistry telemetryRegistry,
MetricsRegistry metricsRegistry,
int telemetryRequestTimeout) |
Modifier and Type | Method and Description |
---|---|
org.camunda.connect.spi.Connector<? extends org.camunda.connect.spi.ConnectorRequest<?>> |
getHttpConnector() |
long |
getInitialReportingDelaySeconds() |
long |
getReportingIntervalInSeconds() |
String |
getTelemetryEndpoint() |
TelemetrySendingTask |
getTelemetrySendingTask() |
protected void |
initTelemetrySendingTask(boolean sendInitialMessage) |
boolean |
isScheduled() |
void |
reportNow() |
void |
reschedule(boolean sendInitialMessage) |
void |
setTelemetrySendingTask(TelemetrySendingTask telemetrySendingTask) |
void |
start(boolean sendInitialMessage) |
void |
stop() |
void |
stop(boolean report) |
protected static final TelemetryLogger LOG
protected long reportingIntervalInSeconds
public static long DEFAULT_INIT_REPORT_DELAY_SECONDS
public static long EXTENDED_INIT_REPORT_DELAY_SECONDS
protected TelemetrySendingTask telemetrySendingTask
protected Timer timer
protected CommandExecutor commandExecutor
protected String telemetryEndpoint
protected int telemetryRequestRetries
protected Data data
protected org.camunda.connect.spi.Connector<? extends org.camunda.connect.spi.ConnectorRequest<?>> httpConnector
protected TelemetryRegistry telemetryRegistry
protected MetricsRegistry metricsRegistry
protected int telemetryRequestTimeout
public TelemetryReporter(CommandExecutor commandExecutor, String telemetryEndpoint, int telemetryRequestRetries, long telemetryReportingPeriod, Data data, org.camunda.connect.spi.Connector<? extends org.camunda.connect.spi.ConnectorRequest<?>> httpConnector, TelemetryRegistry telemetryRegistry, MetricsRegistry metricsRegistry, int telemetryRequestTimeout)
protected void initTelemetrySendingTask(boolean sendInitialMessage)
public void start(boolean sendInitialMessage)
public void reschedule(boolean sendInitialMessage)
public void stop()
public void stop(boolean report)
public void reportNow()
public boolean isScheduled()
public long getReportingIntervalInSeconds()
public TelemetrySendingTask getTelemetrySendingTask()
public void setTelemetrySendingTask(TelemetrySendingTask telemetrySendingTask)
public String getTelemetryEndpoint()
public org.camunda.connect.spi.Connector<? extends org.camunda.connect.spi.ConnectorRequest<?>> getHttpConnector()
public long getInitialReportingDelaySeconds()
Copyright © 2022. All rights reserved.