Class ContextInstanceRecoveryServiceImpl
- java.lang.Object
-
- org.ikasan.orchestration.service.context.ContextInstanceServiceBase
-
- org.ikasan.orchestration.service.context.recovery.ContextInstanceRecoveryServiceImpl
-
- All Implemented Interfaces:
org.ikasan.spec.scheduled.context.service.ContextInstanceRecoveryService
public class ContextInstanceRecoveryServiceImpl extends ContextInstanceServiceBase implements org.ikasan.spec.scheduled.context.service.ContextInstanceRecoveryService
-
-
Field Summary
-
Fields inherited from class org.ikasan.orchestration.service.context.ContextInstanceServiceBase
contextInstancePublicationService, contextInstanceSchedulerService, contextInstanceStateChangeEventBroadcaster, contextParametersInstanceService, internalEventDrivenJobService, jobInitiationService, jobLockCacheInitialisationService, jobLockCacheService, moduleMetadataService, objectMapper, queueDirectory, scheduledContextInstanceService, scheduledContextService, schedulerJobInstanceService, schedulerJobStateChangeEventBroadcaster, timeService
-
-
Constructor Summary
Constructors Constructor Description 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
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidrecoverInstances()Re-create an instances that should be running as at now.-
Methods inherited from class org.ikasan.orchestration.service.context.ContextInstanceServiceBase
findPrepared, initialiseContextMachine, prepareContextInstance, prepareFutureContextInstance, removeAgentInstances, removeAllContextInstancesFromAgent, removeAllPrepared, removeContextInstance, saveContextInstance
-
-
-
-
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:
recoverInstancesin interfaceorg.ikasan.spec.scheduled.context.service.ContextInstanceRecoveryService
-
-