C# 클래스 Summer.Batch.Core.Job.SimpleStepHandler

Implementation of IStepHandler that manages repository and restart concerns.
상속: IStepHandler, IInitializationPostOperations
파일 보기 프로젝트 열기: SummerBatch/SummerBatch

공개 메소드들

메소드 설명
AfterPropertiesSet ( ) : void

Check mandatory properties (jobRepository). @see IInitializationPostOperations#AfterPropertiesSet .

HandleStep ( IStep step, JobExecution execution ) : StepExecution

@see IStepHandler#HandleStep .

SimpleStepHandler ( ) : NLog

Convenient default constructor for configuration usage.

SimpleStepHandler ( IJobRepository jobRepository ) : NLog

Custom constructor using a job repository.

SimpleStepHandler ( IJobRepository jobRepository, ExecutionContext executionContext ) : NLog

Custom constructor using a job repository and an execution context.

보호된 메소드들

메소드 설명
ShouldStart ( StepExecution lastStepExecution, JobExecution jobExecution, IStep step ) : bool

Given a step and configuration, return true if the step should start, false if it should not, and throw an exception if the job should finish.

비공개 메소드들

메소드 설명
HandleRestart ( StepExecution lastStepExecution, StepExecution currentStepExecution ) : void

Handle restartability if needed.

HandleStepExecution ( IStep step, JobExecution execution, StepExecution currentStepExecution ) : void

Handle normal step execution.

StepExecutionPartOfExistingJobExecution ( JobExecution jobExecution, StepExecution stepExecution ) : bool

메소드 상세

AfterPropertiesSet() 공개 메소드

Check mandatory properties (jobRepository). @see IInitializationPostOperations#AfterPropertiesSet .
public AfterPropertiesSet ( ) : void
리턴 void

HandleStep() 공개 메소드

@see IStepHandler#HandleStep .
     
public HandleStep ( IStep step, JobExecution execution ) : StepExecution
step IStep
execution JobExecution
리턴 StepExecution

ShouldStart() 보호된 메소드

Given a step and configuration, return true if the step should start, false if it should not, and throw an exception if the job should finish.
   
protected ShouldStart ( StepExecution lastStepExecution, JobExecution jobExecution, IStep step ) : bool
lastStepExecution StepExecution
jobExecution JobExecution
step IStep
리턴 bool

SimpleStepHandler() 공개 메소드

Convenient default constructor for configuration usage.
public SimpleStepHandler ( ) : NLog
리턴 NLog

SimpleStepHandler() 공개 메소드

Custom constructor using a job repository.
public SimpleStepHandler ( IJobRepository jobRepository ) : NLog
jobRepository IJobRepository
리턴 NLog

SimpleStepHandler() 공개 메소드

Custom constructor using a job repository and an execution context.
public SimpleStepHandler ( IJobRepository jobRepository, ExecutionContext executionContext ) : NLog
jobRepository IJobRepository
executionContext ExecutionContext
리턴 NLog