Examples of pauseTrigger()


Examples of org.quartz.Scheduler.pauseTrigger()

        jobPaused.set(true);

        Scheduler scheduler = getComponent().getScheduler();
        if (scheduler != null && !scheduler.isShutdown()) {
            LOG.info("Pausing trigger {}", triggerKey);
            scheduler.pauseTrigger(triggerKey);
        }
    }

    public void resumeTrigger() throws Exception {
        if (!jobPaused.get()) {
View Full Code Here

Examples of org.quartz.Scheduler.pauseTrigger()

        }
       
        jobPaused.set(true);
        if (!scheduler.isShutdown()) {
            LOG.info("Pausing trigger {}", triggerKey);
            scheduler.pauseTrigger(triggerKey);
        }
    }

    public void resumeTrigger() throws Exception {
        if (!jobPaused.get()) {
View Full Code Here

Examples of org.quartz.Scheduler.pauseTrigger()

      throw new FixFlowScheduleException(ExceptionCode.QUARZTEXCEPTION_ISENABLE);
    }
    Scheduler scheduler = getScheduler();
    TriggerKey tKey = new TriggerKey(triggerName,triggerGroup);
    try {
      scheduler.pauseTrigger(tKey);
    } catch (SchedulerException e) {
      throw new FixFlowException(e.getMessage(),e);
    }
  }
 
View Full Code Here

Examples of org.quartz.Scheduler.pauseTrigger()

                if (!s.isShutdown()) {
                    if (!isPersistent()) {
                        s.unscheduleJob(trigger.getKey());
                    } else {
                        s.pauseTrigger(trigger.getKey());
                    }
                }
            } catch (SchedulerException e) {
                throw new EJBException("fail to cancel the timer", e);
            }
View Full Code Here

Examples of org.quartz.Scheduler.pauseTrigger()

    pause(trigger.getKey());
  }

  public static void pause(TriggerKey key) throws SchedulerException {
    Scheduler sched = StdSchedulerFactory.getDefaultScheduler();
    sched.pauseTrigger(key);
  }

  public static void delete(Trigger trigger) throws SchedulerException {
    delete(trigger.getKey());
  }
View Full Code Here

Examples of org.quartz.Scheduler.pauseTrigger()

    pause(trigger.getKey());
  }

  public static void pause(TriggerKey key) throws SchedulerException {
    Scheduler sched = StdSchedulerFactory.getDefaultScheduler();
    sched.pauseTrigger(key);
  }

  public static void delete(Trigger trigger) throws SchedulerException {
    delete(trigger.getKey());
  }
View Full Code Here

Examples of org.quartz.Scheduler.pauseTrigger()

            }
        } else if (pauseJob) {
            boolean isClustered = scheduler.getMetaData().isJobStoreClustered();
            if (!scheduler.isShutdown() && !isClustered) {
                LOG.info("Pausing job {}", triggerKey);
                scheduler.pauseTrigger(triggerKey);

                jobAdded.set(false);
            }
        }
View Full Code Here

Examples of org.quartz.Scheduler.pauseTrigger()

        jobPaused.set(true);

        Scheduler scheduler = getComponent().getScheduler();
        if (scheduler != null) {
            LOG.info("Pausing trigger {}", triggerKey);
            scheduler.pauseTrigger(triggerKey);
        }
    }

    public void resumeTrigger() throws Exception {
        if (!jobPaused.get()) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.