public interface PartitionHandler
StepExecution
. Implementations will need to create a
partition with the StepExecutionSplitter
, and then use an execution
fabric (grid, etc.), to execute the partitioned step. The results of the
executions can be returned raw from remote workers to be aggregated by the
caller.Modifier and Type | Method and Description |
---|---|
Collection<StepExecution> |
handle(StepExecutionSplitter stepSplitter,
StepExecution stepExecution)
Main entry point for
PartitionHandler interface. |
Collection<StepExecution> handle(StepExecutionSplitter stepSplitter, StepExecution stepExecution) throws Exception
PartitionHandler
interface. The splitter
creates all the executions that need to be farmed out, along with their
input parameters (in the form of their ExecutionContext
). The
master step execution is used to identify the partition and group
together the results logically.stepSplitter
- a strategy for generating a collection of
StepExecution
instancesstepExecution
- the master step execution for the whole partitionStepExecution
instancesException
- 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.Copyright © 2014 Pivotal. All rights reserved.