com.ibm.batch.container.services
Interface IJobStatusManagerService

All Superinterfaces:
IBatchServiceBase
All Known Implementing Classes:
JobStatusManagerImpl

public interface IJobStatusManagerService
extends IBatchServiceBase


Method Summary
 JobStatus createJobStatus(JobInstance jobInstance, long firstJobExecutionId)
          This method creates an entry for a new job instance
 void createStepStatus(long jobInstanceId, String stepId, StepStatus newStepStatus)
          Creates an entry for the step in the stepstatus table during jobsetup
 List<JobStatus> getAllJobStatus()
          Returns a list of all jobstatus currently in the DB
 JobStatus getJobStatus(long jobInstanceId)
          Returns the JobStatus for a given jobInstance id
 StepStatus getStepStatus(long jobInstanceId, String stepId)
          Gets the status for the given step belonging to the current job
 void updateEntireStepStatus(long jobInstanceId, String stepId, StepStatus newStepStatus)
           
 void updateJobBatchStatus(long jobInstanceId, ExecutionStatus.BatchStatus batchStatus)
           
 void updateJobCurrentStep(long jobInstanceId, String currentStepName)
          Updates the current step of the job, updates the stepstatus to be IN SETUP and sends the update to the scheduler
 void updateJobExecutionStatus(long jobInstanceId, ExecutionStatus.BatchStatus batchStatus, String exitStatus)
           
 void updateJobStatusFromJSLStop(long jobInstanceId, String restartOn)
           
 void updateJobStatusWithNewExecution(long jobInstanceId, long newExecutionId)
           
 
Methods inherited from interface com.ibm.batch.container.services.IBatchServiceBase
init, shutdown
 

Method Detail

createJobStatus

JobStatus createJobStatus(JobInstance jobInstance,
                          long firstJobExecutionId)
                          throws BatchContainerServiceException
This method creates an entry for a new job instance

Throws:
BatchContainerServiceException

getJobStatus

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

Parameters:
jobId -
Returns:
Throws:
BatchContainerServiceException

updateJobBatchStatus

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

updateJobExecutionStatus

void updateJobExecutionStatus(long jobInstanceId,
                              ExecutionStatus.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
Updates the current step of the job, updates the stepstatus to be IN SETUP and sends the update to the scheduler

Parameters:
currentStepName -
Throws:
BatchContainerServiceException

createStepStatus

void createStepStatus(long jobInstanceId,
                      String stepId,
                      StepStatus newStepStatus)
                      throws BatchContainerServiceException
Creates an entry for the step in the stepstatus table during jobsetup

Parameters:
stepId -
Throws:
BatchContainerServiceException

updateEntireStepStatus

void updateEntireStepStatus(long jobInstanceId,
                            String stepId,
                            StepStatus newStepStatus)
                            throws BatchContainerServiceException
Throws:
BatchContainerServiceException

getAllJobStatus

List<JobStatus> getAllJobStatus()
                                throws BatchContainerServiceException
Returns a list of all jobstatus currently in the DB

Returns:
Throws:
BatchContainerServiceException

getStepStatus

StepStatus getStepStatus(long jobInstanceId,
                         String stepId)
                         throws BatchContainerServiceException
Gets the status for the given step belonging to the current job

Parameters:
stepId -
Returns:
Throws:
BatchContainerServiceException


Copyright © 2013. All Rights Reserved.