C# Class Summer.Batch.Core.Partition.Support.AbstractPartitionHandler

Base IPartitionHandler implementation providing common base features. Subclasses are expected to implement only the DoHandle method which returns with the result of the execution(s) or an exception if the step failed to process.
Inheritance: IPartitionHandler
Show file Open project: SummerBatch/SummerBatch

Public Methods

Method Description
Handle ( IStepExecutionSplitter stepSplitter, StepExecution masterStepExecution ) : ICollection

see IPartitionHandler#Handle .

Protected Methods

Method Description
DoHandle ( StepExecution masterStepExecution, ICollection partitionStepExecutions ) : ICollection

Executes the specified StepExecution instances and returns an updated view of them. Throws an Exception if anything goes wrong.

Method Details

DoHandle() protected abstract method

Executes the specified StepExecution instances and returns an updated view of them. Throws an Exception if anything goes wrong.
 if anything goes wrong. This allows implementations to /// be liberal and rely on the caller to translate an exception into a step /// failure as necessary.
protected abstract DoHandle ( StepExecution masterStepExecution, ICollection partitionStepExecutions ) : ICollection
masterStepExecution StepExecution the whole partition execution
partitionStepExecutions ICollection the StepExecution instances to execute
return ICollection

Handle() public method

see IPartitionHandler#Handle .
 
public Handle ( IStepExecutionSplitter stepSplitter, StepExecution masterStepExecution ) : ICollection
stepSplitter IStepExecutionSplitter
masterStepExecution StepExecution
return ICollection