@Named public class ClusterWideStatisticsCollectionScheduler extends Object
Constructor and Description |
---|
ClusterWideStatisticsCollectionScheduler(com.atlassian.scheduler.SchedulerService schedulerService,
com.atlassian.analytics.api.services.AnalyticsConfigService analyticsConfigService,
com.atlassian.event.api.EventPublisher eventPublisher,
List<StatisticsCollector<?>> collectors) |
Modifier and Type | Method and Description |
---|---|
void |
collect() |
protected com.atlassian.scheduler.config.JobId |
getJobId()
Returns job ID.
|
protected com.atlassian.scheduler.config.JobRunnerKey |
getJobRunnerKey()
Returns job runner key.
|
protected com.atlassian.scheduler.config.RunMode |
getRunMode() |
void |
onApplicationReady(ApplicationReadyEvent applicationStartedEvent) |
void |
onCreate() |
void |
onDestroy() |
void |
onXMLRestore(XMLRestoreFinishedEvent restoreFinishedEvent) |
com.atlassian.scheduler.JobRunnerResponse |
runJob(com.atlassian.scheduler.JobRunnerRequest request) |
protected Predicate<StatisticsCollector<?>> |
shouldBeProcessed()
Returns a predicate used to filter statistics collectors.
|
@Inject public ClusterWideStatisticsCollectionScheduler(com.atlassian.scheduler.SchedulerService schedulerService, com.atlassian.analytics.api.services.AnalyticsConfigService analyticsConfigService, com.atlassian.event.api.EventPublisher eventPublisher, List<StatisticsCollector<?>> collectors)
protected Predicate<StatisticsCollector<?>> shouldBeProcessed()
protected com.atlassian.scheduler.config.JobId getJobId()
protected com.atlassian.scheduler.config.JobRunnerKey getJobRunnerKey()
protected com.atlassian.scheduler.config.RunMode getRunMode()
@PostConstruct public void onCreate() throws com.atlassian.scheduler.SchedulerServiceException
com.atlassian.scheduler.SchedulerServiceException
@PreDestroy public void onDestroy()
@EventListener public void onApplicationReady(ApplicationReadyEvent applicationStartedEvent) throws com.atlassian.scheduler.SchedulerServiceException
com.atlassian.scheduler.SchedulerServiceException
@EventListener public void onXMLRestore(XMLRestoreFinishedEvent restoreFinishedEvent) throws com.atlassian.scheduler.SchedulerServiceException
com.atlassian.scheduler.SchedulerServiceException
public com.atlassian.scheduler.JobRunnerResponse runJob(com.atlassian.scheduler.JobRunnerRequest request)
runJob
in interface com.atlassian.scheduler.JobRunner
public void collect()
collect
in interface StatisticsCollectorRunner
Copyright © 2021 Atlassian. All rights reserved.