System.out.println("Successfully connected to " + url);
QueueInstanceSummaryOptions options = new QueueInstanceSummaryOptions();
// ResourceAttributeFilter raf = new ResourceAttributeFilter();
// raf.addValueName("arch");
// options.setResourceAttributeFilter(raf);
QueueInstanceSummaryResult res = jgdi.getQueueInstanceSummary(options);
for (QueueInstanceSummary cis : res.getQueueInstanceSummary()) {
cis.getJobList();
System.out.println(cis.getName() + " " + cis.getLoadAvg());
}
for (JobSummary js : res.getPendingJobs()) {
System.out.println(js.getId() + " (" + js.getName() + ") is pending");
}
} finally {
jgdi.close();
}