C# 클래스 Summer.Batch.Core.Step.Tasklet.SystemCommandTasklet

ITaskletthat executes a system command. The system command is executed asynchronously using injected ITaskExecutor - timeout value is required to be set, so that the batch job does not hang forever if the external process hangs. Tasklet periodically checks for termination status (i.e. Command finished its execution or timeout expired or job was interrupted). The check interval is given by TerminationCheckInterval. When job interrupt is detected tasklet's execution is terminated immediately by throwing JobInterruptedException. NOTE : InterruptOnCancel is not being supported for now.
상속: Summer.Batch.Core.Listener.StepExecutionListenerSupport, IStoppableTasklet, IInitializationPostOperations
파일 보기 프로젝트 열기: SummerBatch/SummerBatch 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
Logger Logger

공개 메소드들

메소드 설명
AfterPropertiesSet ( ) : void

@see IInitializationPostOperations#AfterPropertiesSet.

BeforeStep ( StepExecution stepExecution ) : void

@see IStepExecutionListener#BeforeStep.

Execute ( StepContribution contribution, Scope chunkContext ) : RepeatStatus

Execute system command and map its exit code to ExitStatus using SystemProcessExitCodeMapper.

Stop ( ) : void

IStoppableTasklet#Stop.

비공개 메소드들

메소드 설명
CheckStoppingState ( Summer.Batch.Core.Scope.Context.ChunkContext chunkContext ) : void
ExecuteCommand ( ) : int

Wraps command execution into system process call.

HandleCompletion ( StepContribution contribution, Task systemCommandTask ) : RepeatStatus

메소드 상세

AfterPropertiesSet() 공개 메소드

@see IInitializationPostOperations#AfterPropertiesSet.
public AfterPropertiesSet ( ) : void
리턴 void

BeforeStep() 공개 메소드

@see IStepExecutionListener#BeforeStep.
public BeforeStep ( StepExecution stepExecution ) : void
stepExecution StepExecution
리턴 void

Execute() 공개 메소드

Execute system command and map its exit code to ExitStatus using SystemProcessExitCodeMapper.
public Execute ( StepContribution contribution, Scope chunkContext ) : RepeatStatus
contribution StepContribution
chunkContext Scope
리턴 RepeatStatus

Stop() 공개 메소드

IStoppableTasklet#Stop.
public Stop ( ) : void
리턴 void

프로퍼티 상세

Logger 보호되어 있는 정적으로 프로퍼티

Logger.
protected static Logger Logger
리턴 Logger