@Named public class StatisticsCollectionScheduler extends Object implements com.atlassian.scheduler.JobRunner
| Constructor and Description |
|---|
StatisticsCollectionScheduler(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 |
onApplicationReady(ApplicationReadyEvent applicationStartedEvent) |
void |
onXMLRestore(XMLRestoreFinishedEvent restoreFinishedEvent) |
void |
registerListener() |
com.atlassian.scheduler.JobRunnerResponse |
runJob(com.atlassian.scheduler.JobRunnerRequest request) |
void |
unregisterListener() |
@Inject
public StatisticsCollectionScheduler(com.atlassian.scheduler.SchedulerService schedulerService,
com.atlassian.analytics.api.services.AnalyticsConfigService analyticsConfigService,
com.atlassian.event.api.EventPublisher eventPublisher,
List<StatisticsCollector> collectors)
@PostConstruct public void registerListener()
@PreDestroy public void unregisterListener()
@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.JobRunnerCopyright © 2019 Atlassian. All rights reserved.