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

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

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

XMLSchedulingDataProcessor.setOverWriteExistingData介绍

[英]Whether the existing scheduling data (with same identifiers) will be overwritten. If false, and IgnoreDuplicates is not false, and jobs or triggers with the same names already exist as those in the file, an error will occur.
[中]

代码示例

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

protected void prepForProcessing()
{
  clearValidationExceptions();
  
  setOverWriteExistingData(true);
  setIgnoreDuplicates(false);
  jobGroupsToDelete.clear();
  jobsToDelete.clear();
  triggerGroupsToDelete.clear();
  triggersToDelete.clear();
  
  loadedJobs.clear();
  loadedTriggers.clear();
}

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

protected void prepForProcessing()
{
  clearValidationExceptions();
  
  setOverWriteExistingData(true);
  setIgnoreDuplicates(false);
  jobGroupsToDelete.clear();
  jobsToDelete.clear();
  triggerGroupsToDelete.clear();
  triggersToDelete.clear();
  
  loadedJobs.clear();
  loadedTriggers.clear();
}

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

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

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

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

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

setOverWriteExistingData(overWrite);

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

setOverWriteExistingData(overWrite);

相关文章