Class DataCollectionJob
- java.lang.Object
-
- com.atlassian.bamboo.analytics.basedata.collector.DataCollectionJob
-
@Component public class DataCollectionJob extends Object
-
-
Constructor Summary
Constructors Constructor Description DataCollectionJob(com.atlassian.analytics.api.services.AnalyticsConfigService analyticsConfigService, EventProducersFinder eventProducersFinder, com.atlassian.event.api.EventPublisher eventPublisher, NodeStatusProvider nodeStatusProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanCollectAnalytics()Check if gathering analytics is enabledvoidexecute()Gather and publish statistics events from allStatisticsEventsProducervoidresetStatistics()Reset statistics gathered by allStatisticsEventsProducerbooleanshouldCollectionProceed()Check if server can publish analytics events
-
-
-
Constructor Detail
-
DataCollectionJob
@Inject public DataCollectionJob(com.atlassian.analytics.api.services.AnalyticsConfigService analyticsConfigService, EventProducersFinder eventProducersFinder, com.atlassian.event.api.EventPublisher eventPublisher, NodeStatusProvider nodeStatusProvider)
-
-
Method Detail
-
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
-
-