public class XMLSchedulingDataProcessor extends Object implements ErrorHandler
| Modifier and Type | Field and Description |
|---|---|
static String |
QUARTZ_XML_DEFAULT_FILE_NAME |
| Constructor and Description |
|---|
XMLSchedulingDataProcessor(ClassLoadHelper classLoadHelper)
Constructor for JobSchedulingDataLoader.
|
| Modifier and Type | Method and Description |
|---|---|
void |
error(SAXParseException e)
ErrorHandler interface.
|
void |
fatalError(SAXParseException e)
ErrorHandler interface.
|
protected Boolean |
getBoolean(XPath xpathToElement,
String elementName,
Node parentNode) |
void |
processFile(String fileName,
boolean failOnFileNotFound)
Process the xml file in the given location, and schedule all of the jobs defined within it.
|
void |
scheduleJobs(Scheduler sched)
Schedules the given sets of jobs and triggers.
|
void |
warning(SAXParseException e)
ErrorHandler interface.
|
public static final String QUARTZ_XML_DEFAULT_FILE_NAME
public XMLSchedulingDataProcessor(ClassLoadHelper classLoadHelper) throws ParserConfigurationException
classLoadHelper - clh - class-loader helper to share with digester.ParserConfigurationException - if the XML parser cannot be configured as needed.public void processFile(String fileName, boolean failOnFileNotFound) throws Exception
fileName - meta data file name.Exceptionprotected Boolean getBoolean(XPath xpathToElement, String elementName, Node parentNode) throws XPathExpressionException
XPathExpressionExceptionpublic void scheduleJobs(Scheduler sched) throws SchedulerException
sched - job scheduler.SchedulerException - if the Job or Trigger cannot be added to the Scheduler, or there is an internal Scheduler error.public void warning(SAXParseException e) throws SAXException
warning in interface ErrorHandlere - The error information encapsulated in a SAX parse exception.SAXException - Any SAX exception, possibly wrapping another exception.public void error(SAXParseException e) throws SAXException
error in interface ErrorHandlere - The error information encapsulated in a SAX parse exception.SAXException - Any SAX exception, possibly wrapping another exception.public void fatalError(SAXParseException e) throws SAXException
fatalError in interface ErrorHandlere - The error information encapsulated in a SAX parse exception.SAXException - Any SAX exception, possibly wrapping another exception.Copyright © 2011–2017 Knowm Inc.. All rights reserved.