org.quartz.Scheduler.getCalendar()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(2.0k)|赞(0)|评价(0)|浏览(131)

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

Scheduler.getCalendar介绍

[英]Get the Calendar instance with the given name.
[中]获取具有给定名称的Calendar实例。

代码示例

代码示例来源:origin: org.rhq/rhq-enterprise-server

public Calendar getCalendar(String calName) throws SchedulerException {
  return scheduler.getCalendar(calName);
}

代码示例来源:origin: org.rhq/rhq-enterprise-server

public Calendar getCalendar(String calName) throws SchedulerException {
  return this.scheduler.getCalendar(calName);
}

代码示例来源:origin: myschedule/myschedule-quartz-extra

public Calendar getCalendar(String calendarName) {
  try {
    return scheduler.getCalendar(calendarName);
  } catch (Exception e) {
    throw new QuartzRuntimeException(e);
  }
}

代码示例来源:origin: org.codelibs/elasticsearch-quartz

public Calendar getCalendar(final String calName) {
  try {
    return scheduler.getCalendar(calName);
  } catch (final SchedulerException e) {
    throw new QuartzSchedulerException(e);
  }
}

代码示例来源:origin: OpenWiseSolutions/openhub-framework

@Override
public Calendar getCalendar(String calName) throws SchedulerException {
  return getScheduler().getCalendar(calName);
}

代码示例来源:origin: com.threewks.thundr/thundr-quartz

@Override
public Calendar getCalendar(String calName) throws QuartzException {
  try {
    return delegate.getCalendar(calName);
  } catch (SchedulerException e) {
    Logger.error(e.getMessage());
    throw new QuartzException(e);
  }
}

代码示例来源:origin: com.threewks.thundr/thundr-contrib-quartz

@Override
public Calendar getCalendar(String calName) throws QuartzException {
  try {
    return delegate.getCalendar(calName);
  } catch (SchedulerException e) {
    Logger.error(e.getMessage());
    throw new QuartzException(e);
  }
}

代码示例来源:origin: pentaho/pentaho-platform

job.setJobTrigger( complexJobTrigger );
if ( trigger.getCalendarName() != null ) {
 Calendar calendar = scheduler.getCalendar( trigger.getCalendarName() );
 if ( calendar instanceof QuartzSchedulerAvailability ) {
  QuartzSchedulerAvailability quartzSchedulerAvailability = (QuartzSchedulerAvailability) calendar;

相关文章