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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionComma separated list of file names (with paths) to the XML files that should be read.voidinitialize(String name, Scheduler scheduler) Called during creation of theSchedulerin order to give theSchedulerPlugina chance to initialize.booleanWhether or not initialization of the plugin should fail (throw an exception) if the file cannot be found.voidsetFailOnFileNotFound(boolean failOnFileNotFound) Whether or not initialization of the plugin should fail (throw an exception) if the file cannot be found.voidshutdown()Overridden to ignore wrapInUserTransaction because shutdown() does not interact with theScheduler.voidstart()Called when the associatedScheduleris 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 theSchedulerin order to give theSchedulerPlugina chance to initialize.- Specified by:
initializein 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:SchedulerPluginCalled when the associatedScheduleris started, in order to let the plug-in know it can now make calls into the scheduler if it needs to.- Specified by:
startin interfaceSchedulerPlugin
-
shutdown
public void shutdown()Overridden to ignore wrapInUserTransaction because shutdown() does not interact with theScheduler.- Specified by:
shutdownin interfaceSchedulerPlugin
-