com.ibm.jbatch.container.impl
Class SingleThreadedStepControllerImpl

java.lang.Object
  extended by com.ibm.jbatch.container.impl.BaseStepControllerImpl
      extended by com.ibm.jbatch.container.impl.SingleThreadedStepControllerImpl
All Implemented Interfaces:
IController
Direct Known Subclasses:
BatchletStepControllerImpl, ChunkStepControllerImpl

public abstract class SingleThreadedStepControllerImpl
extends BaseStepControllerImpl
implements IController

When a partitioned step is run, this controller will only be used for the partition threads, NOT the top-level main thread that the step executes upon. When a non-partitioned step is run this controller will be used as well (and there will be no separate main thread with controller).


Field Summary
protected  PartitionCollectorProxy collectorProxy
           
 
Fields inherited from class com.ibm.jbatch.container.impl.BaseStepControllerImpl
analyzerStatusQueue, batchKernel, jobExecutionImpl, jobInstance, rootJobExecutionId, step, stepContext, stepStatus, transactionManager
 
Constructor Summary
protected SingleThreadedStepControllerImpl(RuntimeJobExecution jobExecutionImpl, Step step, StepContextImpl stepContext, long rootJobExecutionId, BlockingQueue<PartitionDataWrapper> analyzerStatusQueue)
           
 
Method Summary
protected  void invokeCollectorIfPresent()
           
protected  void invokePostStepArtifacts()
           
protected  void invokePreStepArtifacts()
           
protected  void sendCollectorDataToAnalyzerIfPresent(Serializable data)
           
protected  void sendStatusFromPartitionToAnalyzerIfPresent()
           
protected  void setupStepArtifacts()
           
 
Methods inherited from class com.ibm.jbatch.container.impl.BaseStepControllerImpl
execute, getAnalyzerQueue, getLastRunStepExecutions, invokeCoreStep, markJobAndStepFailed, persistExitStatusAndEndTimestamp, persistUserData, setAnalyzerQueue, setStepContext, shouldStepBeExecuted, statusStarting, toString, updateBatchStatus
 
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
getLastRunStepExecutions, stop
 

Field Detail

collectorProxy

protected PartitionCollectorProxy collectorProxy
Constructor Detail

SingleThreadedStepControllerImpl

protected SingleThreadedStepControllerImpl(RuntimeJobExecution jobExecutionImpl,
                                           Step step,
                                           StepContextImpl stepContext,
                                           long rootJobExecutionId,
                                           BlockingQueue<PartitionDataWrapper> analyzerStatusQueue)
Method Detail

setupStepArtifacts

protected void setupStepArtifacts()
Specified by:
setupStepArtifacts in class BaseStepControllerImpl

invokePreStepArtifacts

protected void invokePreStepArtifacts()
Specified by:
invokePreStepArtifacts in class BaseStepControllerImpl

invokePostStepArtifacts

protected void invokePostStepArtifacts()
Specified by:
invokePostStepArtifacts in class BaseStepControllerImpl

invokeCollectorIfPresent

protected void invokeCollectorIfPresent()

sendCollectorDataToAnalyzerIfPresent

protected void sendCollectorDataToAnalyzerIfPresent(Serializable data)

sendStatusFromPartitionToAnalyzerIfPresent

protected void sendStatusFromPartitionToAnalyzerIfPresent()
Specified by:
sendStatusFromPartitionToAnalyzerIfPresent in class BaseStepControllerImpl


Copyright © 2013. All Rights Reserved.