C# 클래스 Summer.Batch.Core.Partition.Support.SimpleStepExecutionSplitter

Generic implementation of IStepExecutionSplitter that delegates to a IPartitioner to generate ExecutionContext instances. Takes care of restartability and identifying the step executions from previous runs of the same job. The generated StepExecution instances have names that identify them uniquely in the partition. The name is constructed from a base (name of the target step) plus a suffix taken from the IPartitioner identifiers, separated by a colon, e.g. {step1:partition0, step1:partition1, ...}.
상속: IStepExecutionSplitter, IInitializationPostOperations
파일 보기 프로젝트 열기: SummerBatch/SummerBatch

공개 메소드들

메소드 설명
AfterPropertiesSet ( ) : void

Post-init checks. IInitializationPostOperations#AfterPropertiesSet .

SimpleStepExecutionSplitter ( ) : Summer.Batch.Core.Repository

Default constructor for convenience in configuration.

SimpleStepExecutionSplitter ( IJobRepository jobRepository, bool allowStartIfComplete, string stepName, IPartitioner partitioner ) : Summer.Batch.Core.Repository

Constructs a SimpleStepExecutionSplitter from its mandatory properties.

Split ( StepExecution stepExecution, int gridSize ) : HashSet

see IStepExecutionSplitter#Split .

보호된 메소드들

메소드 설명
GetStartable ( StepExecution stepExecution, ExecutionContext context ) : bool

Should it start ?

비공개 메소드들

메소드 설명
GetContexts ( StepExecution stepExecution, int gridSize ) : ExecutionContext>.IDictionary

HandleStoppedOrFailedStatus ( BatchStatus stepStatus ) : bool
HandleUnknownStatus ( BatchStatus stepStatus ) : void
IsSameJobExecution ( StepExecution stepExecution, StepExecution lastStepExecution ) : bool

Tests if same job execution.

PreventFromRestarting ( BatchStatus stepStatus ) : void
ShouldStart ( bool allowStartIfComplete, StepExecution stepExecution, StepExecution lastStepExecution ) : bool

Tests if step execution should start.

메소드 상세

AfterPropertiesSet() 공개 메소드

Post-init checks. IInitializationPostOperations#AfterPropertiesSet .
 
public AfterPropertiesSet ( ) : void
리턴 void

GetStartable() 보호된 메소드

Should it start ?
 
protected GetStartable ( StepExecution stepExecution, ExecutionContext context ) : bool
stepExecution StepExecution
context ExecutionContext
리턴 bool

SimpleStepExecutionSplitter() 공개 메소드

Default constructor for convenience in configuration.
public SimpleStepExecutionSplitter ( ) : Summer.Batch.Core.Repository
리턴 Summer.Batch.Core.Repository

SimpleStepExecutionSplitter() 공개 메소드

Constructs a SimpleStepExecutionSplitter from its mandatory properties.
public SimpleStepExecutionSplitter ( IJobRepository jobRepository, bool allowStartIfComplete, string stepName, IPartitioner partitioner ) : Summer.Batch.Core.Repository
jobRepository IJobRepository
allowStartIfComplete bool flag specifying preferences on restart
stepName string
partitioner IPartitioner a IPartitioner to use for generating input parameters
리턴 Summer.Batch.Core.Repository

Split() 공개 메소드

see IStepExecutionSplitter#Split .
public Split ( StepExecution stepExecution, int gridSize ) : HashSet
stepExecution StepExecution
gridSize int
리턴 HashSet