Class TelemetryReporter
java.lang.Object
org.camunda.bpm.engine.impl.telemetry.reporter.TelemetryReporter
-
Field Summary
Modifier and TypeFieldDescriptionprotected CommandExecutor
protected TelemetryDataImpl
static long
Report after 5 minutes the first time so that we get an initial ping quickly.static long
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<?>>
protected static final TelemetryLogger
protected MetricsRegistry
protected long
protected String
protected TelemetryRegistry
protected int
protected int
protected TelemetrySendingTask
protected Timer
-
Constructor Summary
ConstructorDescriptionTelemetryReporter
(CommandExecutor commandExecutor, String telemetryEndpoint, int telemetryRequestRetries, long telemetryReportingPeriod, TelemetryDataImpl data, org.camunda.connect.spi.Connector<? extends org.camunda.connect.spi.ConnectorRequest<?>> httpConnector, TelemetryRegistry telemetryRegistry, MetricsRegistry metricsRegistry, int telemetryRequestTimeout) -
Method Summary
Modifier and TypeMethodDescriptionorg.camunda.connect.spi.Connector<? extends org.camunda.connect.spi.ConnectorRequest<?>>
long
long
protected void
boolean
void
void
void
setTelemetrySendingTask
(TelemetrySendingTask telemetrySendingTask) void
start()
void
stop()
void
stop
(boolean report)
-
Field Details
-
LOG
-
reportingIntervalInSeconds
protected long reportingIntervalInSeconds -
DEFAULT_INIT_REPORT_DELAY_SECONDS
public static long DEFAULT_INIT_REPORT_DELAY_SECONDSReport after 5 minutes the first time so that we get an initial ping quickly. 5 minutes delay so that other modules (e.g. those collecting the app server name) can contribute their data. -
EXTENDED_INIT_REPORT_DELAY_SECONDS
public static long EXTENDED_INIT_REPORT_DELAY_SECONDSReport after 3 hours for the first time so that other modules (e.g. those collecting the app server name) can contribute their data and test cases which accidentally enable reporting are very unlikely to send data. -
telemetrySendingTask
-
timer
-
commandExecutor
-
telemetryEndpoint
-
telemetryRequestRetries
protected int telemetryRequestRetries -
data
-
httpConnector
protected org.camunda.connect.spi.Connector<? extends org.camunda.connect.spi.ConnectorRequest<?>> httpConnector -
telemetryRegistry
-
metricsRegistry
-
telemetryRequestTimeout
protected int telemetryRequestTimeout
-
-
Constructor Details
-
TelemetryReporter
public TelemetryReporter(CommandExecutor commandExecutor, String telemetryEndpoint, int telemetryRequestRetries, long telemetryReportingPeriod, TelemetryDataImpl data, org.camunda.connect.spi.Connector<? extends org.camunda.connect.spi.ConnectorRequest<?>> httpConnector, TelemetryRegistry telemetryRegistry, MetricsRegistry metricsRegistry, int telemetryRequestTimeout)
-
-
Method Details
-
initTelemetrySendingTask
protected void initTelemetrySendingTask() -
start
public void start() -
reschedule
public void reschedule() -
stop
public void stop() -
stop
public void stop(boolean report) -
reportNow
public void reportNow() -
isScheduled
public boolean isScheduled() -
getReportingIntervalInSeconds
public long getReportingIntervalInSeconds() -
getTelemetrySendingTask
-
setTelemetrySendingTask
-
getTelemetryEndpoint
-
getHttpConnector
public org.camunda.connect.spi.Connector<? extends org.camunda.connect.spi.ConnectorRequest<?>> getHttpConnector() -
getInitialReportingDelaySeconds
public long getInitialReportingDelaySeconds()
-