Class QuartzUtils

java.lang.Object
cn.net.pap.quartz.util.QuartzUtils

public class QuartzUtils extends Object
Quartz 工具类
  • 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 - scheduler
      jobId - jobId
      jobGroup - jobGroup
      cronExpression - cronExpression
      callMethod - callMethod
      concurrentBool - 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