Modifier and Type | Class and Description |
---|---|
protected class |
TelemetrySendingTask.CalculateUniqueUserCountCmd |
protected class |
TelemetrySendingTask.SendInitialMsgCmd |
Modifier and Type | Field and Description |
---|---|
protected CommandExecutor |
commandExecutor |
protected org.camunda.connect.spi.Connector<? extends org.camunda.connect.spi.ConnectorRequest<?>> |
httpConnector |
protected static TelemetryLogger |
LOG |
protected static Set<String> |
METRICS_TO_REPORT |
protected MetricsRegistry |
metricsRegistry |
protected boolean |
sendInitialMessage |
protected Data |
staticData |
protected static String |
TELEMETRY_INIT_MESSAGE_SENT_NAME |
protected String |
telemetryEndpoint |
protected TelemetryRegistry |
telemetryRegistry |
protected int |
telemetryRequestRetries |
protected int |
telemetryRequestTimeout |
protected static String |
UUID4_PATTERN |
Constructor and Description |
---|
TelemetrySendingTask(CommandExecutor commandExecutor,
String telemetryEndpoint,
int telemetryRequestRetries,
Data data,
org.camunda.connect.spi.Connector<? extends org.camunda.connect.spi.ConnectorRequest<?>> httpConnector,
TelemetryRegistry telemetryRegistry,
MetricsRegistry metricsRegistry,
int telemetryRequestTimeout,
boolean sendInitialMessage) |
Modifier and Type | Method and Description |
---|---|
protected long |
calculateMetricCount(ManagementService managementService,
Date startReportTime,
Date currentTime,
String metricName) |
protected Map<String,Metric> |
calculateMetrics() |
protected long |
calculateUniqueUserCount(CommandContext commandContext,
HistoryLevel historyLevel,
Date currentTime) |
protected void |
clearDynamicData() |
protected Map<String,Command> |
fetchAndResetCommandCounts() |
protected boolean |
isSuccessStatusCode(int statusCode) |
protected boolean |
isTelemetryEnabled() |
protected void |
performDataSend(Boolean isInitialMessage,
Runnable runnable) |
protected Date |
previousDay(Date date) |
protected Internals |
resolveDynamicData() |
protected void |
restoreDynamicData(Internals internals) |
void |
run() |
protected void |
sendData(Data dataToSend,
boolean isInitialMessage) |
protected void |
sendInitialMessage() |
protected void |
sendInitialMessage(CommandContext commandContext) |
protected void |
updateStaticData() |
protected void |
updateTelemetryFlag(boolean enabled) |
protected Boolean |
validateData(Data dataToSend) |
cancel, scheduledExecutionTime
protected static final TelemetryLogger LOG
protected static final String TELEMETRY_INIT_MESSAGE_SENT_NAME
protected static final String UUID4_PATTERN
protected CommandExecutor commandExecutor
protected String telemetryEndpoint
protected Data staticData
protected org.camunda.connect.spi.Connector<? extends org.camunda.connect.spi.ConnectorRequest<?>> httpConnector
protected int telemetryRequestRetries
protected TelemetryRegistry telemetryRegistry
protected MetricsRegistry metricsRegistry
protected int telemetryRequestTimeout
protected boolean sendInitialMessage
public TelemetrySendingTask(CommandExecutor commandExecutor, String telemetryEndpoint, int telemetryRequestRetries, Data data, org.camunda.connect.spi.Connector<? extends org.camunda.connect.spi.ConnectorRequest<?>> httpConnector, TelemetryRegistry telemetryRegistry, MetricsRegistry metricsRegistry, int telemetryRequestTimeout, boolean sendInitialMessage)
protected void sendInitialMessage()
protected void sendInitialMessage(CommandContext commandContext)
protected void updateStaticData()
protected boolean isTelemetryEnabled()
protected void sendData(Data dataToSend, boolean isInitialMessage)
protected boolean isSuccessStatusCode(int statusCode)
protected void clearDynamicData()
protected void restoreDynamicData(Internals internals)
protected Internals resolveDynamicData()
protected long calculateMetricCount(ManagementService managementService, Date startReportTime, Date currentTime, String metricName)
protected long calculateUniqueUserCount(CommandContext commandContext, HistoryLevel historyLevel, Date currentTime)
protected void updateTelemetryFlag(boolean enabled)
Copyright © 2021. All rights reserved.