Package org.quartz.impl

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


        // instantiating a specific scheduler from a property file or properties
        StdSchedulerFactory schedulerFactory = new StdSchedulerFactory();
        if(this.quartzProperties != null)
        {
            getLogger().info("Pulling quartz configuration from the container XML configuration");
            schedulerFactory.initialize(this.quartzProperties);
        }
        else if(this.quartzPropertyFile != null)
        {
            getLogger().info("Pulling quartz configuration from the following property file : " + this.quartzPropertyFile);
            schedulerFactory.initialize(this.quartzPropertyFile);
View Full Code Here


            schedulerFactory.initialize(this.quartzProperties);
        }
        else if(this.quartzPropertyFile != null)
        {
            getLogger().info("Pulling quartz configuration from the following property file : " + this.quartzPropertyFile);
            schedulerFactory.initialize(this.quartzPropertyFile);
        }
        else
        {
            getLogger().info("Using Quartz default configuration since no user-supplied configuration was found");
            schedulerFactory.initialize();
View Full Code Here

            schedulerFactory.initialize(this.quartzPropertyFile);
        }
        else
        {
            getLogger().info("Using Quartz default configuration since no user-supplied configuration was found");
            schedulerFactory.initialize();
        }

        this.scheduler = schedulerFactory.getScheduler();

        // add this service instance as JobListener to allow basic monitoring
View Full Code Here

    props.setProperty( "org.quartz.threadPool.class", org.quartz.simpl.SimpleThreadPool.class.getName() );
    props.setProperty( "org.quartz.threadPool.threadCount", "1" );
    props.setProperty( "org.quartz.jobStore.class", org.quartz.simpl.RAMJobStore.class.getName() );

    StdSchedulerFactory factory = new StdSchedulerFactory();
    factory.initialize( props );
   
    scheduler = factory.getScheduler();

    Date firstStartup = new Date( System.currentTimeMillis() + ( 30 * 1000 ) );
   
View Full Code Here

  protected synchronized void initializeScheduler() {
    StdSchedulerFactory sf = new StdSchedulerFactory();
    Properties properties = getQuartzSchedulerProperties();
    try {
      sf.initialize(properties);
    } catch (SchedulerException e) {
      LOG.warn("Failed to initialize Request Execution Scheduler properties !");
      LOG.debug("Scheduler properties: \n" + properties);
      e.printStackTrace();
      return;
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.warn("No seam.quartz.properties file. Using in-memory job store.");
       }
   
       scheduler = schedulerFactory.getScheduler();
       scheduler.start();
View Full Code Here

    {
        StdSchedulerFactory schedulerFactory = new StdSchedulerFactory();

        if ( schedulerConfiguration.getProperties() != null )
        {
            schedulerFactory.initialize( schedulerConfiguration.getProperties() );
        }

        this.scheduler = schedulerFactory.getScheduler();

        if ( !schedulerConfiguration.startManually() )
View Full Code Here

    private static void initializeQuartz() throws SchedulerException,
            ParseException, ClassNotFoundException {
        Logger log = Logger.getLogger(XPlannerInitializationPlugin.class);
        StdSchedulerFactory schedulerFactory = new StdSchedulerFactory();
        Properties schedulerProperties = new XPlannerProperties().get();
        schedulerFactory.initialize(schedulerProperties);
        Scheduler jobScheduler = schedulerFactory.getScheduler();
        Enumeration propertyNames = schedulerProperties.propertyNames();
        while (propertyNames.hasMoreElements()) {
            String name = (String)propertyNames.nextElement();
            if (name.endsWith(".job")) {
View Full Code Here

      try{
        Thread currThread = Thread.currentThread();
        ClassLoader classLoader = currThread.getContextClassLoader();
        InputStream propIs = classLoader.getResourceAsStream("quartz.properties");
          properties.load(propIs);
          stdSchedFact.initialize(properties);
          Scheduler sched = stdSchedFact.getScheduler();
          sched.start();
      } catch (Exception e) {
        SpagoBITracer.major(SpagoBIConstants.NAME_MODULE, this.getClass().getName(),
                        "init", "Error while initializing scheduler " + 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.