Package org.quartz

Examples of org.quartz.Scheduler.shutdown()


    public static void shutdown() {

        Scheduler scheduler = SystemInstance.get().getComponent(Scheduler.class);
        if (scheduler != null) try {
            scheduler.shutdown();
        } catch (SchedulerException e) {
            throw new OpenEJBRuntimeException("Unable to shutdown scheduler", e);
        }

    }
View Full Code Here


    public static void shutdown() {

        Scheduler scheduler = SystemInstance.get().getComponent(Scheduler.class);
        if (scheduler != null) try {
            scheduler.shutdown();
        } catch (SchedulerException e) {
            throw new RuntimeException("Unable to shutdown scheduler", e);
        }

    }
View Full Code Here

    protected void shutdownNonClusteredScheduler() {
        if (this.nonClusteredSchedulerFactory != null) {
            try {
                Scheduler scheduler = this.nonClusteredSchedulerFactory.getScheduler();
                if (scheduler != null) {
                    scheduler.shutdown(false);
                }
            } catch (Exception e) {
                log.warn("Failed to shutdown master plugin container nonclustered scheduler", e);
            } finally {
                this.nonClusteredSchedulerFactory = null;
View Full Code Here

  public void schedulerShutDown() {

    Scheduler sched = null;
    try {
      sched = StdSchedulerFactory.getDefaultScheduler();
      sched.shutdown();
    } catch (SchedulerException e1) {

      e1.printStackTrace();
    }
  }
View Full Code Here

        this.enabled = false;

        if (schedulerImplicitlyCreated) {
            try {
                scheduler.shutdown();
            } catch (SchedulerException e) {
                if (log.isWarnEnabled()) {
                    log.warn("Unable to cleanly shutdown implicitly created Quartz Scheduler instance.", e);
                }
            } finally {
View Full Code Here

    schedulerControl.setVoidCallable();
    scheduler.scheduleJob(trigger1);
    schedulerControl.setReturnValue(new Date());
    scheduler.start();
    schedulerControl.setVoidCallable();
    scheduler.shutdown(false);
    schedulerControl.setVoidCallable();
    schedulerControl.replay();

    SchedulerFactoryBean schedulerFactoryBean = new SchedulerFactoryBean() {
      protected Scheduler createScheduler(SchedulerFactory schedulerFactory, String schedulerName) {
View Full Code Here

    schedulerControl.setVoidCallable();
    scheduler.scheduleJob(trigger0);
    schedulerControl.setReturnValue(new Date());
    scheduler.start();
    schedulerControl.setVoidCallable();
    scheduler.shutdown(false);
    schedulerControl.setVoidCallable();
    schedulerControl.replay();

    SchedulerFactoryBean schedulerFactoryBean = new SchedulerFactoryBean() {
      protected Scheduler createScheduler(SchedulerFactory schedulerFactory, String schedulerName) {
View Full Code Here

      scheduler.rescheduleJob("myTrigger0", Scheduler.DEFAULT_GROUP, trigger0);
      schedulerControl.setReturnValue(new Date());
    }
    scheduler.start();
    schedulerControl.setVoidCallable();
    scheduler.shutdown(false);
    schedulerControl.setVoidCallable();
    schedulerControl.replay();

    SchedulerFactoryBean schedulerFactoryBean = new SchedulerFactoryBean() {
      protected Scheduler createScheduler(SchedulerFactory schedulerFactory, String schedulerName) {
View Full Code Here

    schedulerControl.setVoidCallable();
    scheduler.addTriggerListener(triggerListener);
    schedulerControl.setVoidCallable();
    scheduler.start();
    schedulerControl.setVoidCallable();
    scheduler.shutdown(false);
    schedulerControl.setVoidCallable();
    schedulerControl.replay();

    SchedulerFactoryBean schedulerFactoryBean = new SchedulerFactoryBean() {
      protected Scheduler createScheduler(SchedulerFactory schedulerFactory, String schedulerName) {
View Full Code Here

    schedulerControl.setReturnValue(new Date());
    scheduler.scheduleJob(trigger1);
    schedulerControl.setReturnValue(new Date());
    scheduler.start();
    schedulerControl.setVoidCallable();
    scheduler.shutdown(false);
    schedulerControl.setVoidCallable();
    schedulerControl.replay();

    SchedulerFactoryBean schedulerFactoryBean = new SchedulerFactoryBean() {
      protected Scheduler createScheduler(SchedulerFactory schedulerFactory, String schedulerName) {
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.