Package cn.net.pap.quartz.util
Class QuartzUtils
java.lang.Object
cn.net.pap.quartz.util.QuartzUtils
Quartz 工具类
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
createScheduleJob
(org.quartz.Scheduler scheduler, String jobId, String jobGroup, String cronExpression, String callMethod, Boolean concurrentBool) 创建作业static void
deleteScheduleJob
(org.quartz.Scheduler scheduler, String jobId, String jobGroup) 删除static void
pauseScheduleJob
(org.quartz.Scheduler scheduler, String jobId, String jobGroup) 暂停static void
resumeScheduleJob
(org.quartz.Scheduler scheduler, String jobId, String jobGroup) 恢复
-
Constructor Details
-
QuartzUtils
public QuartzUtils()
-
-
Method Details
-
createScheduleJob
public static void createScheduleJob(org.quartz.Scheduler scheduler, String jobId, String jobGroup, String cronExpression, String callMethod, Boolean concurrentBool) throws org.quartz.SchedulerException 创建作业- Parameters:
scheduler
- schedulerjobId
- jobIdjobGroup
- jobGroupcronExpression
- cronExpressioncallMethod
- callMethodconcurrentBool
- concurrentBool- Throws:
org.quartz.SchedulerException
- 异常
-
deleteScheduleJob
public static void deleteScheduleJob(org.quartz.Scheduler scheduler, String jobId, String jobGroup) throws org.quartz.SchedulerException 删除- Parameters:
scheduler
-jobId
-jobGroup
-- Throws:
org.quartz.SchedulerException
-
pauseScheduleJob
public static void pauseScheduleJob(org.quartz.Scheduler scheduler, String jobId, String jobGroup) throws org.quartz.SchedulerException 暂停- Parameters:
scheduler
-jobId
-jobGroup
-- Throws:
org.quartz.SchedulerException
-
resumeScheduleJob
public static void resumeScheduleJob(org.quartz.Scheduler scheduler, String jobId, String jobGroup) throws org.quartz.SchedulerException 恢复- Parameters:
scheduler
-jobId
-jobGroup
-- Throws:
org.quartz.SchedulerException
-