Package org.quartz

Examples of org.quartz.Scheduler.start()


                    if (!"true".equals(deployment.getProperties().getProperty(OPENEJB_QUARTZ_USE_TCCL, "false"))) {
                        Thread.currentThread().setContextClassLoader(EjbTimerServiceImpl.class.getClassLoader());
                    }
                    try {
                        thisScheduler = new StdSchedulerFactory(properties).getScheduler();
                        thisScheduler.start();
                    } finally {
                        Thread.currentThread().setContextClassLoader(oldCl);
                    }

                    //durability is configured with true, which means that the job will be kept in the store even if no trigger is attached to it.
View Full Code Here


/*     */
/*     */     try
/*     */     {
/* 237 */       Scheduler scheduler = this.schedulerFactory.getScheduler();
/*     */
/* 239 */       scheduler.start();
/*     */     } catch (Exception e) {
/* 241 */       this.log.error(captureStackTrace(e));
/*     */
/* 243 */       throw new SchedulerConfigException("Failed to start Scheduler - ", e);
/*     */     }
View Full Code Here

           
            if(shutdownPref != null)
                performShutdown = Boolean.valueOf(shutdownPref).booleanValue();
               
            Scheduler scheduler = factory.getScheduler();
            scheduler.start();
   
          } catch (Exception e) {
              e.printStackTrace();
              log("Quartz Scheduler failed to initialize: " + e.toString());
              throw new ServletException(e);
View Full Code Here

        }

        try {
            Scheduler scheduler = schedulerFactory.getScheduler();

            scheduler.start();
        } catch (Exception e) {
            log.error(captureStackTrace(e));

            throw new SchedulerConfigException("Failed to start Scheduler - ",
                    e);
View Full Code Here

                if (!"true".equals(deployment.getProperties().getProperty(OPENEJB_QUARTZ_USE_TCCL, "false"))) {
                    Thread.currentThread().setContextClassLoader(EjbTimerServiceImpl.class.getClassLoader());
                }
                try {
                    thisScheduler = new StdSchedulerFactory(properties).getScheduler();
                    thisScheduler.start();
                } finally {
                    Thread.currentThread().setContextClassLoader(oldCl);
                }

                //durability is configured with true, which means that the job will be kept in the store even if no trigger is attached to it.
View Full Code Here

   * Temporarily pauses all schedulers from executing future triggers
   * @throws SchedulerException
   */
  public static void startSchedulers () throws SchedulerException {
    Scheduler sched = DotSchedulerFactory.getInstance().getScheduler();
    sched.start();
    sched = DotSchedulerFactory.getInstance().getSequentialScheduler();
    sched.start();
  }
 
  /**
 
View Full Code Here

   */
  public static void startSchedulers () throws SchedulerException {
    Scheduler sched = DotSchedulerFactory.getInstance().getScheduler();
    sched.start();
    sched = DotSchedulerFactory.getInstance().getSequentialScheduler();
    sched.start();
  }
 
  /**
   * Temporarily pauses all schedulers from executing future triggers
   * @throws SchedulerException
View Full Code Here

   * Temporarily pauses all schedulers from executing future triggers
   * @throws SchedulerException
   */
  public static void startStandardSchedulers () throws SchedulerException {
    Scheduler sched = DotSchedulerFactory.getInstance().getScheduler();
    sched.start();
  }

  /**
   * Temporarily pauses all schedulers from executing future triggers
   * @throws SchedulerException
View Full Code Here

   * Temporarily pauses all schedulers from executing future triggers
   * @throws SchedulerException
   */
  public static void startSequentialSchedulers () throws SchedulerException {
    Scheduler sched = DotSchedulerFactory.getInstance().getSequentialScheduler();
    sched.start();
  }

    /**
     * Starts the local quartz scheduler
     *
 
View Full Code Here

     *
     * @throws SchedulerException
     */
    public static void startLocalScheduler () throws SchedulerException {
        Scheduler localScheduler = DotSchedulerFactory.getInstance().getLocalScheduler();
        localScheduler.start();
    }

  /**
   * Returns you the standard quartz scheduler class that let have more control over jobs and triggers
   * @return
 
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.