public abstract class AbstractSingleJobScheduler extends AbstractJobScheduler<AbstractNonConcurrentJobRunner>
Modifier and Type | Field and Description |
---|---|
protected com.atlassian.scheduler.config.JobId |
jobId |
protected com.atlassian.beehive.ClusterLockService |
lockService |
protected org.apache.log4j.Logger |
log |
jobRunnerKey, schedulerService
Constructor and Description |
---|
AbstractSingleJobScheduler(String jobRunnerKey,
com.atlassian.beehive.ClusterLockService lockService,
com.atlassian.scheduler.SchedulerService schedulerService) |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
destroy() |
com.atlassian.scheduler.status.JobDetails |
getJobStatus() |
protected abstract boolean |
scheduleJob() |
protected boolean |
scheduleJob(com.atlassian.scheduler.config.Schedule schedule,
Map<String,Serializable> parameters)
Schedule a job.
|
void |
unscheduleJob()
Unschedules the job.
|
createRunner
protected final org.apache.log4j.Logger log
protected final com.atlassian.scheduler.config.JobId jobId
protected final com.atlassian.beehive.ClusterLockService lockService
public AbstractSingleJobScheduler(String jobRunnerKey, com.atlassian.beehive.ClusterLockService lockService, com.atlassian.scheduler.SchedulerService schedulerService)
public void destroy()
destroy
in interface org.springframework.beans.factory.DisposableBean
destroy
in class AbstractJobScheduler<AbstractNonConcurrentJobRunner>
public void afterPropertiesSet()
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
afterPropertiesSet
in class AbstractJobScheduler<AbstractNonConcurrentJobRunner>
public void unscheduleJob()
protected abstract boolean scheduleJob() throws com.atlassian.scheduler.SchedulerServiceException
com.atlassian.scheduler.SchedulerServiceException
protected boolean scheduleJob(com.atlassian.scheduler.config.Schedule schedule, Map<String,Serializable> parameters) throws com.atlassian.scheduler.SchedulerServiceException
com.atlassian.scheduler.SchedulerServiceException
public com.atlassian.scheduler.status.JobDetails getJobStatus()
Copyright © 2022 Requirement Yogi. All rights reserved.