Summer.Batch.Core.Partition.Support.TaskExecutorPartitionHandler Class Reference

An IPartitionHandler that uses an ITaskExecutor to execute the partitioned IStep locally in multiple threads. This can be an effective approach for scaling batch steps that are IO intensive, like directory and filesystem scanning and copying. By default, the thread pool is synchronous. More...

Inheritance diagram for Summer.Batch.Core.Partition.Support.TaskExecutorPartitionHandler:
Summer.Batch.Core.Partition.Support.AbstractPartitionHandler Summer.Batch.Core.Step.IStepHolder Summer.Batch.Core.Partition.IPartitionHandler

Protected Member Functions

override ICollection< StepExecutionDoHandle (StepExecution masterStepExecution, ICollection< StepExecution > partitionStepExecutions)
 
Task< StepExecutionCreateTask (IStep step, StepExecution stepExecution)
 Creates a task to be executed later on for the given stepExecution. More...
 

Properties

ITaskExecutor TaskExecutor [set]
 Task executor property. More...
 
IStep Step [get, set]
 Step property. More...
 
- Properties inherited from Summer.Batch.Core.Partition.Support.AbstractPartitionHandler
int GridSize [get, set]
 Grid size property. Defaults to 1. More...
 
- Properties inherited from Summer.Batch.Core.Step.IStepHolder
IStep Step [get, set]
 Hold step. More...
 

Additional Inherited Members

- Public Member Functions inherited from Summer.Batch.Core.Partition.Support.AbstractPartitionHandler
ICollection< StepExecutionHandle (IStepExecutionSplitter stepSplitter, StepExecution masterStepExecution)
 see IPartitionHandler::Handle . More...
 

Detailed Description

An IPartitionHandler that uses an ITaskExecutor to execute the partitioned IStep locally in multiple threads. This can be an effective approach for scaling batch steps that are IO intensive, like directory and filesystem scanning and copying. By default, the thread pool is synchronous.

Member Function Documentation

Task<StepExecution> Summer.Batch.Core.Partition.Support.TaskExecutorPartitionHandler.CreateTask ( IStep  step,
StepExecution  stepExecution 
)
protected

Creates a task to be executed later on for the given stepExecution.

Parameters
step
stepExecution
Returns
override ICollection<StepExecution> Summer.Batch.Core.Partition.Support.TaskExecutorPartitionHandler.DoHandle ( StepExecution  masterStepExecution,
ICollection< StepExecution partitionStepExecutions 
)
protectedvirtual

See also
AbstractPartitionHandler::DoHandle .
Parameters
masterStepExecution
partitionStepExecutions
Returns

Implements Summer.Batch.Core.Partition.Support.AbstractPartitionHandler.

Property Documentation

IStep Summer.Batch.Core.Partition.Support.TaskExecutorPartitionHandler.Step
getset

Step property.

ITaskExecutor Summer.Batch.Core.Partition.Support.TaskExecutorPartitionHandler.TaskExecutor
set

Task executor property.


The documentation for this class was generated from the following file:
  • Summer.Batch.Core/Core/Partition/Support/TaskExecutorPartitionHandler.cs