C# Class 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.
Inheritance: AbstractStep, IDisposable
Afficher le fichier Open project: SummerBatch/SummerBatch Class Usage Examples

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
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

Private Methods

Méthode Description
Dispose ( bool disposing ) : void

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

Method Details

Close() protected méthode

Delegates to composite stream closes.
protected Close ( Summer.Batch.Infrastructure.Item.ExecutionContext ctx ) : void
ctx Summer.Batch.Infrastructure.Item.ExecutionContext
Résultat void

CreateSemaphore() protected méthode

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

Dispose() public méthode

see https://msdn.microsoft.com/fr-fr/library/ms244737.aspx
public Dispose ( ) : void
Résultat void

DoExecute() protected méthode

Actual taskletstep execution.
 
protected DoExecute ( StepExecution stepExecution ) : void
stepExecution StepExecution
Résultat void

Open() protected méthode

Delegates to composite stream open
protected Open ( Summer.Batch.Infrastructure.Item.ExecutionContext ctx ) : void
ctx Summer.Batch.Infrastructure.Item.ExecutionContext
Résultat void

RegisterStream() public méthode

Register a single IItemStream for callbacks to the stream interface.
public RegisterStream ( IItemStream stream ) : void
stream IItemStream
Résultat void

SetStreams() public méthode

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
Résultat void

TaskletStep() public méthode

Default constructor.
public TaskletStep ( ) : NLog
Résultat NLog

TaskletStep() public méthode

Custom constructor with name.
public TaskletStep ( string name ) : NLog
name string
Résultat NLog