JobRunShell instances are responsible for providing the 'safe' environment
for IJob s to run in, and for performing all of the work of
executing the IJob, catching ANY thrown exceptions, updating
the ITrigger with the IJob's completion code,
etc.
A JobRunShell instance is created by a IJobRunShellFactory on behalf of the QuartzSchedulerThread which then runs the shell in a thread from the configured thread pool when the scheduler determines that a IJob has been triggered.
Inheritance Hierarchy
Quartz.ListenerSchedulerListenerSupport
Quartz.CoreJobRunShell
Namespace: Quartz.Core
Assembly: Quartz (in Quartz.dll) Version: 3.0.0
Syntax
C#
public class JobRunShell : SchedulerListenerSupport
The JobRunShell type exposes the following members.
Constructors
Name | Description | |
---|---|---|
JobRunShell |
Create a JobRunShell instance with the given settings.
|
Methods
Name | Description | |
---|---|---|
Begin |
Runs begin procedures on this instance.
| |
Complete |
Completes the execution.
| |
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Initialize |
Initializes the job execution context with given scheduler and bundle.
| |
JobAdded | (Inherited from SchedulerListenerSupport.) | |
JobDeleted | (Inherited from SchedulerListenerSupport.) | |
JobInterrupted | (Inherited from SchedulerListenerSupport.) | |
JobPaused | (Inherited from SchedulerListenerSupport.) | |
JobResumed | (Inherited from SchedulerListenerSupport.) | |
JobScheduled | (Inherited from SchedulerListenerSupport.) | |
JobsPaused | (Inherited from SchedulerListenerSupport.) | |
JobsResumed | (Inherited from SchedulerListenerSupport.) | |
JobUnscheduled | (Inherited from SchedulerListenerSupport.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Passivate |
Passivates this instance.
| |
RequestShutdown |
Requests the Shutdown.
| |
Run |
This method has to be implemented in order that starting of the thread causes the object's
run method to be called in that separately executing thread.
| |
SchedulerError | (Inherited from SchedulerListenerSupport.) | |
SchedulerInStandbyMode | (Inherited from SchedulerListenerSupport.) | |
SchedulerShutdown | (Inherited from SchedulerListenerSupport.) | |
SchedulerShuttingdown | (Overrides SchedulerListenerSupportSchedulerShuttingdown(CancellationToken).) | |
SchedulerStarted | (Inherited from SchedulerListenerSupport.) | |
SchedulerStarting | (Inherited from SchedulerListenerSupport.) | |
SchedulingDataCleared | (Inherited from SchedulerListenerSupport.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
TriggerFinalized | (Inherited from SchedulerListenerSupport.) | |
TriggerPaused | (Inherited from SchedulerListenerSupport.) | |
TriggerResumed | (Inherited from SchedulerListenerSupport.) | |
TriggersPaused | (Inherited from SchedulerListenerSupport.) | |
TriggersResumed | (Inherited from SchedulerListenerSupport.) |
See Also