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

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

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

XMLSchedulingDataProcessor.isIgnoreDuplicates介绍

[英]If true (and OverWriteExistingData is false) then any job/triggers encountered in this file that have names that already exist in the scheduler will be ignored, and no error will be produced.
[中]如果为true(且OverWriteExistingData为false),则将忽略此文件中遇到的任何作业/触发器,这些作业/触发器的名称已存在于计划程序中,并且不会产生任何错误。

代码示例

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

"/q:job-scheduling-data/q:processing-directives/q:ignore-duplicates", document);
if(ignoreDupes == null) {
  log.debug("Directive 'ignore-duplicates' not specified, defaulting to " + isIgnoreDuplicates());

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

"/q:job-scheduling-data/q:processing-directives/q:ignore-duplicates", document);
if(ignoreDupes == null) {
  log.debug("Directive 'ignore-duplicates' not specified, defaulting to " + isIgnoreDuplicates());

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

if(!isOverWriteExistingData() && isIgnoreDuplicates()) {
  log.info("Not overwriting existing job: " + dupeJ.getKey());
  continue; // just ignore the entry
if(!isOverWriteExistingData() && !isIgnoreDuplicates()) {
  throw new ObjectAlreadyExistsException(detail);
            "Rescheduling job: " + trigger.getJobKey() + " with updated trigger: " + trigger.getKey());
    } else if (isIgnoreDuplicates()) {
      log.info("Not overwriting existing trigger: " + dupeT.getKey());
      continue; // just ignore the trigger (and possibly job)
else if(isIgnoreDuplicates()) {
  log.info("Not overwriting existing trigger: " + dupeT.getKey());
  continue; // just ignore the trigger

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

if(!isOverWriteExistingData() && isIgnoreDuplicates()) {
  log.info("Not overwriting existing job: " + dupeJ.getKey());
  continue; // just ignore the entry
if(!isOverWriteExistingData() && !isIgnoreDuplicates()) {
  throw new ObjectAlreadyExistsException(detail);
            "Rescheduling job: " + trigger.getJobKey() + " with updated trigger: " + trigger.getKey());
    } else if (isIgnoreDuplicates()) {
      log.info("Not overwriting existing trigger: " + dupeT.getKey());
      continue; // just ignore the trigger (and possibly job)
else if(isIgnoreDuplicates()) {
  log.info("Not overwriting existing trigger: " + dupeT.getKey());
  continue; // just ignore the trigger

相关文章