table.addCol("department", "department", 15);
}
table.addCol("state", "state", 5);
if (sge_time) {
Calc timeCalc = new Calc() {
public Object getValue(Object obj) {
JobSummary js = (JobSummary) obj;
if (js.isRunning()) {
return js.getStartTime();
} else {
return js.getSubmitTime();
}
}
};
table.addCol("submitTime", "submit/start at ", 19, DEFAULT_DATE_FORMAT, timeCalc);
}
if (sge_urg) {
table.addCol("deadline", "deadline", 15);
}
if (sge_ext) {
table.addCol("cpuUsage", "cpu", 8, new CpuUsageCalc());
table.addCol("memUsage", "mem", 7, OutputTable.Column.RIGHT, new MemUsageCalc());
table.addCol("ioUsage", "io", 7, OutputTable.Column.RIGHT, new IOUsageCalc());
table.addCol("tickets", "tckts", 8, new TicketCalc(sge_ext) {
public long getValue(JobSummary js) {
return js.getTickets();
}
});
table.addCol("overrideTickets", "ovrts", 8, new TicketCalc(sge_ext) {
public long getValue(JobSummary js) {
return js.getOverrideTickets();
}
});
table.addCol("otickets", "otckt", 8, new TicketCalc(sge_ext) {
public long getValue(JobSummary js) {
return js.getOtickets();
}
});
table.addCol("ftickets", "ftckt", 8, new TicketCalc(sge_ext) {
public long getValue(JobSummary js) {
return js.getFtickets();
}
});
table.addCol("stickets", "stckt", 8, new TicketCalc(sge_ext) {
public long getValue(JobSummary js) {
return js.getStickets();
}
});
table.addCol("share", "share", 8, new ShareCalc(sge_ext));
}
//table.addCol("queueAssigned", "qs", 5);
if (!options.showFullOutput()) {
table.addCol("queue", "queue", 30);
}
// if (options.showPEJobs()) {
if (options.showExtendedSubTaskInfo()) {
table.addCol("masterQueue", "master", 8, OutputTable.Column.LEFT);
} else {
table.addCol("slots", "slots", 8, OutputTable.Column.RIGHT);
}
table.addCol("ja-taskId", "ja-task-ID", 10, new JaTaskIdCalc());
if (tsk_ext) {
Calc fixedValue = new Calc() {
public Object getValue(Object obj) {
return " NA ";
}
};