org.quartz.xml.XMLSchedulingDataProcessor.scheduleJobs()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(3.8k)|赞(0)|评价(0)|浏览(214)

本文整理了Java中org.quartz.xml.XMLSchedulingDataProcessor.scheduleJobs()方法的一些代码示例,展示了XMLSchedulingDataProcessor.scheduleJobs()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XMLSchedulingDataProcessor.scheduleJobs()方法的具体详情如下:
包路径:org.quartz.xml.XMLSchedulingDataProcessor
类名称:XMLSchedulingDataProcessor
方法名:scheduleJobs

XMLSchedulingDataProcessor.scheduleJobs介绍

[英]Schedules the given sets of jobs and triggers.
[中]

代码示例

代码示例来源:origin: quartz-scheduler/quartz

  1. /**
  2. * Process the xml file in the given location, and schedule all of the
  3. * jobs defined within it.
  4. *
  5. * @param fileName
  6. * meta data file name.
  7. */
  8. public void processFileAndScheduleJobs(String fileName, String systemId, Scheduler sched) throws Exception {
  9. processFile(fileName, systemId);
  10. executePreProcessCommands(sched);
  11. scheduleJobs(sched);
  12. }

代码示例来源:origin: quartz-scheduler/quartz

  1. /**
  2. * Process the xml file in the given location, and schedule all of the
  3. * jobs defined within it.
  4. *
  5. * @param fileName
  6. * meta data file name.
  7. */
  8. public void processFileAndScheduleJobs(String fileName, String systemId, Scheduler sched) throws Exception {
  9. processFile(fileName, systemId);
  10. executePreProcessCommands(sched);
  11. scheduleJobs(sched);
  12. }

代码示例来源:origin: quartz-scheduler/quartz

  1. /**
  2. * Process the xmlfile named <code>fileName</code> with the given system
  3. * ID.
  4. *
  5. * @param stream
  6. * an input stream containing the xml content.
  7. * @param systemId
  8. * system ID.
  9. */
  10. public void processStreamAndScheduleJobs(InputStream stream, String systemId, Scheduler sched)
  11. throws ValidationException, ParserConfigurationException,
  12. SAXException, XPathException, IOException, SchedulerException,
  13. ClassNotFoundException, ParseException {
  14. prepForProcessing();
  15. log.info("Parsing XML from stream with systemId: " + systemId);
  16. InputSource is = new InputSource(stream);
  17. is.setSystemId(systemId);
  18. process(is);
  19. executePreProcessCommands(sched);
  20. scheduleJobs(sched);
  21. maybeThrowValidationException();
  22. }

代码示例来源:origin: quartz-scheduler/quartz

  1. /**
  2. * Process the xmlfile named <code>fileName</code> with the given system
  3. * ID.
  4. *
  5. * @param stream
  6. * an input stream containing the xml content.
  7. * @param systemId
  8. * system ID.
  9. */
  10. public void processStreamAndScheduleJobs(InputStream stream, String systemId, Scheduler sched)
  11. throws ValidationException, ParserConfigurationException,
  12. SAXException, XPathException, IOException, SchedulerException,
  13. ClassNotFoundException, ParseException {
  14. prepForProcessing();
  15. log.info("Parsing XML from stream with systemId: " + systemId);
  16. InputSource is = new InputSource(stream);
  17. is.setSystemId(systemId);
  18. process(is);
  19. executePreProcessCommands(sched);
  20. scheduleJobs(sched);
  21. maybeThrowValidationException();
  22. }

代码示例来源:origin: quartz-scheduler/quartz

  1. /**
  2. * Process the xml file in the default location, and schedule all of the
  3. * jobs defined within it.
  4. *
  5. * <p>Note that we will set overWriteExistingJobs after the default xml is parsed.
  6. */
  7. public void processFileAndScheduleJobs(Scheduler sched,
  8. boolean overWriteExistingJobs) throws Exception {
  9. String fileName = QUARTZ_XML_DEFAULT_FILE_NAME;
  10. processFile(fileName, getSystemIdForFileName(fileName));
  11. // The overWriteExistingJobs flag was set by processFile() -> prepForProcessing(), then by xml parsing, and then now
  12. // we need to reset it again here by this method parameter to override it.
  13. setOverWriteExistingData(overWriteExistingJobs);
  14. executePreProcessCommands(sched);
  15. scheduleJobs(sched);
  16. }

代码示例来源:origin: quartz-scheduler/quartz

  1. /**
  2. * Process the xml file in the default location, and schedule all of the
  3. * jobs defined within it.
  4. *
  5. * <p>Note that we will set overWriteExistingJobs after the default xml is parsed.
  6. */
  7. public void processFileAndScheduleJobs(Scheduler sched,
  8. boolean overWriteExistingJobs) throws Exception {
  9. String fileName = QUARTZ_XML_DEFAULT_FILE_NAME;
  10. processFile(fileName, getSystemIdForFileName(fileName));
  11. // The overWriteExistingJobs flag was set by processFile() -> prepForProcessing(), then by xml parsing, and then now
  12. // we need to reset it again here by this method parameter to override it.
  13. setOverWriteExistingData(overWriteExistingJobs);
  14. executePreProcessCommands(sched);
  15. scheduleJobs(sched);
  16. }

相关文章