Package de.dlr.proseo.ordergen.quartz
Class OrderGenScheduler
java.lang.Object
de.dlr.proseo.ordergen.quartz.OrderGenScheduler
OrderGenScheduler to hold and manage triggers.
- Author:
- Ernst Melchinger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidLoad the Calendar triggers from database and add them to the schedulervoidLoad the TimeIntervall triggers from database and add them to the schedulervoidbuildNextOrbitTriggerFor(OrderTrigger orderTrigger) Build and start a trigger for the next orbit.voidLoad the Orbit triggers from database and add them to the schedulervoidinit(TriggerUtil util) Initialize the schedulervoidreload()Shutdown, initialize, build triggers and start the quartz schedulervoidsetTxManager(org.springframework.transaction.PlatformTransactionManager txManager) voidshutdown()Shutdown the quartz schedulervoidstart()Start the quartz scheduler
-
Constructor Details
-
OrderGenScheduler
public OrderGenScheduler()
-
-
Method Details
-
setTxManager
public void setTxManager(org.springframework.transaction.PlatformTransactionManager txManager) - Parameters:
txManager- the txManager to set
-
init
Initialize the scheduler- Parameters:
util- The TriggerUtil instance- Throws:
org.quartz.SchedulerException
-
buildCalendarTriggers
@Transactional(isolation=REPEATABLE_READ) public void buildCalendarTriggers() throws org.quartz.SchedulerExceptionLoad the Calendar triggers from database and add them to the scheduler- Throws:
org.quartz.SchedulerException
-
buildImeIntervalTriggers
@Transactional(isolation=REPEATABLE_READ) public void buildImeIntervalTriggers() throws org.quartz.SchedulerExceptionLoad the TimeIntervall triggers from database and add them to the scheduler- Throws:
org.quartz.SchedulerException
-
buildOrbitTriggers
@Transactional(isolation=REPEATABLE_READ) public void buildOrbitTriggers() throws org.quartz.SchedulerExceptionLoad the Orbit triggers from database and add them to the scheduler- Throws:
org.quartz.SchedulerException
-
buildNextOrbitTriggerFor
public void buildNextOrbitTriggerFor(OrderTrigger orderTrigger) throws org.quartz.SchedulerException Build and start a trigger for the next orbit.- Parameters:
orderTrigger-- Throws:
org.quartz.SchedulerException
-
start
public void start() throws org.quartz.SchedulerExceptionStart the quartz scheduler- Throws:
org.quartz.SchedulerException
-
shutdown
public void shutdown() throws org.quartz.SchedulerExceptionShutdown the quartz scheduler- Throws:
org.quartz.SchedulerException
-
reload
public void reload() throws org.quartz.SchedulerExceptionShutdown, initialize, build triggers and start the quartz scheduler- Throws:
org.quartz.SchedulerException
-