com.ibm.jbatch.container.services.impl
Class JobStatusManagerImpl

java.lang.Object
  extended by com.ibm.jbatch.container.services.impl.JobStatusManagerImpl
All Implemented Interfaces:
IJobStatusManagerService, IBatchServiceBase

public class JobStatusManagerImpl
extends Object
implements IJobStatusManagerService


Constructor Summary
JobStatusManagerImpl()
           
 
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 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JobStatusManagerImpl

public JobStatusManagerImpl()
Method Detail

shutdown

public void shutdown()
              throws BatchContainerServiceException
Specified by:
shutdown in interface IBatchServiceBase
Throws:
BatchContainerServiceException

createJobStatus

public JobStatus createJobStatus(long jobInstanceId)
                          throws BatchContainerServiceException
Description copied from interface: IJobStatusManagerService
This method creates an entry for a new job instance

Specified by:
createJobStatus in interface IJobStatusManagerService
Throws:
BatchContainerServiceException

getJobStatus

public JobStatus getJobStatus(long jobInstanceId)
                       throws BatchContainerServiceException
Description copied from interface: IJobStatusManagerService
Returns the JobStatus for a given jobInstance id

Specified by:
getJobStatus in interface IJobStatusManagerService
Returns:
Throws:
BatchContainerServiceException

updateJobStatus

public void updateJobStatus(JobStatus jobStatus)
Specified by:
updateJobStatus in interface IJobStatusManagerService

getJobStatusFromExecutionId

public JobStatus getJobStatusFromExecutionId(long executionId)
                                      throws BatchContainerServiceException
Specified by:
getJobStatusFromExecutionId in interface IJobStatusManagerService
Throws:
BatchContainerServiceException

updateJobBatchStatus

public void updateJobBatchStatus(long jobInstanceId,
                                 BatchStatus batchStatus)
                          throws BatchContainerServiceException
Specified by:
updateJobBatchStatus in interface IJobStatusManagerService
Throws:
BatchContainerServiceException

updateJobExecutionStatus

public void updateJobExecutionStatus(long jobInstanceId,
                                     BatchStatus batchStatus,
                                     String exitStatus)
                              throws BatchContainerServiceException
Specified by:
updateJobExecutionStatus in interface IJobStatusManagerService
Throws:
BatchContainerServiceException

updateJobCurrentStep

public void updateJobCurrentStep(long jobInstanceId,
                                 String currentStepName)
                          throws BatchContainerServiceException
Specified by:
updateJobCurrentStep in interface IJobStatusManagerService
Throws:
BatchContainerServiceException

updateJobStatusWithNewExecution

public void updateJobStatusWithNewExecution(long jobInstanceId,
                                            long newExecutionId)
                                     throws BatchContainerServiceException
Specified by:
updateJobStatusWithNewExecution in interface IJobStatusManagerService
Throws:
BatchContainerServiceException

createStepStatus

public StepStatus createStepStatus(long stepExecutionId)
                            throws BatchContainerServiceException
Description copied from interface: IJobStatusManagerService
Creates an entry for the step in the stepstatus table during jobsetup

Specified by:
createStepStatus in interface IJobStatusManagerService
Throws:
BatchContainerServiceException

getStepStatus

public StepStatus getStepStatus(long jobInstanceId,
                                String stepId)
                         throws BatchContainerServiceException
Specified by:
getStepStatus in interface IJobStatusManagerService
Throws:
BatchContainerServiceException

updateStepStatus

public void updateStepStatus(long stepExecutionId,
                             StepStatus newStepStatus)
Specified by:
updateStepStatus in interface IJobStatusManagerService

init

public void init(IBatchConfig batchConfig)
          throws BatchContainerServiceException
Specified by:
init in interface IBatchServiceBase
Throws:
BatchContainerServiceException

updateJobStatusFromJSLStop

public void updateJobStatusFromJSLStop(long jobInstanceId,
                                       String restartOn)
                                throws BatchContainerServiceException
Specified by:
updateJobStatusFromJSLStop in interface IJobStatusManagerService
Throws:
BatchContainerServiceException


Copyright © 2013. All Rights Reserved.