Package com.atlassian.crowd.scheduling
Class JobRunnerRegistrar
java.lang.Object
com.atlassian.crowd.scheduling.JobRunnerRegistrar
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware
public class JobRunnerRegistrar
extends Object
implements org.springframework.beans.factory.BeanNameAware
A helper class to allow for scheduler service jobs to be defined in spring XML
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonApplicationReady(ApplicationReadyEvent applicationReadyEvent) voidonXMLRestore(XMLRestoreFinishedEvent restoreFinishedEvent) voidregister()voidsetBeanName(String beanName) voidsetCronExpression(String cronExpression) voidsetEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher) voidvoidsetInterval(long intervalMillis) voidsetLocal(boolean local) voidsetRunner(com.atlassian.scheduler.JobRunner runner) voidsetRunnerKey(String runnerKey) voidsetSchedulerService(com.atlassian.scheduler.SchedulerService schedulerService) void
-
Constructor Details
-
JobRunnerRegistrar
public JobRunnerRegistrar()
-
-
Method Details
-
register
- Throws:
Exception
-
unregister
@PreDestroy public void unregister() -
onApplicationReady
@EventListener public void onApplicationReady(ApplicationReadyEvent applicationReadyEvent) throws com.atlassian.scheduler.SchedulerServiceException - Throws:
com.atlassian.scheduler.SchedulerServiceException
-
onXMLRestore
@EventListener public void onXMLRestore(XMLRestoreFinishedEvent restoreFinishedEvent) throws com.atlassian.scheduler.SchedulerServiceException - Throws:
com.atlassian.scheduler.SchedulerServiceException
-
setBeanName
- Specified by:
setBeanNamein interfaceorg.springframework.beans.factory.BeanNameAware
-
setCronExpression
-
setInterval
public void setInterval(long intervalMillis) -
setId
-
setRunnerKey
-
setRunner
public void setRunner(com.atlassian.scheduler.JobRunner runner) -
setSchedulerService
public void setSchedulerService(com.atlassian.scheduler.SchedulerService schedulerService) -
setEventPublisher
public void setEventPublisher(com.atlassian.event.api.EventPublisher eventPublisher) -
setLocal
public void setLocal(boolean local)
-