public class DefaultJobStatusManager extends Object implements JobStatusManagerService
| Constructor and Description |
|---|
DefaultJobStatusManager(ServicesManager servicesManager) |
| 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(Properties batchConfig) |
String |
toString() |
void |
updateJobBatchStatus(long jobInstanceId,
javax.batch.runtime.BatchStatus batchStatus) |
void |
updateJobCurrentStep(long jobInstanceId,
String currentStepName) |
void |
updateJobExecutionStatus(long jobInstanceId,
javax.batch.runtime.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 DefaultJobStatusManager(ServicesManager servicesManager)
public JobStatus createJobStatus(long jobInstanceId) throws BatchContainerServiceException
JobStatusManagerServicecreateJobStatus in interface JobStatusManagerServiceBatchContainerServiceExceptionpublic JobStatus getJobStatus(long jobInstanceId) throws BatchContainerServiceException
JobStatusManagerServicegetJobStatus in interface JobStatusManagerServiceBatchContainerServiceExceptionpublic void updateJobStatus(JobStatus jobStatus)
updateJobStatus in interface JobStatusManagerServicepublic JobStatus getJobStatusFromExecutionId(long executionId) throws BatchContainerServiceException
getJobStatusFromExecutionId in interface JobStatusManagerServiceBatchContainerServiceExceptionpublic void updateJobBatchStatus(long jobInstanceId,
javax.batch.runtime.BatchStatus batchStatus)
throws BatchContainerServiceException
updateJobBatchStatus in interface JobStatusManagerServiceBatchContainerServiceExceptionpublic void updateJobExecutionStatus(long jobInstanceId,
javax.batch.runtime.BatchStatus batchStatus,
String exitStatus)
throws BatchContainerServiceException
updateJobExecutionStatus in interface JobStatusManagerServiceBatchContainerServiceExceptionpublic void updateJobCurrentStep(long jobInstanceId,
String currentStepName)
throws BatchContainerServiceException
updateJobCurrentStep in interface JobStatusManagerServiceBatchContainerServiceExceptionpublic void updateJobStatusWithNewExecution(long jobInstanceId,
long newExecutionId)
throws BatchContainerServiceException
updateJobStatusWithNewExecution in interface JobStatusManagerServiceBatchContainerServiceExceptionpublic StepStatus createStepStatus(long stepExecutionId) throws BatchContainerServiceException
JobStatusManagerServicecreateStepStatus in interface JobStatusManagerServiceBatchContainerServiceExceptionpublic StepStatus getStepStatus(long jobInstanceId, String stepId) throws BatchContainerServiceException
getStepStatus in interface JobStatusManagerServiceBatchContainerServiceExceptionpublic void updateStepStatus(long stepExecutionId,
StepStatus newStepStatus)
updateStepStatus in interface JobStatusManagerServicepublic void init(Properties batchConfig) throws BatchContainerServiceException
init in interface BatchServiceBatchContainerServiceExceptionpublic void updateJobStatusFromJSLStop(long jobInstanceId,
String restartOn)
throws BatchContainerServiceException
updateJobStatusFromJSLStop in interface JobStatusManagerServiceBatchContainerServiceExceptionCopyright © 2023 The Apache Software Foundation. All rights reserved.