Package org.quartz

Examples of org.quartz.Scheduler.unscheduleJob()


    delete(trigger.getKey());
  }

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

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


    delete(trigger.getKey());
  }

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

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

        if (trigger != null) {
            try {
                final Scheduler s = timerService.getScheduler();
               
                if(!s.isShutdown()) {
                    s.unscheduleJob(trigger.getKey());
                }
            } catch (SchedulerException e) {
                throw new EJBException("fail to cancel the timer", e);
            }
        }
View Full Code Here

        if (trigger != null) {
            try {
                final Scheduler s = timerService.getScheduler();
               
                if(!s.isShutdown()){
                    s.unscheduleJob(trigger.getKey());
                }
            } catch (SchedulerException e) {
                throw new EJBException("fail to cancel the timer", e);
            }
        }
View Full Code Here

        if (trigger != null) {
            try {
                final Scheduler s = timerService.getScheduler();
               
                if(!s.isShutdown()) {
                    s.unscheduleJob(trigger.getKey());
                }
            } catch (SchedulerException e) {
                throw new EJBException("fail to cancel the timer", e);
            }
        }
View Full Code Here

        if (trigger != null) {
            try {
                final Scheduler s = timerService.getScheduler();
               
                if(!s.isShutdown()){
                    s.unscheduleJob(trigger.getKey());
                }
            } catch (SchedulerException e) {
                throw new EJBException("fail to cancel the timer", e);
            }
        }
View Full Code Here

        if (deleteJob) {
            boolean isClustered = scheduler.getMetaData().isJobStoreClustered();
            if (!scheduler.isShutdown() && !isClustered) {
                LOG.info("Deleting job {}", triggerKey);
                scheduler.unscheduleJob(triggerKey);

                jobAdded.set(false);
            }
        } else if (pauseJob) {
            boolean isClustered = scheduler.getMetaData().isJobStoreClustered();
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.