C# Класс Summer.Batch.Core.Step.Tasklet.PowerShellTasklet

An ITasklet that runs a powershell script. The script 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. Script 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. \since 1.1.0
Наследование: Summer.Batch.Core.Listener.StepExecutionListenerSupport, IStoppableTasklet, IInitializationPostOperations
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
Logger Logger

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

Метод Описание
AfterPropertiesSet ( ) : void

@see IInitializationPostOperations#AfterPropertiesSet.

BeforeStep ( StepExecution stepExecution ) : void

@see IStepExecutionListener#BeforeStep.

Execute ( StepContribution contribution, Summer.Batch.Core.Scope.Context.ChunkContext chunkContext ) : RepeatStatus

Wraps command execution into system process call.

Stop ( ) : void

IStoppableTasklet#Stop.

Приватные методы

Метод Описание
AllStreams_DataAdded ( object sender, System.Management.Automation.DataAddedEventArgs e ) : void

Event handler for when data is added to the streams, i.e. all streams redirect to this handler.

CheckStoppingState ( Summer.Batch.Core.Scope.Context.ChunkContext chunkContext ) : void
LogStreams ( ) : void

Описание методов

AfterPropertiesSet() публичный Метод

@see IInitializationPostOperations#AfterPropertiesSet.
public AfterPropertiesSet ( ) : void
Результат void

BeforeStep() публичный Метод

@see IStepExecutionListener#BeforeStep.
public BeforeStep ( StepExecution stepExecution ) : void
stepExecution StepExecution
Результат void

Execute() публичный Метод

Wraps command execution into system process call.
public Execute ( StepContribution contribution, Summer.Batch.Core.Scope.Context.ChunkContext chunkContext ) : RepeatStatus
contribution StepContribution
chunkContext Summer.Batch.Core.Scope.Context.ChunkContext
Результат RepeatStatus

Stop() публичный Метод

IStoppableTasklet#Stop.
public Stop ( ) : void
Результат void

Описание свойств

Logger защищенное статическое свойство

Logger.
protected static Logger Logger
Результат Logger