com.ibm.jbatch.container.util
Class BatchWorkUnit

java.lang.Object
  extended by com.ibm.jbatch.container.util.BatchWorkUnit
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
BatchParallelWorkUnit

public class BatchWorkUnit
extends Object
implements Runnable


Field Summary
protected  IBatchKernelService batchKernel
           
protected  IThreadRootController controller
           
protected  RuntimeJobExecution jobExecutionImpl
           
protected  boolean notifyCallbackWhenDone
           
 
Constructor Summary
BatchWorkUnit(IBatchKernelService batchKernel, RuntimeJobExecution jobExecutionImpl)
           
BatchWorkUnit(IBatchKernelService batchKernel, RuntimeJobExecution jobExecutionImpl, boolean notifyCallbackWhenDone)
           
 
Method Summary
 IBatchKernelService getBatchKernel()
           
protected  BatchStatus getBatchStatus()
           
 IThreadRootController getController()
           
protected  String getExitStatus()
           
 RuntimeJobExecution getJobExecutionImpl()
           
 boolean isNotifyCallbackWhenDone()
           
protected  void markThreadCompleted()
           
 void run()
           
 void setBatchKernel(IBatchKernelService batchKernel)
           
 void setJobExecutionImpl(RuntimeJobExecution jobExecutionImpl)
           
 void setNotifyCallbackWhenDone(boolean notifyCallbackWhenDone)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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()

run

public void run()
Specified by:
run in interface Runnable

getBatchStatus

protected 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()


Copyright © 2013. All Rights Reserved.