Property | Type | Description | |
---|---|---|---|
Logger | Logger |
Method | Description | |
---|---|---|
AfterPropertiesSet ( ) : void |
Post-init. checks. @see IInitializationPostOperations#AfterPropertiesSet.
|
|
Execute ( JobExecution execution ) : void |
Executes job.
|
|
GetStep ( string stepName ) : IStep |
To be overriden by subclasses.
|
|
GetStepNames ( ) : ICollection |
To be overriden by subclasses.
|
|
RegisterJobExecutionListener ( IJobExecutionListener listener ) : void |
Register a single listener for the IJobExecutionListener callbacks.
|
|
SetJobExecutionListeners ( IJobExecutionListener listeners ) : void |
Public setter for injecting IJobExecutionListeners. They will all be given the listener callbacks at the appropriate point in the job.
|
|
ToString ( ) : string |
ToString override.
|
Method | Description | |
---|---|---|
AbstractJob ( ) : NLog |
Default constructor.
|
|
AbstractJob ( string name ) : NLog |
Custom constructor with a name.
|
|
DoExecute ( JobExecution execution ) : void |
Actual job execution. To be implemented by sub-classes.
|
|
GetDefaultExitStatusForFailure ( |
Computes exit status depending on exception.
|
|
HandleStep ( IStep step, JobExecution execution ) : StepExecution |
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).
|
Method | Description | |
---|---|---|
HandleException ( JobExecution execution, |
Exception handling.
|
|
HandleExecution ( JobExecution execution ) : void |
Actual job execution. Delegates to DoExecute.
|
|
HandleJobInterruptedException ( JobExecution execution, JobInterruptedException e ) : void |
Job interruption handling.
|
|
HandlePostExecution ( JobExecution execution ) : void |
Call to listeners that might add some post execution behaviour.
|
|
UpdateStatus ( JobExecution jobExecution, BatchStatus status ) : void |
protected abstract DoExecute ( JobExecution execution ) : void | ||
execution | JobExecution | |
return | void |
public Execute ( JobExecution execution ) : void | ||
execution | JobExecution | |
return | void |
protected GetDefaultExitStatusForFailure ( |
||
ex | ||
execution | JobExecution | |
return | ExitStatus |
public abstract GetStep ( string stepName ) : IStep | ||
stepName | string | |
return | IStep |
public abstract GetStepNames ( ) : ICollection |
||
return | ICollection |
protected HandleStep ( IStep step, JobExecution execution ) : StepExecution | ||
step | IStep | the step to execute |
execution | JobExecution | the current job execution |
return | StepExecution |
public RegisterJobExecutionListener ( IJobExecutionListener listener ) : void | ||
listener | IJobExecutionListener | |
return | void |
public SetJobExecutionListeners ( IJobExecutionListener listeners ) : void | ||
listeners | IJobExecutionListener | |
return | void |