public class QuartzUtils
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
(专用程序包) static java.util.Map<java.lang.String,org.quartz.JobDetail> |
jobs |
(专用程序包) static java.lang.String |
TRIGGER_GROUPNAME |
(专用程序包) static java.lang.String |
TRIGGER_NAME |
构造器和说明 |
---|
QuartzUtils() |
限定符和类型 | 方法和说明 |
---|---|
static void |
addJob(org.quartz.Scheduler sched,
JobBase job)
添加一个定时任务
|
static void |
addJobAndStart(org.quartz.Scheduler sched,
JobBase job)
添加一个定时任务,使用默认的任务组名,触发器名,触发器组名
|
static java.lang.Boolean |
checkExists(org.quartz.Scheduler scheduler,
java.lang.String descJobKey) |
static JobBase |
getJob(org.quartz.Scheduler scheduler,
java.lang.String jobKey) |
static java.util.List<JobBase> |
getJobs(org.quartz.Scheduler scheduler) |
static void |
jobRun(org.quartz.Scheduler sched,
java.lang.String jobKey)
运行job不管时间
|
static void |
modifyJobTime(org.quartz.Scheduler sched,
JobBase job)
修改一个任务的触发时间(使用默认的任务组名,触发器名,触发器组名)
|
static void |
removeJob(org.quartz.Scheduler sched,
JobBase job)
移除一个任务(使用默认的任务组名,触发器名,触发器组名)
|
static void |
removeJob(org.quartz.Scheduler sched,
java.lang.String jobKey)
移除一个任务(使用默认的任务组名,触发器名,触发器组名)
|
static void |
shutdownJobs(org.quartz.Scheduler sched)
关闭所有定时任务
|
static void |
startJobs(org.quartz.Scheduler sched)
启动所有定时任务
|
static final java.lang.String TRIGGER_NAME
static final java.lang.String TRIGGER_GROUPNAME
static java.util.Map<java.lang.String,org.quartz.JobDetail> jobs
public static void addJobAndStart(org.quartz.Scheduler sched, JobBase job)
sched
- Schedulerjob
- JobBasepublic static void addJob(org.quartz.Scheduler sched, JobBase job)
sched
- Schedulerjob
- JobBasepublic static void modifyJobTime(org.quartz.Scheduler sched, JobBase job)
sched
- 调度器job
- 任务public static void jobRun(org.quartz.Scheduler sched, java.lang.String jobKey)
sched
- SchedulerjobKey
- 任务keypublic static void removeJob(org.quartz.Scheduler sched, JobBase job)
sched
- 调度器job
- 任务public static void removeJob(org.quartz.Scheduler sched, java.lang.String jobKey)
sched
- 调度器jobKey
- 任务的keypublic static JobBase getJob(org.quartz.Scheduler scheduler, java.lang.String jobKey)
public static void startJobs(org.quartz.Scheduler sched)
sched
- 调度器public static void shutdownJobs(org.quartz.Scheduler sched)
sched
- 调度器public static java.util.List<JobBase> getJobs(org.quartz.Scheduler scheduler)
public static java.lang.Boolean checkExists(org.quartz.Scheduler scheduler, java.lang.String descJobKey) throws org.quartz.SchedulerException
org.quartz.SchedulerException