MotechSchedulerFactoryBean

public class MotechSchedulerFactoryBean

The MotechSchedulerFactoryBean is used to create scheduler and start it.

Constructors

MotechSchedulerFactoryBean

public MotechSchedulerFactoryBean(ApplicationContext applicationContext, Properties schedulerProperties)

Constructor.

Parameters:
  • applicationContext – the Spring context of the Scheduler module, not null
  • schedulerProperties – the properties of scheduler, not null

Methods

getQuartzScheduler

public Scheduler getQuartzScheduler()

Returns created scheduler.

Returns:the created scheduler

getQuartzSchedulerFactoryBean

public SchedulerFactoryBean getQuartzSchedulerFactoryBean()

init

public void init()

Creates the Spring SchedulerFactoryBean.

shutdown

public void shutdown()

Shuts down MotechSchedulerFactoryBean.