Package com.ibm.jbatch.container.impl
Class BaseStepControllerImpl
- java.lang.Object
-
- com.ibm.jbatch.container.impl.BaseStepControllerImpl
-
- All Implemented Interfaces:
IController,IExecutionElementController
- Direct Known Subclasses:
PartitionedStepControllerImpl,SingleThreadedStepControllerImpl
public abstract class BaseStepControllerImpl extends Object implements IExecutionElementController
Change the name of this class to something else!! Or change BaseStepControllerImpl.
-
-
Field Summary
Fields Modifier and Type Field Description protected static IPersistenceManagerService_persistenceManagementServiceprotected BlockingQueue<PartitionDataWrapper>analyzerStatusQueueprotected static IBatchKernelServicebatchKernelprotected RuntimeJobExecutionjobExecutionImplprotected jakarta.batch.runtime.JobInstancejobInstanceprotected booleanrestartAfterCompletionprotected longrootJobExecutionIdprotected com.ibm.jbatch.jsl.model.Stepstepprotected StepContextImplstepContextprotected StringstepNameprotected StepStatusstepStatusprotected TransactionManagerAdaptertransactionManager
-
Constructor Summary
Constructors Modifier Constructor Description protectedBaseStepControllerImpl(RuntimeJobExecution jobExecution, com.ibm.jbatch.jsl.model.Step step, StepContextImpl stepContext, long rootJobExecutionId)protectedBaseStepControllerImpl(RuntimeJobExecution jobExecution, com.ibm.jbatch.jsl.model.Step step, StepContextImpl stepContext, long rootJobExecutionId, BlockingQueue<PartitionDataWrapper> analyzerStatusQueue)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description ExecutionStatusexecute()protected BlockingQueue<PartitionDataWrapper>getAnalyzerQueue()List<Long>getLastRunStepExecutions()protected abstract voidinvokeCoreStep()protected abstract voidinvokePostStepArtifacts()protected abstract voidinvokePreStepArtifacts()protected booleanisRestartExecution()protected voidmarkJobAndStepFailed()protected voidpersistExitStatusEndTimestampAndStepExecution()protected voidpersistStepExecution()protected voidpersistUserData()protected abstract voidsendStatusFromPartitionToAnalyzerIfPresent()voidsetAnalyzerQueue(BlockingQueue<PartitionDataWrapper> analyzerQueue)voidsetStepContext(StepContextImpl stepContext)protected abstract voidsetupStepArtifacts()protected booleanshouldStepBeExecuted()protected voidstatusStarting()StringtoString()protected voidupdateBatchStatus(jakarta.batch.runtime.BatchStatus updatedBatchStatus)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.ibm.jbatch.container.IController
stop
-
-
-
-
Field Detail
-
jobExecutionImpl
protected RuntimeJobExecution jobExecutionImpl
-
jobInstance
protected jakarta.batch.runtime.JobInstance jobInstance
-
stepContext
protected StepContextImpl stepContext
-
step
protected com.ibm.jbatch.jsl.model.Step step
-
stepName
protected String stepName
-
stepStatus
protected StepStatus stepStatus
-
analyzerStatusQueue
protected BlockingQueue<PartitionDataWrapper> analyzerStatusQueue
-
rootJobExecutionId
protected long rootJobExecutionId
-
restartAfterCompletion
protected boolean restartAfterCompletion
-
batchKernel
protected static IBatchKernelService batchKernel
-
transactionManager
protected TransactionManagerAdapter transactionManager
-
_persistenceManagementService
protected static IPersistenceManagerService _persistenceManagementService
-
-
Constructor Detail
-
BaseStepControllerImpl
protected BaseStepControllerImpl(RuntimeJobExecution jobExecution, com.ibm.jbatch.jsl.model.Step step, StepContextImpl stepContext, long rootJobExecutionId)
-
BaseStepControllerImpl
protected BaseStepControllerImpl(RuntimeJobExecution jobExecution, com.ibm.jbatch.jsl.model.Step step, StepContextImpl stepContext, long rootJobExecutionId, BlockingQueue<PartitionDataWrapper> analyzerStatusQueue)
-
-
Method Detail
-
invokeCoreStep
protected abstract void invokeCoreStep() throws jakarta.batch.operations.JobRestartException, jakarta.batch.operations.JobStartException, jakarta.batch.operations.JobExecutionAlreadyCompleteException, jakarta.batch.operations.JobExecutionNotMostRecentException- Throws:
jakarta.batch.operations.JobRestartExceptionjakarta.batch.operations.JobStartExceptionjakarta.batch.operations.JobExecutionAlreadyCompleteExceptionjakarta.batch.operations.JobExecutionNotMostRecentException
-
setupStepArtifacts
protected abstract void setupStepArtifacts()
-
invokePreStepArtifacts
protected abstract void invokePreStepArtifacts()
-
invokePostStepArtifacts
protected abstract void invokePostStepArtifacts()
-
sendStatusFromPartitionToAnalyzerIfPresent
protected abstract void sendStatusFromPartitionToAnalyzerIfPresent()
-
execute
public ExecutionStatus execute()
- Specified by:
executein interfaceIExecutionElementController
-
markJobAndStepFailed
protected void markJobAndStepFailed()
-
updateBatchStatus
protected void updateBatchStatus(jakarta.batch.runtime.BatchStatus updatedBatchStatus)
-
shouldStepBeExecuted
protected boolean shouldStepBeExecuted()
-
isRestartExecution
protected boolean isRestartExecution()
-
statusStarting
protected void statusStarting()
-
persistUserData
protected void persistUserData()
-
persistExitStatusEndTimestampAndStepExecution
protected void persistExitStatusEndTimestampAndStepExecution()
-
persistStepExecution
protected void persistStepExecution()
-
setStepContext
public void setStepContext(StepContextImpl stepContext)
-
getAnalyzerQueue
protected BlockingQueue<PartitionDataWrapper> getAnalyzerQueue()
-
setAnalyzerQueue
public void setAnalyzerQueue(BlockingQueue<PartitionDataWrapper> analyzerQueue)
-
getLastRunStepExecutions
public List<Long> getLastRunStepExecutions()
- Specified by:
getLastRunStepExecutionsin interfaceIController
-
-