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
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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