public class StdJobRunShellFactory extends java.lang.Object implements JobRunShellFactory
Responsible for creating the instances of
to be used within the JobRunShellQuartzScheduler
instance.
This implementation does not re-use any objects, it simply makes a new
JobRunShell each time borrowJobRunShell() is called.
| Constructor and Description |
|---|
StdJobRunShellFactory() |
| Modifier and Type | Method and Description |
|---|---|
JobRunShell |
borrowJobRunShell()
Called by the
QuartzSchedulerThread
to obtain instances of
. |
void |
initialize(Scheduler scheduler,
SchedulingContext schedCtxt)
Initialize the factory, providing a handle to the
Scheduler
that should be made available within the JobRunShell and
the JobExecutionCOntext s within it, and a handle to the
SchedulingContext that the shell will use in its own
operations with the JobStore. |
void |
returnJobRunShell(JobRunShell jobRunShell)
Called by the
QuartzSchedulerThread
to return instances of
. |
public void initialize(Scheduler scheduler, SchedulingContext schedCtxt)
Initialize the factory, providing a handle to the Scheduler
that should be made available within the JobRunShell and
the JobExecutionCOntext s within it, and a handle to the
SchedulingContext that the shell will use in its own
operations with the JobStore.
initialize in interface JobRunShellFactorypublic JobRunShell borrowJobRunShell() throws SchedulerException
Called by the QuartzSchedulerThread
to obtain instances of
.
JobRunShell
borrowJobRunShell in interface JobRunShellFactorySchedulerExceptionpublic void returnJobRunShell(JobRunShell jobRunShell)
Called by the QuartzSchedulerThread
to return instances of
.
JobRunShell
returnJobRunShell in interface JobRunShellFactory