System.out.println("Jobs");
System.out.println("=========================");
System.out.println();
List entries = jobManagers.getJobManagerEntries();
JobManagerEntry entry;
for (int i=0; i<entries.size(); i++) {
entry = (JobManagerEntry)entries.get(i);
JobManager jobManager = entry.getJobManager();
System.out.println(entry.getDisplayName());
System.out.println("-------------------------");
JobInfo [] jobs = jobManager.listJobs();
for (int j=0; j<jobs.length; j++) {
System.out.println(jobs[j].getJobId() + " " + jobs[j].getStatus());