Class SchedulerHelper

java.lang.Object
org.frankframework.scheduler.SchedulerHelper

public class SchedulerHelper extends Object
The SchedulerHelper encapsulates the quarz scheduler.
Author:
John Dekker
  • Field Details

    • log

      protected static org.apache.logging.log4j.Logger log
    • DEFAULT_GROUP

      public static final String DEFAULT_GROUP
      See Also:
  • Constructor Details

    • SchedulerHelper

      public SchedulerHelper()
  • Method Details

    • validateJob

      public static void validateJob(org.quartz.JobDetail jobDetail, String cronExpression) throws ConfigurationException
      Throws:
      ConfigurationException
    • scheduleJob

      public void scheduleJob(IJob jobdef) throws org.quartz.SchedulerException
      Throws:
      org.quartz.SchedulerException
    • scheduleJob

      public void scheduleJob(org.quartz.JobDetail jobDetail, String cronExpression) throws org.quartz.SchedulerException
      Schedule a new job
      Parameters:
      jobDetail -
      cronExpression - null or cron expression in quartz format
      Throws:
      org.quartz.SchedulerException
    • scheduleJob

      public void scheduleJob(org.quartz.JobDetail jobDetail, long interval) throws org.quartz.SchedulerException
      Schedule a new job
      Parameters:
      jobDetail -
      interval - 0 or interval when to trigger
      Throws:
      org.quartz.SchedulerException
    • scheduleJob

      public void scheduleJob(org.quartz.JobDetail jobDetail, String cronExpression, long interval, boolean overwrite) throws org.quartz.SchedulerException
      Schedule a new job
      Parameters:
      jobDetail -
      cronExpression - null or cron expression in quartz format
      interval - 0 (trigger once) or interval (in ms) when to trigger
      overwrite - overwrite existing job
      Throws:
      org.quartz.SchedulerException
    • createCronTrigger

      protected static org.quartz.CronTrigger createCronTrigger(org.quartz.TriggerKey triggerKey, String cronExpression)
    • contains

      public boolean contains(String name) throws org.quartz.SchedulerException
      Throws:
      org.quartz.SchedulerException
    • contains

      public boolean contains(String name, String group) throws org.quartz.SchedulerException
      Throws:
      org.quartz.SchedulerException
    • getTrigger

      public org.quartz.Trigger getTrigger(String name) throws org.quartz.SchedulerException
      Throws:
      org.quartz.SchedulerException
    • getTrigger

      public org.quartz.Trigger getTrigger(String name, String group) throws org.quartz.SchedulerException
      Throws:
      org.quartz.SchedulerException
    • getJobDetail

      public org.quartz.JobDetail getJobDetail(String jobName) throws org.quartz.SchedulerException
      Throws:
      org.quartz.SchedulerException
    • getJobDetail

      public org.quartz.JobDetail getJobDetail(String jobName, String jobGroup) throws org.quartz.SchedulerException
      Throws:
      org.quartz.SchedulerException
    • deleteTrigger

      public void deleteTrigger(IJob jobDef) throws org.quartz.SchedulerException
      Throws:
      org.quartz.SchedulerException
    • deleteTrigger

      public void deleteTrigger(String jobName) throws org.quartz.SchedulerException
      Throws:
      org.quartz.SchedulerException
    • deleteTrigger

      public void deleteTrigger(String name, String group) throws org.quartz.SchedulerException
      Throws:
      org.quartz.SchedulerException
    • startScheduler

      public void startScheduler() throws org.quartz.SchedulerException
      Throws:
      org.quartz.SchedulerException
    • getScheduler

      public org.quartz.Scheduler getScheduler()
    • setScheduler

      public void setScheduler(org.quartz.Scheduler scheduler)