Class JobStatusManagerImpl
- java.lang.Object
-
- com.ibm.jbatch.container.services.impl.JobStatusManagerImpl
-
- All Implemented Interfaces:
IJobStatusManagerService,IBatchServiceBase
public class JobStatusManagerImpl extends Object implements IJobStatusManagerService
-
-
Constructor Summary
Constructors Constructor Description JobStatusManagerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JobStatuscreateJobStatus(long jobInstanceId)This method creates an entry for a new job instanceStepStatuscreateStepStatus(long stepExecutionId)Creates an entry for the step in the stepstatus table during jobsetupJobStatusgetJobStatus(long jobInstanceId)Returns the JobStatus for a given jobInstance idJobStatusgetJobStatusFromExecutionId(long executionId)StepStatusgetStepStatus(long jobInstanceId, String stepId)voidinit(IBatchConfig batchConfig)voidshutdown()voidupdateJobBatchStatus(long jobInstanceId, jakarta.batch.runtime.BatchStatus batchStatus)voidupdateJobCurrentStep(long jobInstanceId, String currentStepName)voidupdateJobExecutionStatus(long jobInstanceId, jakarta.batch.runtime.BatchStatus batchStatus, String exitStatus)voidupdateJobStatus(JobStatus jobStatus)voidupdateJobStatusFromJSLStop(long jobInstanceId, String restartOn)voidupdateJobStatusWithNewExecution(long jobInstanceId, long newExecutionId)voidupdateStepStatus(long stepExecutionId, StepStatus newStepStatus)
-
-
-
Method Detail
-
shutdown
public void shutdown() throws BatchContainerServiceException- Specified by:
shutdownin interfaceIBatchServiceBase- Throws:
BatchContainerServiceException
-
createJobStatus
public JobStatus createJobStatus(long jobInstanceId) throws BatchContainerServiceException
Description copied from interface:IJobStatusManagerServiceThis method creates an entry for a new job instance- Specified by:
createJobStatusin interfaceIJobStatusManagerService- Throws:
BatchContainerServiceException
-
getJobStatus
public JobStatus getJobStatus(long jobInstanceId) throws BatchContainerServiceException
Description copied from interface:IJobStatusManagerServiceReturns the JobStatus for a given jobInstance id- Specified by:
getJobStatusin interfaceIJobStatusManagerService- Returns:
- Throws:
BatchContainerServiceException
-
updateJobStatus
public void updateJobStatus(JobStatus jobStatus)
- Specified by:
updateJobStatusin interfaceIJobStatusManagerService
-
getJobStatusFromExecutionId
public JobStatus getJobStatusFromExecutionId(long executionId) throws BatchContainerServiceException
- Specified by:
getJobStatusFromExecutionIdin interfaceIJobStatusManagerService- Throws:
BatchContainerServiceException
-
updateJobBatchStatus
public void updateJobBatchStatus(long jobInstanceId, jakarta.batch.runtime.BatchStatus batchStatus) throws BatchContainerServiceException- Specified by:
updateJobBatchStatusin interfaceIJobStatusManagerService- Throws:
BatchContainerServiceException
-
updateJobExecutionStatus
public void updateJobExecutionStatus(long jobInstanceId, jakarta.batch.runtime.BatchStatus batchStatus, String exitStatus) throws BatchContainerServiceException- Specified by:
updateJobExecutionStatusin interfaceIJobStatusManagerService- Throws:
BatchContainerServiceException
-
updateJobCurrentStep
public void updateJobCurrentStep(long jobInstanceId, String currentStepName) throws BatchContainerServiceException- Specified by:
updateJobCurrentStepin interfaceIJobStatusManagerService- Throws:
BatchContainerServiceException
-
updateJobStatusWithNewExecution
public void updateJobStatusWithNewExecution(long jobInstanceId, long newExecutionId) throws BatchContainerServiceException- Specified by:
updateJobStatusWithNewExecutionin interfaceIJobStatusManagerService- Throws:
BatchContainerServiceException
-
createStepStatus
public StepStatus createStepStatus(long stepExecutionId) throws BatchContainerServiceException
Description copied from interface:IJobStatusManagerServiceCreates an entry for the step in the stepstatus table during jobsetup- Specified by:
createStepStatusin interfaceIJobStatusManagerService- Throws:
BatchContainerServiceException
-
getStepStatus
public StepStatus getStepStatus(long jobInstanceId, String stepId) throws BatchContainerServiceException
- Specified by:
getStepStatusin interfaceIJobStatusManagerService- Throws:
BatchContainerServiceException
-
updateStepStatus
public void updateStepStatus(long stepExecutionId, StepStatus newStepStatus)- Specified by:
updateStepStatusin interfaceIJobStatusManagerService
-
init
public void init(IBatchConfig batchConfig) throws BatchContainerServiceException
- Specified by:
initin interfaceIBatchServiceBase- Throws:
BatchContainerServiceException
-
updateJobStatusFromJSLStop
public void updateJobStatusFromJSLStop(long jobInstanceId, String restartOn) throws BatchContainerServiceException- Specified by:
updateJobStatusFromJSLStopin interfaceIJobStatusManagerService- Throws:
BatchContainerServiceException
-
-