Class XMLSchedulingDataProcessorPlugin

java.lang.Object
org.quartz.plugins.xml.XMLSchedulingDataProcessorPlugin
All Implemented Interfaces:
SchedulerPlugin

public class XMLSchedulingDataProcessorPlugin extends Object implements 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
    Constructor
    Description
    Constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    Comma 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 the Scheduler in order to give the SchedulerPlugin 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
    Overridden to ignore wrapInUserTransaction because shutdown() does not interact with the Scheduler.
    void
    Called when the associated Scheduler is started, in order to let the plug-in know it can now make calls into the scheduler if it needs to.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • XMLSchedulingDataProcessorPlugin

      public XMLSchedulingDataProcessorPlugin()
      Constructor
      Parameters:
      classLoadHelper -
  • Method Details

    • getFileNames

      public String 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 is true.
    • 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 is true.
    • initialize

      public void initialize(String name, Scheduler scheduler) throws SchedulerException
      Called during creation of the Scheduler in order to give the SchedulerPlugin a chance to initialize.
      Specified by:
      initialize in interface SchedulerPlugin
      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 associated Scheduler 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 interface SchedulerPlugin
    • shutdown

      public void shutdown()
      Overridden to ignore wrapInUserTransaction because shutdown() does not interact with the Scheduler.
      Specified by:
      shutdown in interface SchedulerPlugin