@Singleton public class UsageStatsNodePeriodical extends UsageStatsPeriodical
cachedRequestsQueue, clusterConfigService, config, filenamePattern, httpClient, objectMapper| Constructor and Description |
|---|
UsageStatsNodePeriodical(UsageStatsNodeService usageStatsNodeService,
org.graylog2.plugin.system.NodeId nodeId,
org.graylog2.plugin.ServerStatus serverStatus,
UsageStatsConfiguration config,
org.graylog2.plugin.cluster.ClusterConfigService clusterConfigService,
okhttp3.OkHttpClient httpClient,
com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
| Modifier and Type | Method and Description |
|---|---|
protected byte[] |
buildPayload() |
protected org.slf4j.Logger |
getLogger() |
protected URL |
getUrl() |
boolean |
startOnThisNode() |
doRun, getInitialDelaySeconds, getPeriodSeconds, isDaemon, isEnabled, masterOnly, runsForever, stopOnGracefulShutdown, uploadDataSet, uploadQueuedDataSets@Inject public UsageStatsNodePeriodical(UsageStatsNodeService usageStatsNodeService, org.graylog2.plugin.system.NodeId nodeId, org.graylog2.plugin.ServerStatus serverStatus, UsageStatsConfiguration config, org.graylog2.plugin.cluster.ClusterConfigService clusterConfigService, okhttp3.OkHttpClient httpClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
protected URL getUrl()
getUrl in class UsageStatsPeriodicalprotected byte[] buildPayload()
buildPayload in class UsageStatsPeriodicalpublic boolean startOnThisNode()
startOnThisNode in class org.graylog2.plugin.periodical.Periodicalprotected org.slf4j.Logger getLogger()
getLogger in class org.graylog2.plugin.periodical.PeriodicalCopyright © 2015-2016 Graylog, Inc.. All Rights Reserved.