Summer.Batch.Core.Job.SimpleStepHandler Class Reference

Implementation of IStepHandler that manages repository and restart concerns. More...

Inheritance diagram for Summer.Batch.Core.Job.SimpleStepHandler:
Summer.Batch.Core.Job.IStepHandler Summer.Batch.Common.Factory.IInitializationPostOperations

Public Member Functions

 SimpleStepHandler ()
 Convenient default constructor for configuration usage. More...
 
 SimpleStepHandler (IJobRepository jobRepository, ExecutionContext executionContext)
 Custom constructor using a job repository and an execution context. More...
 
 SimpleStepHandler (IJobRepository jobRepository)
 Custom constructor using a job repository. More...
 
void AfterPropertiesSet ()
 Check mandatory properties (jobRepository). More...
 
StepExecution HandleStep (IStep step, JobExecution execution)
 

Protected Member Functions

bool ShouldStart (StepExecution lastStepExecution, JobExecution jobExecution, IStep step)
 Given a step and configuration, return true if the step should start, false if it should not, and throw an exception if the job should finish. More...
 

Properties

IJobRepository JobRepository [get, set]
 Job repository property. More...
 
ExecutionContext Context [set]
 Execution context property. More...
 

Detailed Description

Implementation of IStepHandler that manages repository and restart concerns.

Constructor & Destructor Documentation

Summer.Batch.Core.Job.SimpleStepHandler.SimpleStepHandler ( )

Convenient default constructor for configuration usage.

Summer.Batch.Core.Job.SimpleStepHandler.SimpleStepHandler ( IJobRepository  jobRepository,
ExecutionContext  executionContext 
)

Custom constructor using a job repository and an execution context.

Parameters
jobRepository
executionContext
Summer.Batch.Core.Job.SimpleStepHandler.SimpleStepHandler ( IJobRepository  jobRepository)

Custom constructor using a job repository.

Parameters
jobRepository

Member Function Documentation

void Summer.Batch.Core.Job.SimpleStepHandler.AfterPropertiesSet ( )

Check mandatory properties (jobRepository).

See also
IInitializationPostOperations::AfterPropertiesSet .

Implements Summer.Batch.Common.Factory.IInitializationPostOperations.

StepExecution Summer.Batch.Core.Job.SimpleStepHandler.HandleStep ( IStep  step,
JobExecution  execution 
)

See also
IStepHandler::HandleStep .
Parameters
step
execution
Returns
Exceptions
JobInterruptedException 
JobRestartException 
StartLimitExceededException 

Implements Summer.Batch.Core.Job.IStepHandler.

bool Summer.Batch.Core.Job.SimpleStepHandler.ShouldStart ( StepExecution  lastStepExecution,
JobExecution  jobExecution,
IStep  step 
)
protected

Given a step and configuration, return true if the step should start, false if it should not, and throw an exception if the job should finish.

Parameters
lastStepExecution
jobExecution
step
Returns
Exceptions
JobRestartException 
StartLimitExceededException 

Property Documentation

ExecutionContext Summer.Batch.Core.Job.SimpleStepHandler.Context
set

Execution context property.

IJobRepository Summer.Batch.Core.Job.SimpleStepHandler.JobRepository
getset

Job repository property.


The documentation for this class was generated from the following file:
  • Summer.Batch.Core/Core/Job/SimpleStepHandler.cs