Java Code Examples for org.quartz.Scheduler#resumeTrigger()

The following examples show how to use org.quartz.Scheduler#resumeTrigger() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ScheduleServiceImpl.java    From fixflow with Apache License 2.0 5 votes vote down vote up
public void continueTrigger(String triggerName, String triggerGroup) {
	if(!getIsEnabled()){
		throw new FixFlowScheduleException(ExceptionCode.QUARZTEXCEPTION_ISENABLE);
	}
	Scheduler scheduler = getScheduler();
	TriggerKey tKey = new TriggerKey(triggerName,triggerGroup);
	try {
		scheduler.resumeTrigger(tKey);
	} catch (SchedulerException e) {
		throw new FixFlowException(e.getMessage(),e);
	}
}
 
Example 2
Source File: QuartzUtils.java    From quartz-web with Apache License 2.0 4 votes vote down vote up
public static void resumeTrigger(String triggerName, String triggerGroup, Scheduler scheduler) throws SchedulerException {
    TriggerKey triggerKey = getTriggerKey(triggerName, triggerGroup);
    scheduler.resumeTrigger(triggerKey);
}
 
Example 3
Source File: QuartzUtils.java    From quartz-web with Apache License 2.0 2 votes vote down vote up
/**
 * 重启Trigger
 * @param trigger
 * @param scheduler
 * @throws SchedulerException
 */
public static void resumeTrigger(Trigger trigger, Scheduler scheduler) throws SchedulerException {
    scheduler.resumeTrigger(trigger.getKey());
}