Dashboard > Quartz 1 > ... > Documentation > ListTriggers
  Quartz 1 Log In View a printable version of the current page.  
  ListTriggers
Added by Aaron Craven, last edited by Aaron Craven on Jul 17, 2005
Labels: 
(None)

Listing Triggers in the 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]);
   }
}

Site powered by a free Open Source Project / Non-profit License (more) of Confluence - the Enterprise wiki.
Learn more or evaluate Confluence for your organisation.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.9 Build:#527 Sep 07, 2006) - Bug/feature request - Contact Administrators