public interface SchedulerService
Modifier and Type | Field and Description |
---|---|
static String |
CANCELLED_JOB_STATUS_CODE |
static String |
FAILED_JOB_STATUS_CODE |
static String |
JOB_STATUS_PARAMETER |
static String |
PENDING_JOB_STATUS_CODE |
static String |
RUNNING_JOB_STATUS_CODE |
static String |
SCHEDULE_JOB_NAME |
static String |
SCHEDULED_GROUP |
static String |
SCHEDULED_JOB_STATUS_CODE |
static String |
SUCCEEDED_JOB_STATUS_CODE |
static String |
UNSCHEDULED_GROUP |
Modifier and Type | Method and Description |
---|---|
void |
addScheduled(org.quartz.JobDetail job)
Adds the given job to the "scheduled" group.
|
void |
addUnscheduled(org.quartz.JobDetail job)
Adds the given job to the "unscheduled" group.
|
BatchJobStatus |
getJob(String groupName,
String jobName)
Gets a single job based on its name and group.
|
List<BatchJobStatus> |
getJobs()
Get all jobs known to the scheduler wrapped within a BusinessObject-derived class.
|
List<BatchJobStatus> |
getJobs(String groupName) |
List<String> |
getJobStatuses()
Returns a list of all possible statuses.
|
Date |
getNextStartTime(BatchJobStatus job)
Returns the next start time for the given job.
|
Date |
getNextStartTime(String groupName,
String jobName)
Returns the next start time for the given job.
|
List<org.quartz.JobExecutionContext> |
getRunningJobs()
Returns the list of job currently running within the scheduler.
|
List<String> |
getSchedulerGroups()
Returns a list of all groups defined in the scheduler.
|
String |
getStatus(org.quartz.JobDetail jobDetail) |
boolean |
hasIncompleteJob()
This method checks whether any jobs in the SCHEDULED job group are pending or currently scheduled.
|
void |
initialize() |
void |
initializeJob(String jobName,
Job job) |
void |
interruptJob(String jobName)
Requests that the given job be stopped as soon as possble.
|
boolean |
isJobRunning(String jobName)
Tests whether the referenced job name is running, regardless of group.
|
boolean |
isPastScheduleCutoffTime()
This method should be used to determine when the daily batch schedule should terminate.
|
void |
logScheduleResults() |
void |
processWaitingJobs() |
void |
reinitializeScheduledJobs() |
void |
removeScheduled(String jobName)
Removes a job from the scheduled group.
|
void |
runJob(String jobName,
int startStep,
int stopStep,
Date startTime,
String requestorEmailAddress)
Immediately runs the specified job.
|
void |
runJob(String jobName,
String requestorEmailAddress)
Immediately runs the specified job.
|
void |
runJob(String groupName,
String jobName,
int startStep,
int stopStep,
Date jobStartTime,
String requestorEmailAddress) |
void |
setScheduler(org.quartz.Scheduler scheduler) |
boolean |
shouldNotRun(org.quartz.JobDetail jobDetail) |
void |
updateStatus(org.quartz.JobDetail jobDetail,
String jobStatus) |
static final String SCHEDULE_JOB_NAME
static final String PENDING_JOB_STATUS_CODE
static final String SCHEDULED_JOB_STATUS_CODE
static final String RUNNING_JOB_STATUS_CODE
static final String SUCCEEDED_JOB_STATUS_CODE
static final String FAILED_JOB_STATUS_CODE
static final String CANCELLED_JOB_STATUS_CODE
static final String JOB_STATUS_PARAMETER
static final String SCHEDULED_GROUP
static final String UNSCHEDULED_GROUP
void initialize()
void initializeJob(String jobName, Job job)
boolean hasIncompleteJob()
boolean isPastScheduleCutoffTime()
void processWaitingJobs()
void logScheduleResults()
boolean shouldNotRun(org.quartz.JobDetail jobDetail)
void updateStatus(org.quartz.JobDetail jobDetail, String jobStatus)
void setScheduler(org.quartz.Scheduler scheduler)
List<BatchJobStatus> getJobs(String groupName)
List<BatchJobStatus> getJobs()
BatchJobStatus getJob(String groupName, String jobName)
groupName
- jobName
- void runJob(String jobName, int startStep, int stopStep, Date startTime, String requestorEmailAddress)
jobName
- startStep
- stopStep
- requestorEmailAddress
- void runJob(String groupName, String jobName, int startStep, int stopStep, Date jobStartTime, String requestorEmailAddress)
void runJob(String jobName, String requestorEmailAddress)
jobName
- requestorEmailAddress
- List<org.quartz.JobExecutionContext> getRunningJobs()
void removeScheduled(String jobName)
jobName
- void addScheduled(org.quartz.JobDetail job)
job
- void addUnscheduled(org.quartz.JobDetail job)
job
- List<String> getSchedulerGroups()
List<String> getJobStatuses()
void interruptJob(String jobName)
jobName
- boolean isJobRunning(String jobName)
jobName
- Date getNextStartTime(BatchJobStatus job)
job
- Date getNextStartTime(String groupName, String jobName)
groupName
- jobName
- void reinitializeScheduledJobs()
Copyright © 2004–2014 The Kuali Foundation. All rights reserved.