Class ContextInstanceSchedulerService
- java.lang.Object
-
- org.ikasan.quartz.AbstractDashboardSchedulerService
-
- org.ikasan.job.orchestration.context.register.ContextInstanceSchedulerService
-
public class ContextInstanceSchedulerService extends org.ikasan.quartz.AbstractDashboardSchedulerService
-
-
Constructor Summary
Constructors Constructor Description ContextInstanceSchedulerService(org.quartz.Scheduler scheduler, org.ikasan.scheduler.ScheduledJobFactory scheduledJobFactory, org.ikasan.spec.scheduled.context.service.ScheduledContextService scheduledContextService, org.ikasan.spec.scheduled.context.service.ContextInstanceRegistrationService contextInstanceRegistrationService, boolean isContextLifeCycleActive, boolean isIkasanEnterpriseSchedulerInstance)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidregisterEndJobAndTrigger(java.lang.String contextName, java.lang.String cronExpressionToTriggerJob, java.lang.String timezone, java.lang.String contextInstanceId)This sets up the context instance destroy job and its trigger.voidregisterJobs()Once the beans are created, interrogate the data source for the saved Schedule Details Kick off a start trigger for each contextNamevoidregisterStartJobAndTrigger(java.lang.String contextName, java.lang.String cronExpressionToTriggerJob, java.lang.String timezone)This is the job for the start of context.
-
-
-
Constructor Detail
-
ContextInstanceSchedulerService
public ContextInstanceSchedulerService(org.quartz.Scheduler scheduler, org.ikasan.scheduler.ScheduledJobFactory scheduledJobFactory, org.ikasan.spec.scheduled.context.service.ScheduledContextService scheduledContextService, org.ikasan.spec.scheduled.context.service.ContextInstanceRegistrationService contextInstanceRegistrationService, boolean isContextLifeCycleActive, boolean isIkasanEnterpriseSchedulerInstance)
-
-
Method Detail
-
registerJobs
@PostConstruct public void registerJobs()
Once the beans are created, interrogate the data source for the saved Schedule Details Kick off a start trigger for each contextName- Specified by:
registerJobsin classorg.ikasan.quartz.AbstractDashboardSchedulerService
-
registerStartJobAndTrigger
public void registerStartJobAndTrigger(java.lang.String contextName, java.lang.String cronExpressionToTriggerJob, java.lang.String timezone)This is the job for the start of context. Note that we don't register the destroy job yet, we wait till the job actually fires so we can pass the correct contextID to the destroy job.- Parameters:
contextName- to startcronExpressionToTriggerJob- to start attimezone- for the tme window
-
registerEndJobAndTrigger
public void registerEndJobAndTrigger(java.lang.String contextName, java.lang.String cronExpressionToTriggerJob, java.lang.String timezone, java.lang.String contextInstanceId)This sets up the context instance destroy job and its trigger. It will be typically called when the context instance is actually created / initialised- Parameters:
contextName- for the starting context to which this will be pairedcronExpressionToTriggerJob- for this instancetimezone- for the cron expressioncontextInstanceId- used to pair the destroy context instance with the correct create context instance.
-
-