@Component public class ScheduleJobUtils extends Object
| 构造器和说明 |
|---|
ScheduleJobUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
deleteJob(String taskId,
String taskKey)
Delete a job
|
JobTaskUtils |
getJobTaskUtils()
Get the job task utils object.
|
Map<String,JobTaskBean> |
jobTaskBeanMap()
Get all the tasks
|
Map<String,JobTaskBean> |
jobTaskBeanMap(String pattern)
Obtain work tasks, use string matching filter.
|
void |
pauseJob(String taskId,
String taskKey)
Pause a job
|
void |
resumeJob(String taskId,
String taskKey)
Resume a job
|
void |
runAJobNow(String taskId,
String taskKey)
Run the job now
|
void |
set(TaskConfigBean jobConfig)
Add a job by configuration object.
|
void |
updateJobCron(String taskId,
String taskKey,
String cron)
Update job time expression
|
public final Map<String,JobTaskBean> jobTaskBeanMap()
public final Map<String,JobTaskBean> jobTaskBeanMap(String pattern)
pattern - The matching filter.public final void set(TaskConfigBean jobConfig) throws org.quartz.SchedulerException
jobConfig - The configuration object.org.quartz.SchedulerException - the exceptionpublic final void pauseJob(String taskId, String taskKey) throws org.quartz.SchedulerException
taskId - The configuration idtaskKey - The task keyorg.quartz.SchedulerException - the exceptionpublic final void resumeJob(String taskId, String taskKey) throws org.quartz.SchedulerException
taskId - The configuration idtaskKey - The task keyorg.quartz.SchedulerException - the exceptionpublic final void deleteJob(String taskId, String taskKey) throws org.quartz.SchedulerException
taskId - The configuration idtaskKey - The task keyorg.quartz.SchedulerException - the exceptionpublic final void runAJobNow(String taskId, String taskKey) throws org.quartz.SchedulerException
taskId - The configuration idtaskKey - The task keyorg.quartz.SchedulerException - the exceptionpublic final void updateJobCron(String taskId, String taskKey, String cron) throws org.quartz.SchedulerException
taskId - The configuration idtaskKey - The task keycron - The cron timing expressionorg.quartz.SchedulerException - the exceptionpublic JobTaskUtils getJobTaskUtils()
Copyright © 2018. All rights reserved.