Package org.quartz.impl

Examples of org.quartz.impl.StdSchedulerFactory.initialize()


            if (quartzConfig != null && !"".equals(quartzConfig)) {
                if (log.isDebugEnabled()) {
                    log.debug("Initiating a Scheduler with configuration : " + quartzConfig);
                }

                sf.initialize(quartzConfig);
            }
        } catch (SchedulerException e) {
            throw new SynapseException("Error initiating scheduler factory "
                    + sf + "with configuration loaded from " + quartzConfig, e);
        }
View Full Code Here


      // First we must get a reference to a scheduler
      StdSchedulerFactory sf = new StdSchedulerFactory();
      try
      {
         holder.set(ctx.getWorkManager()); // make sure we set this before any init
         sf.initialize(quartzPropsStream);
         sched = sf.getScheduler();
         sched.start();
      }
      catch (SchedulerException e)
      {
View Full Code Here

                    if (log.isDebugEnabled()) {
                        log.debug("Initiating a Scheduler with configuration : " + quartzConf);
                    }

                    sf.initialize(quartzConf);
                }
            } catch (SchedulerException e) {
                throw new SynapseTaskException("Error initiating scheduler factory "
                        + sf + "with configuration loaded from " + quartzConf, e, log);
            }
View Full Code Here

       //TODO: magical properties files are *not* the way to config Seam apps!
       InputStream is = Thread.currentThread().getContextClassLoader().getResourceAsStream("seam.quartz.properties");
       if (is != null)
       {
         schedulerFactory.initialize(is);
         log.debug("Found seam.quartz.properties file. Using it for Quartz config.");
       }
       else
       {
         schedulerFactory.initialize();
View Full Code Here

         schedulerFactory.initialize(is);
         log.debug("Found seam.quartz.properties file. Using it for Quartz config.");
       }
       else
       {
         schedulerFactory.initialize();
         log.debug("No seam.quartz.properties file. Using in-memory job store.");
       }
   
       scheduler = schedulerFactory.getScheduler();
       scheduler.start();
View Full Code Here

            if (quartzConfig != null && !"".equals(quartzConfig)) {
                if (log.isDebugEnabled()) {
                    log.debug("Initiating a Scheduler with configuration : " + quartzConfig);
                }

                sf.initialize(quartzConfig);
            }
        } catch (SchedulerException e) {
            throw new SynapseException("Error initiating scheduler factory "
                    + sf + "with configuration loaded from " + quartzConfig, e);
        }
View Full Code Here

                    if (log.isDebugEnabled()) {
                        log.debug("Initiating a Scheduler with configuration : " + quartzConf);
                    }

                    sf.initialize(quartzConf);
                }
            } catch (SchedulerException e) {
                throw new SynapseTaskException("Error initiating scheduler factory "
                        + sf + "with configuration loaded from " + quartzConf, e, log);
            }
View Full Code Here

        schedulerConfig.setProperty(StdSchedulerFactory.PROP_THREAD_POOL_PREFIX + ".threadCount", "5");
        schedulerConfig.setProperty(StdSchedulerFactory.PROP_THREAD_POOL_PREFIX + ".threadNamePrefix",
            "RHQServerPluginsJob");

        StdSchedulerFactory factory = new StdSchedulerFactory();
        factory.initialize(schedulerConfig);

        Scheduler scheduler = factory.getScheduler();
        scheduler.start();

        this.nonClusteredSchedulerFactory = factory;
View Full Code Here

                    if (log.isDebugEnabled()) {
                        log.debug("Initiating a Scheduler with configuration : " + quartzConf);
                    }

                    sf.initialize(quartzConf);
                }
            } catch (SchedulerException e) {
                throw new SynapseTaskException("Error initiating scheduler factory "
                        + sf + "with configuration loaded from " + quartzConf, e, log);
            }
View Full Code Here

    try {
      StdSchedulerFactory factory = new StdSchedulerFactory();
      Properties config = new Properties();
      InputStream configSource = Thread.currentThread().getContextClassLoader().getResourceAsStream("org/jresearch/gossip/resources/scheduler.properties");
      config.load(configSource);
      factory.initialize(config);
      m_scheduler = factory.getScheduler();
      m_scheduler.addGlobalJobListener(new JobListener());
      m_scheduler.addGlobalTriggerListener(new TriggerListener());
      JobDetail jobDetail = new JobDetail(
          getConfValue(config, "task.name"),
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.