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

Simple implementation of executing the step as a call to a ITasklet, possibly repeated, and each call surrounded by a transaction. The structure is therefore that of a loop with transaction boundary inside the loop. The loop is controlled by the step operations (StepOperations=RepeatOperations)). Clients can use interceptors in the step operations to intercept or listen to the iteration on a step-wide basis, for instance to get a callback when the step is complete. Those that want callbacks at the level of an individual tasks, can specify interceptors for the chunk operations.
상속: AbstractStep, IDisposable
파일 보기 프로젝트 열기: SummerBatch/SummerBatch 1 사용 예제들

공개 메소드들

메소드 설명
Dispose ( ) : void

see https://msdn.microsoft.com/fr-fr/library/ms244737.aspx

RegisterStream ( IItemStream stream ) : void

Register a single IItemStream for callbacks to the stream interface.

SetStreams ( IItemStream streams ) : void

Register each of the streams for callbacks at the appropriate time in the step. The IItemReader and IItemWriter are automatically registered, but it doesn't hurt to also register them here. Injected dependencies of the reader and writer are not automatically registered, so if you implement ItemWriter using delegation to another object which itself is a IItemStream, you need to register the delegate here.

TaskletStep ( ) : NLog

Default constructor.

TaskletStep ( string name ) : NLog

Custom constructor with name.

보호된 메소드들

메소드 설명
Close ( Summer.Batch.Infrastructure.Item.ExecutionContext ctx ) : void

Delegates to composite stream closes.

CreateSemaphore ( ) : Semaphore

Extension point mainly for test purposes so that the behaviour of the lock can be manipulated to simulate various pathologies.

DoExecute ( StepExecution stepExecution ) : void

Actual taskletstep execution.

Open ( Summer.Batch.Infrastructure.Item.ExecutionContext ctx ) : void

Delegates to composite stream open

비공개 메소드들

메소드 설명
Dispose ( bool disposing ) : void

see https://msdn.microsoft.com/fr-fr/library/ms244737.aspx

메소드 상세

Close() 보호된 메소드

Delegates to composite stream closes.
protected Close ( Summer.Batch.Infrastructure.Item.ExecutionContext ctx ) : void
ctx Summer.Batch.Infrastructure.Item.ExecutionContext
리턴 void

CreateSemaphore() 보호된 메소드

Extension point mainly for test purposes so that the behaviour of the lock can be manipulated to simulate various pathologies.
protected CreateSemaphore ( ) : Semaphore
리턴 System.Threading.Semaphore

Dispose() 공개 메소드

see https://msdn.microsoft.com/fr-fr/library/ms244737.aspx
public Dispose ( ) : void
리턴 void

DoExecute() 보호된 메소드

Actual taskletstep execution.
 
protected DoExecute ( StepExecution stepExecution ) : void
stepExecution StepExecution
리턴 void

Open() 보호된 메소드

Delegates to composite stream open
protected Open ( Summer.Batch.Infrastructure.Item.ExecutionContext ctx ) : void
ctx Summer.Batch.Infrastructure.Item.ExecutionContext
리턴 void

RegisterStream() 공개 메소드

Register a single IItemStream for callbacks to the stream interface.
public RegisterStream ( IItemStream stream ) : void
stream IItemStream
리턴 void

SetStreams() 공개 메소드

Register each of the streams for callbacks at the appropriate time in the step. The IItemReader and IItemWriter are automatically registered, but it doesn't hurt to also register them here. Injected dependencies of the reader and writer are not automatically registered, so if you implement ItemWriter using delegation to another object which itself is a IItemStream, you need to register the delegate here.
public SetStreams ( IItemStream streams ) : void
streams IItemStream
리턴 void

TaskletStep() 공개 메소드

Default constructor.
public TaskletStep ( ) : NLog
리턴 NLog

TaskletStep() 공개 메소드

Custom constructor with name.
public TaskletStep ( string name ) : NLog
name string
리턴 NLog