org.quartz.core.QuartzScheduler.notifyJobListenersWasExecuted()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(2.3k)|赞(0)|评价(0)|浏览(136)

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

QuartzScheduler.notifyJobListenersWasExecuted介绍

暂无

代码示例

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

private boolean notifyJobListenersComplete(JobExecutionContext jobExCtxt, JobExecutionException jobExEx) {
  try {
    qs.notifyJobListenersWasExecuted(jobExCtxt, jobExEx);
  } catch (SchedulerException se) {
    qs.notifySchedulerListenersError(
        "Unable to notify JobListener(s) of Job that was executed: "
            + "(error will be ignored). trigger= "
            + jobExCtxt.getTrigger().getKey() + " job= "
            + jobExCtxt.getJobDetail().getKey(), se);
    return false;
  }
  return true;
}

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

private boolean notifyJobListenersComplete(JobExecutionContext jobExCtxt, JobExecutionException jobExEx) {
  try {
    qs.notifyJobListenersWasExecuted(jobExCtxt, jobExEx);
  } catch (SchedulerException se) {
    qs.notifySchedulerListenersError(
        "Unable to notify JobListener(s) of Job that was executed: "
            + "(error will be ignored). trigger= "
            + jobExCtxt.getTrigger().getKey() + " job= "
            + jobExCtxt.getJobDetail().getKey(), se);
    return false;
  }
  return true;
}

代码示例来源:origin: com.opensymphony.quartz/com.springsource.org.quartz

private boolean notifyJobListenersComplete(JobExecutionContext jec,
    JobExecutionException jobExEx) {
  try {
    qs.notifyJobListenersWasExecuted(jec, jobExEx);
  } catch (SchedulerException se) {
    qs.notifySchedulerListenersError(
        "Unable to notify JobListener(s) of Job that was executed: "
            + "(error will be ignored). trigger= "
            + jec.getTrigger().getFullName() + " job= "
            + jec.getJobDetail().getFullName(), se);
    return false;
  }
  return true;
}

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

private boolean notifyJobListenersComplete(JobExecutionContext jec,
    JobExecutionException jobExEx) {
  try {
    qs.notifyJobListenersWasExecuted(jec, jobExEx);
  } catch (SchedulerException se) {
    qs.notifySchedulerListenersError(
        "Unable to notify JobListener(s) of Job that was executed: "
            + "(error will be ignored). trigger= "
            + jec.getTrigger().getFullName() + " job= "
            + jec.getJobDetail().getFullName(), se);
    return false;
  }
  return true;
}

相关文章

QuartzScheduler类方法