Class ContextInstanceServiceBase
- java.lang.Object
-
- org.ikasan.orchestration.service.context.ContextInstanceServiceBase
-
- Direct Known Subclasses:
ContextInstanceRecoveryServiceImpl,ContextInstanceRegistrationServiceImpl,MissingContextInstanceRecoveryRunnable
public abstract class ContextInstanceServiceBase extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected org.ikasan.spec.scheduled.instance.service.ContextInstancePublicationService<org.ikasan.spec.scheduled.instance.model.ContextInstance>contextInstancePublicationServiceprotected org.ikasan.job.orchestration.context.register.ContextInstanceSchedulerServicecontextInstanceSchedulerServiceprotected org.ikasan.spec.scheduled.event.service.ContextInstanceStateChangeEventBroadcastercontextInstanceStateChangeEventBroadcasterprotected org.ikasan.spec.scheduled.instance.service.ContextParametersInstanceServicecontextParametersInstanceServiceprotected org.ikasan.spec.scheduled.job.service.InternalEventDrivenJobServiceinternalEventDrivenJobServiceprotected org.ikasan.spec.scheduled.job.service.JobInitiationServicejobInitiationServiceprotected org.ikasan.spec.scheduled.joblock.service.JobLockCacheInitialisationServicejobLockCacheInitialisationServiceprotected org.ikasan.spec.scheduled.joblock.service.JobLockCacheServicejobLockCacheServiceprotected org.ikasan.spec.metadata.ModuleMetaDataServicemoduleMetadataServiceprotected com.fasterxml.jackson.databind.ObjectMapperobjectMapperprotected java.lang.StringqueueDirectoryprotected org.ikasan.spec.scheduled.instance.service.ScheduledContextInstanceServicescheduledContextInstanceServiceprotected org.ikasan.spec.scheduled.context.service.ScheduledContextServicescheduledContextServiceprotected org.ikasan.spec.scheduled.instance.service.SchedulerJobInstanceServiceschedulerJobInstanceServiceprotected org.ikasan.spec.scheduled.event.service.SchedulerJobStateChangeEventBroadcasterschedulerJobStateChangeEventBroadcasterprotected org.ikasan.job.orchestration.context.util.TimeServicetimeService
-
Constructor Summary
Constructors Constructor Description ContextInstanceServiceBase(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 contextParametersUpdateService, 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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.List<org.ikasan.spec.scheduled.instance.model.ContextInstance>findPrepared(java.lang.String contextName)protected voidinitialiseContextMachine(org.ikasan.spec.scheduled.context.model.ContextTemplate context, org.ikasan.spec.scheduled.instance.model.ContextInstance instance, boolean initialiseJobs, boolean isInitialContextInstantiation, java.util.List<org.ikasan.spec.scheduled.instance.model.ContextParameterInstance> contextParameterInstances)protected voidprepareContextInstance(org.ikasan.spec.scheduled.context.model.ContextTemplate context, org.ikasan.spec.scheduled.instance.model.ContextInstance instance, boolean initialiseJobs)protected voidprepareFutureContextInstance(java.lang.String contextName)protected voidremoveAgentInstances(org.ikasan.spec.scheduled.instance.model.ContextInstance instance)protected voidremoveAllContextInstancesFromAgent()protected voidremoveAllPrepared(java.lang.String contextName)protected voidremoveContextInstance(java.lang.String contextInstanceId)protected voidsaveContextInstance(org.ikasan.spec.scheduled.instance.model.ContextInstance contextInstance, org.ikasan.spec.scheduled.instance.model.InstanceStatus instanceStatus)
-
-
-
Field Detail
-
queueDirectory
protected final java.lang.String queueDirectory
-
scheduledContextInstanceService
protected final org.ikasan.spec.scheduled.instance.service.ScheduledContextInstanceService scheduledContextInstanceService
-
jobInitiationService
protected final org.ikasan.spec.scheduled.job.service.JobInitiationService jobInitiationService
-
moduleMetadataService
protected final org.ikasan.spec.metadata.ModuleMetaDataService moduleMetadataService
-
internalEventDrivenJobService
protected final org.ikasan.spec.scheduled.job.service.InternalEventDrivenJobService internalEventDrivenJobService
-
contextParametersInstanceService
protected final org.ikasan.spec.scheduled.instance.service.ContextParametersInstanceService contextParametersInstanceService
-
contextInstancePublicationService
protected final org.ikasan.spec.scheduled.instance.service.ContextInstancePublicationService<org.ikasan.spec.scheduled.instance.model.ContextInstance> contextInstancePublicationService
-
jobLockCacheService
protected final org.ikasan.spec.scheduled.joblock.service.JobLockCacheService jobLockCacheService
-
scheduledContextService
protected final org.ikasan.spec.scheduled.context.service.ScheduledContextService scheduledContextService
-
schedulerJobInstanceService
protected final org.ikasan.spec.scheduled.instance.service.SchedulerJobInstanceService schedulerJobInstanceService
-
jobLockCacheInitialisationService
protected final org.ikasan.spec.scheduled.joblock.service.JobLockCacheInitialisationService jobLockCacheInitialisationService
-
contextInstanceStateChangeEventBroadcaster
protected final org.ikasan.spec.scheduled.event.service.ContextInstanceStateChangeEventBroadcaster contextInstanceStateChangeEventBroadcaster
-
schedulerJobStateChangeEventBroadcaster
protected final org.ikasan.spec.scheduled.event.service.SchedulerJobStateChangeEventBroadcaster schedulerJobStateChangeEventBroadcaster
-
contextInstanceSchedulerService
protected final org.ikasan.job.orchestration.context.register.ContextInstanceSchedulerService contextInstanceSchedulerService
-
timeService
protected final org.ikasan.job.orchestration.context.util.TimeService timeService
-
objectMapper
protected final com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
-
Constructor Detail
-
ContextInstanceServiceBase
public ContextInstanceServiceBase(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 contextParametersUpdateService, 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)
-
-
Method Detail
-
saveContextInstance
protected void saveContextInstance(org.ikasan.spec.scheduled.instance.model.ContextInstance contextInstance, org.ikasan.spec.scheduled.instance.model.InstanceStatus instanceStatus)
-
initialiseContextMachine
protected void initialiseContextMachine(org.ikasan.spec.scheduled.context.model.ContextTemplate context, org.ikasan.spec.scheduled.instance.model.ContextInstance instance, boolean initialiseJobs, boolean isInitialContextInstantiation, java.util.List<org.ikasan.spec.scheduled.instance.model.ContextParameterInstance> contextParameterInstances) throws java.lang.Exception- Throws:
java.lang.Exception
-
prepareContextInstance
protected void prepareContextInstance(org.ikasan.spec.scheduled.context.model.ContextTemplate context, org.ikasan.spec.scheduled.instance.model.ContextInstance instance, boolean initialiseJobs) throws java.lang.Exception- Throws:
java.lang.Exception
-
prepareFutureContextInstance
protected void prepareFutureContextInstance(java.lang.String contextName)
-
removeAgentInstances
protected void removeAgentInstances(org.ikasan.spec.scheduled.instance.model.ContextInstance instance)
-
removeAllContextInstancesFromAgent
protected void removeAllContextInstancesFromAgent()
-
findPrepared
protected java.util.List<org.ikasan.spec.scheduled.instance.model.ContextInstance> findPrepared(java.lang.String contextName)
-
removeAllPrepared
protected void removeAllPrepared(java.lang.String contextName)
-
removeContextInstance
protected void removeContextInstance(java.lang.String contextInstanceId)
-
-