Alex Rivera | Logout

Determining Paused State of Quartz Trigger?

Asked 2010-09-01T16:44:26.990
13

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 to be a way to figure out the paused state of a particular Trigger for a particular JobDetail.

Any friendly suggestions?

Edit
Report

1 Answer

22

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. :)

answered 2010-09-01T19:44:06.350

Your Answer