@Named public class PerNodeStatisticsCollectionScheduler extends Object
| Constructor and Description |
|---|
PerNodeStatisticsCollectionScheduler(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 PerNodeStatisticsCollectionScheduler(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.SchedulerServiceExceptionpublic com.atlassian.scheduler.JobRunnerResponse runJob(com.atlassian.scheduler.JobRunnerRequest request)
runJob in interface com.atlassian.scheduler.JobRunnerpublic void collect()
collect in interface StatisticsCollectorRunnerCopyright © 2023 Atlassian. All rights reserved.