Class DataCollectionJob

java.lang.Object
com.atlassian.bamboo.analytics.basedata.collector.DataCollectionJob

@Component public class DataCollectionJob extends Object
  • 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 all StatisticsEventsProducer
    • resetStatistics

      public void resetStatistics()
      Reset statistics gathered by all StatisticsEventsProducer
    • shouldCollectionProceed

      public boolean shouldCollectionProceed()
      Check if server can publish analytics events
    • canCollectAnalytics

      public boolean canCollectAnalytics()
      Check if gathering analytics is enabled