org.quartz.impl
Class StdJobRunShellFactory

java.lang.Object
  extended by org.quartz.impl.StdJobRunShellFactory
All Implemented Interfaces:
JobRunShellFactory

public class StdJobRunShellFactory
extends java.lang.Object
implements JobRunShellFactory

Responsible for creating the instances of JobRunShell to be used within the QuartzScheduler instance.

This implementation does not re-use any objects, it simply makes a new JobRunShell each time borrowJobRunShell() is called.

Author:
James House

Constructor Summary
StdJobRunShellFactory()
           
 
Method Summary
 JobRunShell borrowJobRunShell()
           Called by the QuartzSchedulerThread to obtain instances of JobRunShell.
 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 JobRunShell.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StdJobRunShellFactory

public StdJobRunShellFactory()
Method Detail

initialize

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.

Specified by:
initialize in interface JobRunShellFactory

borrowJobRunShell

public JobRunShell borrowJobRunShell()
                              throws SchedulerException

Called by the QuartzSchedulerThread to obtain instances of JobRunShell.

Specified by:
borrowJobRunShell in interface JobRunShellFactory
Throws:
SchedulerException

returnJobRunShell

public void returnJobRunShell(JobRunShell jobRunShell)

Called by the QuartzSchedulerThread to return instances of JobRunShell.

Specified by:
returnJobRunShell in interface JobRunShellFactory


Copyright 2001-2019, Terracotta, Inc.