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

Listing Jobs in the Scheduler


Listing all Jobs in the scheduler
String[] jobGroups;
String[] jobsInGroup;
int i;
int j;

jobGroups = scheduler.getJobGroupNames();
for (i = 0; i < jobGroups.length; i++) {
   System.out.println("Group: " + jobGroups[i] + " contains the following jobs");
   jobsInGroup = scheduler.getJobNames(jobGroups[i]);

   for (j = 0; j < jobsInGroup.length; j++) {
      System.out.println("- " + jobsInGroup[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