|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.quartz.listeners.SchedulerListenerSupport org.quartz.core.JobRunShell
public class JobRunShell
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.
JobRunShellFactory
,
QuartzSchedulerThread
,
Job
,
Trigger
Field Summary | |
---|---|
protected TriggerFiredBundle |
firedTriggerBundle
|
protected JobExecutionContextImpl |
jec
|
protected QuartzScheduler |
qs
|
protected Scheduler |
scheduler
|
protected boolean |
shutdownRequested
|
Constructor Summary | |
---|---|
JobRunShell(Scheduler scheduler,
TriggerFiredBundle bndle)
Create a JobRunShell instance with the given settings. |
Method Summary | |
---|---|
protected void |
begin()
|
protected void |
complete(boolean successfulExecution)
|
boolean |
completeTriggerRetryLoop(OperableTrigger trigger,
JobDetail jobDetail,
Trigger.CompletedExecutionInstruction instCode)
|
protected org.slf4j.Logger |
getLog()
Get the for this
class's category. |
void |
initialize(QuartzScheduler qs)
|
void |
passivate()
|
void |
requestShutdown()
|
void |
run()
|
void |
schedulerShuttingdown()
Called by the to inform the listener
that it has begun the shutdown sequence. |
boolean |
vetoedJobRetryLoop(OperableTrigger trigger,
JobDetail jobDetail,
Trigger.CompletedExecutionInstruction instCode)
|
Methods inherited from class org.quartz.listeners.SchedulerListenerSupport |
---|
jobAdded, jobDeleted, jobPaused, jobResumed, jobScheduled, jobsPaused, jobsResumed, jobUnscheduled, schedulerError, schedulerInStandbyMode, schedulerShutdown, schedulerStarted, schedulingDataCleared, triggerFinalized, triggerPaused, triggerResumed, triggersPaused, triggersResumed |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected JobExecutionContextImpl jec
protected QuartzScheduler qs
protected TriggerFiredBundle firedTriggerBundle
protected Scheduler scheduler
protected volatile boolean shutdownRequested
Constructor Detail |
---|
public JobRunShell(Scheduler scheduler, TriggerFiredBundle bndle)
Create a JobRunShell instance with the given settings.
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 Detail |
---|
public void schedulerShuttingdown()
SchedulerListener
Called by the
to inform the listener
that it has begun the shutdown sequence.
Scheduler
schedulerShuttingdown
in interface SchedulerListener
schedulerShuttingdown
in class SchedulerListenerSupport
protected org.slf4j.Logger getLog()
SchedulerListenerSupport
Logger
for this
class's category. This should be used by subclasses for logging.
getLog
in class SchedulerListenerSupport
public void initialize(QuartzScheduler qs) throws SchedulerException
SchedulerException
public void requestShutdown()
public void run()
run
in interface java.lang.Runnable
protected void begin() throws SchedulerException
SchedulerException
protected void complete(boolean successfulExecution) throws SchedulerException
SchedulerException
public void passivate()
public boolean completeTriggerRetryLoop(OperableTrigger trigger, JobDetail jobDetail, Trigger.CompletedExecutionInstruction instCode)
public boolean vetoedJobRetryLoop(OperableTrigger trigger, JobDetail jobDetail, Trigger.CompletedExecutionInstruction instCode)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |