Package com.vaadin.base.devserver.stats
Class StatisticsSender
java.lang.Object
com.vaadin.base.devserver.stats.StatisticsSender
Handles sending of telemetry data.
-
Constructor Summary
ConstructorsConstructorDescriptionStatisticsSender(StatisticsStorage storage) Creates a new instance connected to the given storage. -
Method Summary
Modifier and TypeMethodDescriptionGet the remote reporting URL.voidtriggerSendIfNeeded(tools.jackson.databind.node.ObjectNode json) Send data in the background if needed.
-
Constructor Details
-
StatisticsSender
Creates a new instance connected to the given storage.- Parameters:
storage- the storage to use
-
-
Method Details
-
getReportingUrl
Get the remote reporting URL.- Returns:
- Returns
StatisticsConstants.USAGE_REPORT_URLby default.
-
triggerSendIfNeeded
public void triggerSendIfNeeded(tools.jackson.databind.node.ObjectNode json) Send data in the background if needed.- Parameters:
json- The json returned byStatisticsStorage.read()
-