com.ibm.jbatch.container.services
Interface IJobStatusManagerService

All Superinterfaces:
IBatchServiceBase
All Known Implementing Classes:
JobStatusManagerImpl

public interface IJobStatusManagerService
extends IBatchServiceBase


Method Summary
 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 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)
           
 
Methods inherited from interface com.ibm.jbatch.spi.services.IBatchServiceBase
init, shutdown
 

Method Detail

createJobStatus

JobStatus createJobStatus(long jobInstanceId)
                          throws BatchContainerServiceException
This method creates an entry for a new job instance

Throws:
BatchContainerServiceException

updateJobStatus

void updateJobStatus(JobStatus jobStatus)

getJobStatus

JobStatus getJobStatus(long jobInstanceId)
                       throws BatchContainerServiceException
Returns the JobStatus for a given jobInstance id

Parameters:
jobId -
Returns:
Throws:
BatchContainerServiceException

getJobStatusFromExecutionId

JobStatus getJobStatusFromExecutionId(long executionId)
                                      throws BatchContainerServiceException
Throws:
BatchContainerServiceException

updateJobBatchStatus

void updateJobBatchStatus(long jobInstanceId,
                          BatchStatus batchStatus)
                          throws BatchContainerServiceException
Throws:
BatchContainerServiceException

updateJobExecutionStatus

void updateJobExecutionStatus(long jobInstanceId,
                              BatchStatus batchStatus,
                              String exitStatus)
                              throws BatchContainerServiceException
Throws:
BatchContainerServiceException

updateJobStatusFromJSLStop

void updateJobStatusFromJSLStop(long jobInstanceId,
                                String restartOn)
                                throws BatchContainerServiceException
Throws:
BatchContainerServiceException

updateJobStatusWithNewExecution

void updateJobStatusWithNewExecution(long jobInstanceId,
                                     long newExecutionId)
                                     throws BatchContainerServiceException
Throws:
BatchContainerServiceException

updateJobCurrentStep

void updateJobCurrentStep(long jobInstanceId,
                          String currentStepName)
                          throws BatchContainerServiceException
Throws:
BatchContainerServiceException

createStepStatus

StepStatus createStepStatus(long stepExecutionId)
                            throws BatchContainerServiceException
Creates an entry for the step in the stepstatus table during jobsetup

Parameters:
stepId -
Throws:
BatchContainerServiceException

updateStepStatus

void updateStepStatus(long stepExecutionId,
                      StepStatus newStepStatus)
                      throws BatchContainerServiceException
Throws:
BatchContainerServiceException

getStepStatus

StepStatus getStepStatus(long jobInstanceId,
                         String stepId)
                         throws BatchContainerServiceException
Throws:
BatchContainerServiceException


Copyright © 2013. All Rights Reserved.