开发者

Determining Paused State of Quartz Trigger?

Is there a way to determine if a specific Trigger in Quartz is in paused state?

I know of the getPausedTriggerGroups() method on Scheduler, but there doesn't seem开发者_JAVA百科 to be a way to figure out the paused state of a particular Trigger for a particular JobDetail.

Any friendly suggestions?


According to the API docs, Scheduler.getTriggerState(String triggerName, String triggerGroup) can tell you the state of a particular trigger, returning one of these constants: Trigger.STATE_NORMAL, Trigger.STATE_PAUSED, Trigger.STATE_COMPLETE, Trigger.STATE_ERROR, Trigger.STATE_BLOCKED, Trigger.STATE_NONE

But, yeah, that's not entirely intuitive. :)


Beyond Quartz 1.8.1 this is an enumeration. See import org.quartz.Trigger.TriggerState;

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜