public class XMLSchedulingDataProcessorPlugin extends Object implements SchedulerPlugin
| Constructor and Description |
|---|
XMLSchedulingDataProcessorPlugin()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
String |
getFileNames()
Comma separated list of file names (with paths) to the XML files that should be read.
|
long |
getScanInterval()
The interval (in seconds) at which to scan for changes to the file.
|
void |
initialize(String name,
Scheduler scheduler)
Called during creation of the
Scheduler in order to give the SchedulerPlugin a chance to initialize. |
boolean |
isFailOnFileNotFound()
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 |
setScanInterval(long scanInterval)
The interval (in seconds) at which to scan for changes to the file.
|
void |
shutdown()
Overridden to ignore wrapInUserTransaction because shutdown() does not interact with the
Scheduler. |
void |
start()
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. |
public XMLSchedulingDataProcessorPlugin()
classLoadHelper - public String getFileNames()
public long getScanInterval()
public void setScanInterval(long scanInterval)
scanInterval - The scanInterval to set.public boolean isFailOnFileNotFound()
true.public void setFailOnFileNotFound(boolean failOnFileNotFound)
true.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.
initialize in interface SchedulerPluginname - The name by which the plugin is identified.scheduler - The scheduler to which the plugin is registered.SchedulerConfigException - if there is an error initializing.SchedulerExceptionpublic void start()
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.
start in interface SchedulerPluginpublic void shutdown()
Scheduler.shutdown in interface SchedulerPluginCopyright © 2011–2017 Knowm Inc.. All rights reserved.