Interface IExecutionContext
public interface IExecutionContext
The job execution context is provided during job execution.
It may be used to access the job id and parameters, it also provides access to the scheduler to schedule new jobs or
to reschedule the currently executing job.
- Since:
- 11.0
- Author:
- Petru Galanton
-
Method Summary
Modifier and TypeMethodDescriptiongetJobId()
Returns the unique ID of this jobReturns the parameters of the job.Returns the scheduler
-
Method Details
-
getScheduler
IScheduler getScheduler()Returns the scheduler- Returns:
- the scheduler
-
getParameters
IJobParameters getParameters()Returns the parameters of the job. Note: The job may modify its parameters during execution. The modified parameters will be persisted after execution ends. This may be used to reschedule a job and with modified parameters.- Returns:
- the parameters of the job
-
getJobId
IJobId getJobId()Returns the unique ID of this job- Returns:
- the id of this job
-