Class DataCollectionJob
java.lang.Object
com.atlassian.bamboo.analytics.basedata.collector.DataCollectionJob
-
Constructor Summary
ConstructorDescriptionDataCollectionJob
(com.atlassian.analytics.api.services.AnalyticsConfigService analyticsConfigService, EventProducersFinder eventProducersFinder, com.atlassian.event.api.EventPublisher eventPublisher, NodeStatusProvider nodeStatusProvider) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Check if gathering analytics is enabledvoid
execute()
Gather and publish statistics events from allStatisticsEventsProducer
void
Reset statistics gathered by allStatisticsEventsProducer
boolean
Check if server can publish analytics events
-
Constructor Details
-
DataCollectionJob
@Inject public DataCollectionJob(com.atlassian.analytics.api.services.AnalyticsConfigService analyticsConfigService, EventProducersFinder eventProducersFinder, com.atlassian.event.api.EventPublisher eventPublisher, NodeStatusProvider nodeStatusProvider)
-
-
Method Details
-
execute
public void execute()Gather and publish statistics events from allStatisticsEventsProducer
-
resetStatistics
public void resetStatistics()Reset statistics gathered by allStatisticsEventsProducer
-
shouldCollectionProceed
public boolean shouldCollectionProceed()Check if server can publish analytics events -
canCollectAnalytics
public boolean canCollectAnalytics()Check if gathering analytics is enabled
-