Package com.ibm.jbatch.container.util
Class BatchWorkUnit
- java.lang.Object
-
- com.ibm.jbatch.container.util.BatchWorkUnit
-
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
BatchParallelWorkUnit
public class BatchWorkUnit extends Object implements Runnable
-
-
Field Summary
Fields Modifier and Type Field Description protected IBatchKernelServicebatchKernelprotected IThreadRootControllercontrollerprotected RuntimeJobExecutionjobExecutionImplprotected booleannotifyCallbackWhenDone
-
Constructor Summary
Constructors Constructor Description BatchWorkUnit(IBatchKernelService batchKernel, RuntimeJobExecution jobExecutionImpl)BatchWorkUnit(IBatchKernelService batchKernel, RuntimeJobExecution jobExecutionImpl, boolean notifyCallbackWhenDone)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IBatchKernelServicegetBatchKernel()protected jakarta.batch.runtime.BatchStatusgetBatchStatus()IThreadRootControllergetController()protected StringgetExitStatus()RuntimeJobExecutiongetJobExecutionImpl()booleanisNotifyCallbackWhenDone()protected voidmarkThreadCompleted()voidrun()voidsetBatchKernel(IBatchKernelService batchKernel)voidsetJobExecutionImpl(RuntimeJobExecution jobExecutionImpl)voidsetNotifyCallbackWhenDone(boolean notifyCallbackWhenDone)
-
-
-
Field Detail
-
jobExecutionImpl
protected RuntimeJobExecution jobExecutionImpl
-
batchKernel
protected IBatchKernelService batchKernel
-
controller
protected IThreadRootController controller
-
notifyCallbackWhenDone
protected boolean notifyCallbackWhenDone
-
-
Constructor Detail
-
BatchWorkUnit
public BatchWorkUnit(IBatchKernelService batchKernel, RuntimeJobExecution jobExecutionImpl)
-
BatchWorkUnit
public BatchWorkUnit(IBatchKernelService batchKernel, RuntimeJobExecution jobExecutionImpl, boolean notifyCallbackWhenDone)
-
-
Method Detail
-
getController
public IThreadRootController getController()
-
getBatchStatus
protected jakarta.batch.runtime.BatchStatus getBatchStatus()
-
getExitStatus
protected String getExitStatus()
-
setBatchKernel
public void setBatchKernel(IBatchKernelService batchKernel)
-
getBatchKernel
public IBatchKernelService getBatchKernel()
-
setJobExecutionImpl
public void setJobExecutionImpl(RuntimeJobExecution jobExecutionImpl)
-
getJobExecutionImpl
public RuntimeJobExecution getJobExecutionImpl()
-
setNotifyCallbackWhenDone
public void setNotifyCallbackWhenDone(boolean notifyCallbackWhenDone)
-
isNotifyCallbackWhenDone
public boolean isNotifyCallbackWhenDone()
-
markThreadCompleted
protected void markThreadCompleted()
-
-