Class ContextInstanceRecoveryServiceImpl

  • All Implemented Interfaces:
    org.ikasan.spec.scheduled.context.service.ContextInstanceRecoveryService

    public class ContextInstanceRecoveryServiceImpl
    extends ContextInstanceServiceBase
    implements org.ikasan.spec.scheduled.context.service.ContextInstanceRecoveryService
    • Constructor Detail

      • ContextInstanceRecoveryServiceImpl

        public ContextInstanceRecoveryServiceImpl​(java.lang.String queueDirectory,
                                                  org.ikasan.spec.scheduled.instance.service.ScheduledContextInstanceService scheduledContextInstanceService,
                                                  org.ikasan.spec.scheduled.job.service.JobInitiationService jobInitiationService,
                                                  org.ikasan.spec.metadata.ModuleMetaDataService moduleMetadataService,
                                                  org.ikasan.spec.scheduled.job.service.InternalEventDrivenJobService internalEventDrivenJobService,
                                                  org.ikasan.spec.scheduled.instance.service.ContextParametersInstanceService contextParametersInstanceService,
                                                  org.ikasan.spec.scheduled.instance.service.ContextInstancePublicationService contextInstancePublicationService,
                                                  org.ikasan.spec.scheduled.joblock.service.JobLockCacheService jobLockCacheService,
                                                  org.ikasan.spec.scheduled.context.service.ScheduledContextService scheduledContextService,
                                                  org.ikasan.spec.scheduled.instance.service.SchedulerJobInstanceService schedulerJobInstanceService,
                                                  org.ikasan.spec.scheduled.event.service.ContextInstanceStateChangeEventBroadcaster contextInstanceStateChangeEventBroadcaster,
                                                  org.ikasan.spec.scheduled.event.service.SchedulerJobStateChangeEventBroadcaster schedulerJobStateChangeEventBroadcaster,
                                                  org.ikasan.spec.scheduled.joblock.service.JobLockCacheInitialisationService jobLockCacheInitialisationService,
                                                  org.ikasan.job.orchestration.context.register.ContextInstanceSchedulerService contextInstanceSchedulerService,
                                                  org.ikasan.job.orchestration.context.util.TimeService timeService,
                                                  org.ikasan.spec.scheduled.context.service.ContextInstanceRegistrationService contextInstanceRegistrationService,
                                                  boolean isIkasanEnterpriseSchedulerInstance)
        Constructor
        Parameters:
        queueDirectory -
        scheduledContextInstanceService -
        jobInitiationService -
        moduleMetadataService -
        internalEventDrivenJobService -
        contextParametersInstanceService -
        contextInstancePublicationService -
        jobLockCacheService -
        scheduledContextService -
        schedulerJobInstanceService -
        contextInstanceStateChangeEventBroadcaster -
        schedulerJobStateChangeEventBroadcaster -
        jobLockCacheInitialisationService -
        contextInstanceSchedulerService -
        timeService -
        contextInstanceRegistrationService -
    • Method Detail

      • recoverInstances

        public void recoverInstances()
        Re-create an instances that should be running as at now. Currently, if the end window for a job has passed, or the start window is future to now (which is common of 1 * * ... i.e. every minute) then instances are not brought back to life, which means events gathered on the agents for old instances will cause issues on the scheduler. Likewise, if the dashboard has been down until after the plan has ended, all the status information will be lost.
        Specified by:
        recoverInstances in interface org.ikasan.spec.scheduled.context.service.ContextInstanceRecoveryService