Package org.quartz.plugins.xml
Class XMLSchedulingDataProcessorPlugin
java.lang.Object
org.quartz.plugins.xml.XMLSchedulingDataProcessorPlugin
- All Implemented Interfaces:
SchedulerPlugin
This plugin loads XML file(s) to add jobs and schedule them with triggers as the scheduler is
initialized, and can optionally periodically scan the file for changes.
- Author:
- James House, Pierre Awaragi, pl47ypus
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionComma separated list of file names (with paths) to the XML files that should be read.void
initialize
(String name, Scheduler scheduler) Called during creation of theScheduler
in order to give theSchedulerPlugin
a chance to initialize.boolean
Whether or not initialization of the plugin should fail (throw an exception) if the file cannot be found.void
setFailOnFileNotFound
(boolean failOnFileNotFound) Whether or not initialization of the plugin should fail (throw an exception) if the file cannot be found.void
shutdown()
Overridden to ignore wrapInUserTransaction because shutdown() does not interact with theScheduler
.void
start()
Called when the associatedScheduler
is started, in order to let the plug-in know it can now make calls into the scheduler if it needs to.
-
Constructor Details
-
XMLSchedulingDataProcessorPlugin
public XMLSchedulingDataProcessorPlugin()Constructor- Parameters:
classLoadHelper
-
-
-
Method Details
-
getFileNames
Comma separated list of file names (with paths) to the XML files that should be read. -
isFailOnFileNotFound
public boolean isFailOnFileNotFound()Whether or not initialization of the plugin should fail (throw an exception) if the file cannot be found. Default istrue
. -
setFailOnFileNotFound
public void setFailOnFileNotFound(boolean failOnFileNotFound) Whether or not initialization of the plugin should fail (throw an exception) if the file cannot be found. Default istrue
. -
initialize
Called during creation of theScheduler
in order to give theSchedulerPlugin
a chance to initialize.- Specified by:
initialize
in interfaceSchedulerPlugin
- Parameters:
name
- The name by which the plugin is identified.scheduler
- The scheduler to which the plugin is registered.- Throws:
SchedulerConfigException
- if there is an error initializing.SchedulerException
-
start
public void start()Description copied from interface:SchedulerPlugin
Called when the associatedScheduler
is started, in order to let the plug-in know it can now make calls into the scheduler if it needs to.- Specified by:
start
in interfaceSchedulerPlugin
-
shutdown
public void shutdown()Overridden to ignore wrapInUserTransaction because shutdown() does not interact with theScheduler
.- Specified by:
shutdown
in interfaceSchedulerPlugin
-