Save This Page
Home » quartz-1.6.0 » org » quartz » core » [javadoc | source]
org.quartz.core
public class: JobRunShell [javadoc | source]
java.lang.Object
   org.quartz.core.JobRunShell

All Implemented Interfaces:
    Runnable

Direct Known Subclasses:
    JTAJobRunShell

JobRunShell instances are responsible for providing the 'safe' environment for Job s to run in, and for performing all of the work of executing the Job, catching ANY thrown exceptions, updating the Trigger with the Job's completion code, etc.

A JobRunShell instance is created by a JobRunShellFactory on behalf of the QuartzSchedulerThread which then runs the shell in a thread from the configured ThreadPool when the scheduler determines that a Job has been triggered.

Nested Class Summary:
class  JobRunShell.VetoedException   
Field Summary
protected  JobExecutionContext jec     
protected  QuartzScheduler qs     
protected  Scheduler scheduler     
protected  SchedulingContext schdCtxt     
protected  JobRunShellFactory jobRunShellFactory     
protected  boolean shutdownRequested     
Constructor:
 public JobRunShell(JobRunShellFactory jobRunShellFactory,
    Scheduler scheduler,
    SchedulingContext schdCtxt) 

    Create a JobRunShell instance with the given settings.

    Parameters:
    jobRunShellFactory - A handle to the JobRunShellFactory that produced this JobRunShell.
    scheduler - The Scheduler instance that should be made available within the JobExecutionContext.
    schdCtxt - the SchedulingContext that should be used by the JobRunShell when making updates to the JobStore.
Method from org.quartz.core.JobRunShell Summary:
begin,   complete,   completeTriggerRetryLoop,   getLog,   initialize,   passivate,   requestShutdown,   run,   vetoedJobRetryLoop
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.quartz.core.JobRunShell Detail:
 protected  void begin() throws SchedulerException 
 protected  void complete(boolean successfulExecution) throws SchedulerException 
 public boolean completeTriggerRetryLoop(Trigger trigger,
    JobDetail jobDetail,
    int instCode) 
 protected Log getLog() 
 public  void initialize(QuartzScheduler qs,
    TriggerFiredBundle firedBundle) throws SchedulerException 
 public  void passivate() 
 public  void requestShutdown() 
 public  void run() 
 public boolean vetoedJobRetryLoop(Trigger trigger,
    JobDetail jobDetail,
    int instCode)