Abstract implementation of the IJob interface. Common dependencies such as a IJobRepository, IJobExecutionListener's, and various configuration parameters are set here. Therefore, common error handling and listener calling activities are abstracted away from implementations.
More...
|
static readonly Logger | Logger = LogManager.GetCurrentClassLogger() |
| Logger. More...
|
|
|
string | Name [get, set] |
| Name property. More...
|
|
bool | Restartable [get, set] |
| Restartable flag property. More...
|
|
IJobParametersIncrementer | JobParametersIncrementer [get, set] |
| job parameters incrementer property. More...
|
|
IJobParametersValidator | JobParametersValidator [get, set] |
| Job parameters validator property. More...
|
|
IJobRepository | JobRepository [get, set] |
| Job repository property. More...
|
|
string | Name [get, set] |
| Name. More...
|
|
bool | Restartable [get, set] |
| Flag to indicate if this job can be restarted, at least in principle (Actual restartability is bound to the use of a persisted job repository). More...
|
|
IJobParametersIncrementer | JobParametersIncrementer [get, set] |
| If clients need to generate new parameters for the next execution in a sequence they can use this incrementer. The return value may be null, in the case that this job does not have a natural sequence. More...
|
|
IJobParametersValidator | JobParametersValidator [get, set] |
| A validator for the job parameters of a JobExecution. Clients of a Job may need to validate the parameters for a launch, before or during the execution. More...
|
|
Abstract implementation of the IJob interface. Common dependencies such as a IJobRepository, IJobExecutionListener's, and various configuration parameters are set here. Therefore, common error handling and listener calling activities are abstracted away from implementations.
Summer.Batch.Core.Job.AbstractJob.AbstractJob |
( |
| ) |
|
|
protected |
Summer.Batch.Core.Job.AbstractJob.AbstractJob |
( |
string |
name | ) |
|
|
protected |
Custom constructor with a name.
- Parameters
-
void Summer.Batch.Core.Job.AbstractJob.AfterPropertiesSet |
( |
| ) |
|
abstract void Summer.Batch.Core.Job.AbstractJob.DoExecute |
( |
JobExecution |
execution | ) |
|
|
protectedpure virtual |
void Summer.Batch.Core.Job.AbstractJob.Execute |
( |
JobExecution |
execution | ) |
|
ExitStatus Summer.Batch.Core.Job.AbstractJob.GetDefaultExitStatusForFailure |
( |
Exception |
ex, |
|
|
JobExecution |
execution |
|
) |
| |
|
protected |
Computes exit status depending on exception.
- Parameters
-
- Returns
abstract IStep Summer.Batch.Core.Job.AbstractJob.GetStep |
( |
string |
stepName | ) |
|
|
pure virtual |
abstract ICollection<string> Summer.Batch.Core.Job.AbstractJob.GetStepNames |
( |
| ) |
|
|
pure virtual |
Convenience method for subclasses to delegate the handling of a specific step in the context of the current JobExecution . Clients of this method do not need access to the JobRepository, nor do they need to worry about populating the execution context on a restart, nor detecting the interrupted state (in job or step execution).
- Parameters
-
step | the step to execute |
execution | the current job execution |
- Returns
- Exceptions
-
Public setter for injecting IJobExecutionListeners. They will all be given the listener callbacks at the appropriate point in the job.
- Parameters
-
override string Summer.Batch.Core.Job.AbstractJob.ToString |
( |
| ) |
|
ToString override.
- Returns
readonly Logger Summer.Batch.Core.Job.AbstractJob.Logger = LogManager.GetCurrentClassLogger() |
|
staticprotected |
job parameters incrementer property.
Job parameters validator property.
string Summer.Batch.Core.Job.AbstractJob.Name |
|
getset |
bool Summer.Batch.Core.Job.AbstractJob.Restartable |
|
getset |
Restartable flag property.
The documentation for this class was generated from the following file:
- Summer.Batch.Core/Core/Job/AbstractJob.cs