|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.infoglue.deliver.jobs.JobInitializationPlugin
public class JobInitializationPlugin
This plugin loads an XML file to add jobs and schedule them with triggers as the scheduler is initialized, and can optionally periodically scan the file for changes.
| Constructor Summary | |
|---|---|
JobInitializationPlugin()
|
|
| Method Summary | |
|---|---|
void |
fileUpdated(java.lang.String fileName)
|
java.lang.String |
getFileName()
The file name (and path) to the XML file that should be read. |
protected static org.apache.commons.logging.Log |
getLog()
|
long |
getScanInterval()
The interval (in seconds) at which to scan for changes to the file. |
void |
initialize(java.lang.String name,
org.quartz.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. |
boolean |
isOverWriteExistingJobs()
Whether or not jobs defined in the XML file should be overwrite existing jobs with the same name. |
boolean |
isUseContextClassLoader()
Whether or not the context class loader should be used. |
boolean |
isValidating()
Whether or not the XML should be validated. |
boolean |
isValidatingSchema()
Whether or not the XML schema should be validated. |
void |
processFile()
|
void |
setFailOnFileNotFound(boolean failOnFileNotFound)
Whether or not initialization of the plugin should fail (throw an exception) if the file cannot be found. |
void |
setFileName(java.lang.String fileName)
The file name (and path) to the XML file that should be read. |
void |
setOverWriteExistingJobs(boolean overWriteExistingJobs)
Whether or not jobs defined in the XML file should be overwrite existing jobs with the same name. |
void |
setScanInterval(long scanInterval)
The interval (in seconds) at which to scan for changes to the file. |
void |
setUseContextClassLoader(boolean useContextClassLoader)
Whether or not context class loader should be used. |
void |
setValidating(boolean validating)
Whether or not the XML should be validated. |
void |
setValidatingSchema(boolean validatingSchema)
Whether or not the XML schema should be validated. |
void |
shutdown()
Called in order to inform the SchedulerPlugin that it
should free up all of it's resources because the scheduler is shutting
down. |
void |
start()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JobInitializationPlugin()
| Method Detail |
|---|
public java.lang.String getFileName()
public void setFileName(java.lang.String fileName)
fileName - public boolean isOverWriteExistingJobs()
public void setOverWriteExistingJobs(boolean overWriteExistingJobs)
overWriteExistingJobs - public long getScanInterval()
public void setScanInterval(long scanInterval)
scanInterval - The scanInterval to set.public boolean isFailOnFileNotFound()
true.
public void setFailOnFileNotFound(boolean failOnFileNotFound)
true.
overWriteExistingJobs - public boolean isUseContextClassLoader()
true.
public void setUseContextClassLoader(boolean useContextClassLoader)
true.
useContextClassLoader - public boolean isValidating()
true.
public void setValidating(boolean validating)
true.
validating - public boolean isValidatingSchema()
true.
public void setValidatingSchema(boolean validatingSchema)
true.
validatingSchema - protected static org.apache.commons.logging.Log getLog()
public void initialize(java.lang.String name,
org.quartz.Scheduler scheduler)
throws org.quartz.SchedulerException
Called during creation of the Scheduler in order to give
the SchedulerPlugin a chance to initialize.
initialize in interface org.quartz.spi.SchedulerPluginorg.quartz.SchedulerConfigException - if there is an error initializing.
org.quartz.SchedulerExceptionpublic void start()
start in interface org.quartz.spi.SchedulerPluginpublic void shutdown()
Called in order to inform the SchedulerPlugin that it
should free up all of it's resources because the scheduler is shutting
down.
shutdown in interface org.quartz.spi.SchedulerPluginpublic void processFile()
public void fileUpdated(java.lang.String fileName)
fileUpdated in interface org.quartz.jobs.FileScanListenerFileScanListener.fileUpdated(java.lang.String)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||