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?
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;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With