@Component public class DataCollectionJob extends Object
Constructor and Description |
---|
DataCollectionJob(com.atlassian.analytics.api.services.AnalyticsConfigService analyticsConfigService,
EventProducersFinder eventProducersFinder,
com.atlassian.event.api.EventPublisher eventPublisher,
ServerStatusProvider serverStatusProvider) |
Modifier and Type | Method and Description |
---|---|
boolean |
canCollectAnalytics()
Check if gathering analytics is enabled
|
void |
execute()
Gather and publish statistics events from all
StatisticsEventsProducer |
void |
resetStatistics()
Reset statistics gathered by all
StatisticsEventsProducer |
boolean |
shouldCollectionProceed()
Check if server can publish analytics events
|
@Inject public DataCollectionJob(com.atlassian.analytics.api.services.AnalyticsConfigService analyticsConfigService, EventProducersFinder eventProducersFinder, com.atlassian.event.api.EventPublisher eventPublisher, ServerStatusProvider serverStatusProvider)
public void execute()
StatisticsEventsProducer
public void resetStatistics()
StatisticsEventsProducer
public boolean shouldCollectionProceed()
public boolean canCollectAnalytics()
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.