CapacitySchedulerHealthInfo(CapacityScheduler cs) {
SchedulerHealth ht = cs.getSchedulerHealth();
lastrun = ht.getLastSchedulerRunTime();
operationsInfo = new ArrayList<>();
operationsInfo.add(new OperationInformation("last-allocation",
ht.getLastAllocationDetails()));
operationsInfo.add(
new OperationInformation("last-release", ht.getLastReleaseDetails()));
operationsInfo.add(new OperationInformation("last-preemption",
ht.getLastPreemptionDetails()));
operationsInfo.add(new OperationInformation("last-reservation",
ht.getLastReservationDetails()));
lastRunDetails = new ArrayList<>();
lastRunDetails.add(new LastRunDetails("releases", ht.getReleaseCount(), ht
.getResourcesReleased()));
lastRunDetails.add(new LastRunDetails("allocations", ht
.getAllocationCount(), ht.getResourcesAllocated()));
lastRunDetails.add(new LastRunDetails("reservations", ht
.getReservationCount(), ht.getResourcesReserved()));
}
}