Quartz Scheduler Quartz Is A Product of Terracotta
NEWS: Quartz 1.7.3 has been released.

How-To: Listing Triggers In Scheduler

Listing all Triggers in the scheduler

String[] triggerGroups;
String[] triggersInGroup;
int i;
int j;

triggerGroups = sched.getTriggerGroupNames();
for (i = 0; i < triggerGroups.length; i++) {
   System.out.println("Group: " + triggerGroups[i] + " contains the following triggers");
   triggersInGroup = sched.getTriggerNames(triggerGroups[i]);

   for (j = 0; j < triggersInGroup.length; j++) {
      System.out.println("- " + triggersInGroup[j]);
   }
}
© 2001-2010 Terracotta, Inc., http://www.terracotta.org