Examples of SchedulerFactory


Examples of org.quartz.SchedulerFactory

{
   private Scheduler scheduler_;

   public QuartzSheduler() throws Exception
   {
      SchedulerFactory sf = new StdSchedulerFactory();
      scheduler_ = sf.getScheduler();
      scheduler_.start();
   }
View Full Code Here

Examples of org.quartz.SchedulerFactory

     */
    public SchedulerWrapper(String _servletContextPath, String _schedulerConfigurationPath) {
        this.servletContextPath = _servletContextPath;
        this.schedulerConfigurationPath = _schedulerConfigurationPath;

        SchedulerFactory factory = new StdSchedulerFactory();
        log.info("------- Starting up -----------------------");

        try {
            this.scheduler = factory.getScheduler();

            this.scheduler.addSchedulerListener(new AbstractSchedulerListener());
            this.scheduler.start();
        } catch (SchedulerException e) {
            log.error("Can't initialize SchedulerWrapper: ", e);
View Full Code Here

Examples of org.quartz.SchedulerFactory

        }
        return answer;
    }

    protected SchedulerFactory createSchedulerFactory() throws SchedulerException {
        SchedulerFactory answer;

        Properties prop = loadProperties();
        if (prop != null) {

            // force disabling update checker (will do online check over the internet)
View Full Code Here

Examples of org.quartz.SchedulerFactory

        try
        {
            if (quartzScheduler == null)
            {
                SchedulerFactory factory = new StdSchedulerFactory(factoryProperties);
                quartzScheduler = factory.getScheduler();
            }
            quartzScheduler.getContext().put(MuleProperties.MULE_CONTEXT_PROPERTY, muleContext);           
       
        }
        catch (Exception e)
View Full Code Here

Examples of org.quartz.SchedulerFactory

import org.quartz.impl.StdSchedulerFactory;

public class SchedulerUtil {
 
  public static Calendar getCalendarByCronExpression(String cronExpression) throws Exception {
    SchedulerFactory sf = new StdSchedulerFactory();
    Scheduler sched = sf.getScheduler();
   
    JobDetail jd = sched.getJobDetail("tempJobDetail", "tempGroupJobDetail");
    if (jd != null) {
      sched.unscheduleJob("tempJobDetail", "tempGroupJobDetail");
      sched.deleteJob("tempJobDetail" , "tempGroupJobDetail");
View Full Code Here

Examples of org.quartz.SchedulerFactory

    if (this.dataSource == null && this.nonTransactionalDataSource != null) {
      this.dataSource = this.nonTransactionalDataSource;
    }

    // Create SchedulerFactory instance.
    SchedulerFactory schedulerFactory = (SchedulerFactory)
        BeanUtils.instantiateClass(this.schedulerFactoryClass);

    initSchedulerFactory(schedulerFactory);

    if (this.resourceLoader != null) {
View Full Code Here

Examples of org.quartz.SchedulerFactory

        if (this.scheduler != null)
        {
            throw new UnsupportedOperationException("the scheduler is started already");
        }

        SchedulerFactory schedulerFactory;
        try
        {
            String configFile =
                ConfigResolver.getPropertyValue("deltaspike.scheduler.quartz_config-file", "quartz.properties");
            schedulerFactory = new StdSchedulerFactory(configFile);
        }
        catch (SchedulerException e)
        {
            schedulerFactory = new StdSchedulerFactory();
        }

        try
        {
            this.scheduler = schedulerFactory.getScheduler();
            this.scheduler.getListenerManager().addJobListener(new InjectionAwareJobListener());

            if (!this.scheduler.isStarted())
            {
                String delayedStart =
View Full Code Here

Examples of org.quartz.SchedulerFactory

        }
        return answer;
    }

    protected SchedulerFactory createSchedulerFactory() throws SchedulerException {
        SchedulerFactory answer;

        Properties prop = loadProperties();
        if (prop != null) {

            // force disabling update checker (will do online check over the internet)
View Full Code Here

Examples of org.quartz.SchedulerFactory

    if (this.applicationContext != null && this.resourceLoader == null) {
      this.resourceLoader = this.applicationContext;
    }

    // Create SchedulerFactory instance.
    SchedulerFactory schedulerFactory = (SchedulerFactory)
        BeanUtils.instantiateClass(this.schedulerFactoryClass);

    initSchedulerFactory(schedulerFactory);

    if (this.resourceLoader != null) {
View Full Code Here

Examples of org.quartz.SchedulerFactory

    if (this.dataSource == null && this.nonTransactionalDataSource != null) {
      this.dataSource = this.nonTransactionalDataSource;
    }

    // Create SchedulerFactory instance.
    SchedulerFactory schedulerFactory = (SchedulerFactory) BeanUtils.instantiateClass(this.schedulerFactoryClass);

    initSchedulerFactory(schedulerFactory);

    if (this.resourceLoader != null) {
      // Make given ResourceLoader available for SchedulerFactory configuration.
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.