本文整理了Java中org.quartz.Scheduler.resumeAll()
方法的一些代码示例,展示了Scheduler.resumeAll()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Scheduler.resumeAll()
方法的具体详情如下:
包路径:org.quartz.Scheduler
类名称:Scheduler
方法名:resumeAll
[英]Resume (un-pause) all triggers - similar to calling resumeTriggerGroup(group)
on every group.
If any Trigger
missed one or more fire-times, then the Trigger
's misfire instruction will be applied.
[中]恢复(取消暂停)所有触发器-类似于对每个组调用resumeTriggerGroup(group)
。
如果任何Trigger
错过一次或多次点火,则Trigger
的失火指令将被应用。
代码示例来源:origin: azkaban/azkaban
public void resume() {
logger.info("resuming all schedules in Quartz");
try {
this.scheduler.resumeAll();
} catch (final SchedulerException e) {
logger.error("Exception resuming scheduler: ", e);
}
}
代码示例来源:origin: javamelody/javamelody
private void resumeAllJobs() {
try {
for (final Scheduler scheduler : JobInformations.getAllSchedulers()) {
scheduler.resumeAll();
}
} catch (final Exception e) {
throw new IllegalStateException(e);
}
}
}
代码示例来源:origin: elasticjob/elastic-job-lite
/**
* 恢复作业.
*/
public synchronized void resumeJob() {
try {
if (!scheduler.isShutdown()) {
scheduler.resumeAll();
}
} catch (final SchedulerException ex) {
throw new JobSystemException(ex);
}
}
代码示例来源:origin: org.rhq/rhq-enterprise-server
public void resumeAll() throws SchedulerException {
scheduler.resumeAll();
}
代码示例来源:origin: org.rhq/rhq-enterprise-server
public void resumeAll() throws SchedulerException {
this.scheduler.resumeAll();
}
代码示例来源:origin: org.codelibs/elasticsearch-quartz
public void resumeAll() {
try {
scheduler.resumeAll();
} catch (final SchedulerException e) {
throw new QuartzSchedulerException(e);
}
}
代码示例来源:origin: OpenNMS/opennms
/**
* <p>resume</p>
*
* @throws org.quartz.SchedulerException if any.
*/
public void resume() throws SchedulerException {
getScheduler().resumeAll();
}
代码示例来源:origin: net.bull.javamelody/javamelody-core
private void resumeAllJobs() {
try {
for (final Scheduler scheduler : JobInformations.getAllSchedulers()) {
scheduler.resumeAll();
}
} catch (final Exception e) {
throw new IllegalStateException(e);
}
}
}
代码示例来源:origin: lvhao/schedule-job
public boolean enableAll(){
try {
scheduler.resumeAll();
return true;
} catch (SchedulerException e) {
e.printStackTrace();
}
return false;
}
代码示例来源:origin: myschedule/myschedule-quartz-extra
public void resumeAllTriggers() {
try {
scheduler.resumeAll();
} catch (SchedulerException e) {
throw new QuartzRuntimeException(e);
}
}
代码示例来源:origin: myschedule/myschedule-quartz-extra
public void resumeAll() {
try {
scheduler.resumeAll();
} catch (SchedulerException e) {
throw new QuartzRuntimeException(e);
}
}
代码示例来源:origin: org.opennms/opennms-provisiond
/**
* <p>resume</p>
*
* @throws org.quartz.SchedulerException if any.
*/
public void resume() throws SchedulerException {
getScheduler().resumeAll();
}
代码示例来源:origin: com.blazebit/blaze-quartz-utils
public static void resume() throws SchedulerException {
Scheduler sched = StdSchedulerFactory.getDefaultScheduler();
sched.resumeAll();
}
代码示例来源:origin: OpenWiseSolutions/openhub-framework
@Override
public void resumeAll() throws SchedulerException {
getScheduler().resumeAll();
}
代码示例来源:origin: com.quhaodian.discover/discover-quartz
@RequestMapping(value = "/admin/crontask/resumeall")
public String resumeAll(Model model) {
Scheduler scheduler = getScheduler();
if (scheduler != null) {
try {
scheduler.resumeAll();
} catch (SchedulerException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
return "redirect:/admin/crontask/index.htm";
}
代码示例来源:origin: org.codelibs/elasticsearch-quartz
@Override
protected void doStart() throws ElasticsearchException {
logger.info("Starting Scheduler...");
synchronized (scheduler) {
try {
if (isPause) {
scheduler.resumeAll();
} else {
scheduler.start();
}
} catch (final SchedulerException e) {
throw new QuartzSchedulerException(
"Failed to start Scheduler.", e);
}
}
}
代码示例来源:origin: com.dangdang/elastic-job-lite-core
/**
* 恢复作业.
*/
public synchronized void resumeJob() {
try {
if (!scheduler.isShutdown()) {
scheduler.resumeAll();
}
} catch (final SchedulerException ex) {
throw new JobSystemException(ex);
}
}
代码示例来源:origin: com.threewks.thundr/thundr-quartz
@Override
public void resumeAll() throws QuartzException {
try {
delegate.resumeAll();
} catch (SchedulerException e) {
Logger.error(e.getMessage());
throw new QuartzException(e);
}
}
代码示例来源:origin: com.threewks.thundr/thundr-contrib-quartz
@Override
public void resumeAll() throws QuartzException {
try {
delegate.resumeAll();
} catch (SchedulerException e) {
Logger.error(e.getMessage());
throw new QuartzException(e);
}
}
代码示例来源:origin: wso2/wso2-synapse
@Override
public boolean resumeAll() {
try {
assertInitialized();
assertStarted();
synchronized (lock) {
scheduler.resumeAll();
}
} catch (SchedulerException e) {
throw new SynapseTaskException("Error resuming tasks ", e, logger);
}
return true;
}
内容来源于网络,如有侵权,请联系作者删除!