Class TelemetrySendingTask
java.lang.Object
java.util.TimerTask
org.camunda.bpm.engine.impl.telemetry.reporter.TelemetrySendingTask
- All Implemented Interfaces:
Runnable
-
Field Summary
Modifier and TypeFieldDescriptionprotected CommandExecutor
protected org.camunda.connect.spi.Connector<? extends org.camunda.connect.spi.ConnectorRequest<?>>
protected static final TelemetryLogger
protected MetricsRegistry
protected TelemetryDataImpl
protected String
protected TelemetryRegistry
protected int
protected int
protected static final String
-
Constructor Summary
ConstructorDescriptionTelemetrySendingTask
(CommandExecutor commandExecutor, String telemetryEndpoint, int telemetryRequestRetries, TelemetryDataImpl data, org.camunda.connect.spi.Connector<? extends org.camunda.connect.spi.ConnectorRequest<?>> httpConnector, TelemetryRegistry telemetryRegistry, MetricsRegistry metricsRegistry, int telemetryRequestTimeout) -
Method Summary
Modifier and TypeMethodDescriptioncalculateMetrics
(boolean reset, boolean addLegacyNames) fetchAndResetCommandCounts
(boolean reset) protected boolean
isSuccessStatusCode
(int statusCode) protected boolean
protected void
performDataSend
(Runnable runnable) protected InternalsImpl
resolveDynamicData
(boolean reset, boolean addLegacyNames) protected void
restoreDynamicData
(InternalsImpl internals) void
run()
protected void
sendData
(TelemetryDataImpl dataToSend) updateAndSendData
(boolean sendData, boolean addLegacyNames) void
protected void
protected Boolean
validateData
(TelemetryDataImpl dataToSend) Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
-
Field Details
-
METRICS_TO_REPORT
-
LOG
-
UUID4_PATTERN
- See Also:
-
commandExecutor
-
telemetryEndpoint
-
staticData
-
httpConnector
protected org.camunda.connect.spi.Connector<? extends org.camunda.connect.spi.ConnectorRequest<?>> httpConnector -
telemetryRequestRetries
protected int telemetryRequestRetries -
telemetryRegistry
-
metricsRegistry
-
telemetryRequestTimeout
protected int telemetryRequestTimeout
-
-
Constructor Details
-
TelemetrySendingTask
public TelemetrySendingTask(CommandExecutor commandExecutor, String telemetryEndpoint, int telemetryRequestRetries, TelemetryDataImpl data, org.camunda.connect.spi.Connector<? extends org.camunda.connect.spi.ConnectorRequest<?>> httpConnector, TelemetryRegistry telemetryRegistry, MetricsRegistry metricsRegistry, int telemetryRequestTimeout)
-
-
Method Details
-
run
public void run() -
updateAndSendData
-
updateStaticData
protected void updateStaticData() -
updateDataCollectionStartDate
public void updateDataCollectionStartDate() -
isTelemetryEnabled
protected boolean isTelemetryEnabled() -
sendData
-
isSuccessStatusCode
protected boolean isSuccessStatusCode(int statusCode) - Returns:
- true if status code is 2xx
-
restoreDynamicData
-
resolveDynamicData
-
fetchAndResetCommandCounts
-
calculateMetrics
-
performDataSend
-
validateData
-