org.quartz.ee.jta
Class JTAJobRunShellFactory

java.lang.Object
  extended by org.quartz.ee.jta.JTAJobRunShellFactory
All Implemented Interfaces:
JobRunShellFactory

public class JTAJobRunShellFactory
extends Object
implements JobRunShellFactory

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

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

Author:
James House

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

Constructor Detail

JTAJobRunShellFactory

public JTAJobRunShellFactory()
Method Detail

initialize

public void initialize(Scheduler sched)
                throws SchedulerConfigException

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
Throws:
SchedulerConfigException

createJobRunShell

public JobRunShell createJobRunShell(TriggerFiredBundle bundle)
                              throws SchedulerException

Called by the QuartzSchedulerThread to obtain instances of JobRunShell.

Specified by:
createJobRunShell in interface JobRunShellFactory
Throws:
SchedulerException


Copyright 2001-2019, Terracotta, Inc.