We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.base.devserver.stats.
Class StatisticsSender
- java.lang.Object
-
- com.vaadin.base.devserver.stats.StatisticsSender
-
public class StatisticsSender extends Object
Handles sending of telemetry data.
-
-
Constructor Summary
Constructors Constructor Description StatisticsSender(StatisticsStorage storage)
Creates a new instance connected to the given storage.
-
Method Summary
All Methods Modifier and Type Method Description String
getReportingUrl()
Get the remote reporting URL.
void
triggerSendIfNeeded(com.fasterxml.jackson.databind.node.ObjectNode json)
Send data in the background if needed.
-
-
-
Constructor Detail
-
StatisticsSender
public StatisticsSender(StatisticsStorage storage)
Creates a new instance connected to the given storage.
Parameters:
storage
- the storage to use
-
-
Method Detail
-
getReportingUrl
public String getReportingUrl()
Get the remote reporting URL.
Returns:
Returns
StatisticsConstants.USAGE_REPORT_URL
by default.
-
triggerSendIfNeeded
public void triggerSendIfNeeded(com.fasterxml.jackson.databind.node.ObjectNode json)
Send data in the background if needed.
Parameters:
json
- The json returned byStatisticsStorage.read()
-
-