Quartz Scheduler Example Programs and Sample Code : Quartz Code Snippets : How-To: List Triggers in Scheduler
How-To: List Triggers in Scheduler
Listing all Triggers in the Scheduler
// enumerate each trigger group
for(String group: sched.getTriggerGroupNames()) {
// enumerate each trigger in group
for(TriggerKey triggerKey : sched.getTriggerKeys(groupEquals(group))) {
System.out.println("Found trigger identified by: " + triggerKey);
}
}
Copyright © 2010-2015 Software AG, Darmstadt, Germany.

Product Logo |   Feedback