Package org.quartz

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


            }
        } 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

        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

            }
        } 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

        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

        }
       
        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

            }
        } 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

        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

        }
       
        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

      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

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.