本文整理了Java中org.quartz.Scheduler.getCalendar()
方法的一些代码示例,展示了Scheduler.getCalendar()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Scheduler.getCalendar()
方法的具体详情如下:
包路径:org.quartz.Scheduler
类名称: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;
内容来源于网络,如有侵权,请联系作者删除!