public class JobStatusManagerImpl extends Object implements IJobStatusManagerService
| Constructor and Description |
|---|
JobStatusManagerImpl() |
| Modifier and Type | Method and Description |
|---|---|
JobStatus |
createJobStatus(long jobInstanceId)
This method creates an entry for a new job instance
|
StepStatus |
createStepStatus(long stepExecutionId)
Creates an entry for the step in the stepstatus table during jobsetup
|
JobStatus |
getJobStatus(long jobInstanceId)
Returns the JobStatus for a given jobInstance id
|
JobStatus |
getJobStatusFromExecutionId(long executionId) |
StepStatus |
getStepStatus(long jobInstanceId,
String stepId) |
void |
init(IBatchConfig batchConfig) |
void |
shutdown() |
void |
updateJobBatchStatus(long jobInstanceId,
BatchStatus batchStatus) |
void |
updateJobCurrentStep(long jobInstanceId,
String currentStepName) |
void |
updateJobExecutionStatus(long jobInstanceId,
BatchStatus batchStatus,
String exitStatus) |
void |
updateJobStatus(JobStatus jobStatus) |
void |
updateJobStatusFromJSLStop(long jobInstanceId,
String restartOn) |
void |
updateJobStatusWithNewExecution(long jobInstanceId,
long newExecutionId) |
void |
updateStepStatus(long stepExecutionId,
StepStatus newStepStatus) |
public void shutdown()
throws BatchContainerServiceException
shutdown in interface IBatchServiceBaseBatchContainerServiceExceptionpublic JobStatus createJobStatus(long jobInstanceId) throws BatchContainerServiceException
IJobStatusManagerServicecreateJobStatus in interface IJobStatusManagerServiceBatchContainerServiceExceptionpublic JobStatus getJobStatus(long jobInstanceId) throws BatchContainerServiceException
IJobStatusManagerServicegetJobStatus in interface IJobStatusManagerServiceBatchContainerServiceExceptionpublic void updateJobStatus(JobStatus jobStatus)
updateJobStatus in interface IJobStatusManagerServicepublic JobStatus getJobStatusFromExecutionId(long executionId) throws BatchContainerServiceException
getJobStatusFromExecutionId in interface IJobStatusManagerServiceBatchContainerServiceExceptionpublic void updateJobBatchStatus(long jobInstanceId,
BatchStatus batchStatus)
throws BatchContainerServiceException
updateJobBatchStatus in interface IJobStatusManagerServiceBatchContainerServiceExceptionpublic void updateJobExecutionStatus(long jobInstanceId,
BatchStatus batchStatus,
String exitStatus)
throws BatchContainerServiceException
updateJobExecutionStatus in interface IJobStatusManagerServiceBatchContainerServiceExceptionpublic void updateJobCurrentStep(long jobInstanceId,
String currentStepName)
throws BatchContainerServiceException
updateJobCurrentStep in interface IJobStatusManagerServiceBatchContainerServiceExceptionpublic void updateJobStatusWithNewExecution(long jobInstanceId,
long newExecutionId)
throws BatchContainerServiceException
updateJobStatusWithNewExecution in interface IJobStatusManagerServiceBatchContainerServiceExceptionpublic StepStatus createStepStatus(long stepExecutionId) throws BatchContainerServiceException
IJobStatusManagerServicecreateStepStatus in interface IJobStatusManagerServiceBatchContainerServiceExceptionpublic StepStatus getStepStatus(long jobInstanceId, String stepId) throws BatchContainerServiceException
getStepStatus in interface IJobStatusManagerServiceBatchContainerServiceExceptionpublic void updateStepStatus(long stepExecutionId,
StepStatus newStepStatus)
updateStepStatus in interface IJobStatusManagerServicepublic void init(IBatchConfig batchConfig) throws BatchContainerServiceException
init in interface IBatchServiceBaseBatchContainerServiceExceptionpublic void updateJobStatusFromJSLStop(long jobInstanceId,
String restartOn)
throws BatchContainerServiceException
updateJobStatusFromJSLStop in interface IJobStatusManagerServiceBatchContainerServiceException© Copyright IBM Corp. 2014
Licensed under the Apache License, Version 2.0