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

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

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

XMLSchedulingDataProcessor.processFileAndScheduleJobs介绍

[英]Process the xml file in the given location, and schedule all of the jobs defined within it.
[中]在给定位置处理xml文件,并安排其中定义的所有作业。

代码示例

代码示例来源: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, Scheduler sched) throws Exception {
  9. processFileAndScheduleJobs(fileName, getSystemIdForFileName(fileName), sched);
  10. }

代码示例来源: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, Scheduler sched) throws Exception {
  9. processFileAndScheduleJobs(fileName, getSystemIdForFileName(fileName), sched);
  10. }

代码示例来源:origin: spring-projects/spring-framework

  1. XMLSchedulingDataProcessor dataProcessor = new XMLSchedulingDataProcessor(clh);
  2. for (String location : this.jobSchedulingDataLocations) {
  3. dataProcessor.processFileAndScheduleJobs(location, getScheduler());

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

  1. private void processFile(JobFile jobFile) {
  2. if (jobFile == null || !jobFile.getFileFound()) {
  3. return;
  4. }
  5. try {
  6. XMLSchedulingDataProcessor processor =
  7. new XMLSchedulingDataProcessor(this.classLoadHelper);
  8. processor.addJobGroupToNeverDelete(JOB_INITIALIZATION_PLUGIN_NAME);
  9. processor.addTriggerGroupToNeverDelete(JOB_INITIALIZATION_PLUGIN_NAME);
  10. processor.processFileAndScheduleJobs(
  11. jobFile.getFileName(),
  12. jobFile.getFileName(), // systemId
  13. getScheduler());
  14. } catch (Exception e) {
  15. getLog().error("Error scheduling jobs: " + e.getMessage(), e);
  16. }
  17. }

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

  1. private void processFile(JobFile jobFile) {
  2. if (jobFile == null || !jobFile.getFileFound()) {
  3. return;
  4. }
  5. try {
  6. XMLSchedulingDataProcessor processor =
  7. new XMLSchedulingDataProcessor(this.classLoadHelper);
  8. processor.addJobGroupToNeverDelete(JOB_INITIALIZATION_PLUGIN_NAME);
  9. processor.addTriggerGroupToNeverDelete(JOB_INITIALIZATION_PLUGIN_NAME);
  10. processor.processFileAndScheduleJobs(
  11. jobFile.getFileName(),
  12. jobFile.getFileName(), // systemId
  13. getScheduler());
  14. } catch (Exception e) {
  15. getLog().error("Error scheduling jobs: " + e.getMessage(), e);
  16. }
  17. }

代码示例来源:origin: org.springframework/spring-context-support

  1. XMLSchedulingDataProcessor dataProcessor = new XMLSchedulingDataProcessor(clh);
  2. for (String location : this.jobSchedulingDataLocations) {
  3. dataProcessor.processFileAndScheduleJobs(location, getScheduler());

代码示例来源:origin: org.opensingular/singular-flow-schedule

  1. XMLSchedulingDataProcessor dataProcessor = new XMLSchedulingDataProcessor(clh);
  2. for (String location : this.jobSchedulingDataLocations) {
  3. dataProcessor.processFileAndScheduleJobs(location, getScheduler());

代码示例来源:origin: org.opensingular/flow-schedule

  1. XMLSchedulingDataProcessor dataProcessor = new XMLSchedulingDataProcessor(clh);
  2. for (String location : this.jobSchedulingDataLocations) {
  3. dataProcessor.processFileAndScheduleJobs(location, getScheduler());

代码示例来源:origin: org.opensingular/singular-schedule

  1. XMLSchedulingDataProcessor dataProcessor = new XMLSchedulingDataProcessor(clh);
  2. for (String location : this.jobSchedulingDataLocations) {
  3. dataProcessor.processFileAndScheduleJobs(location, getScheduler());

代码示例来源:origin: apache/servicemix-bundles

  1. XMLSchedulingDataProcessor dataProcessor = new XMLSchedulingDataProcessor(clh);
  2. for (String location : this.jobSchedulingDataLocations) {
  3. dataProcessor.processFileAndScheduleJobs(location, getScheduler());

相关文章