public double getServiceUtilization(String serviceName) { Service service; double utilization = 0; try { service = serviceKnowledge.getProperty(serviceName); } catch (NotFoundException e) { return utilization; } utilization = utilizationManager.getCurrentServiceUtilization(service); // System.out.println("utilization of service " + serviceName + ": " + utilization); return utilization; }
public void updateUtilizationHistory() { utilizationManager.updateUtilizationHistory(); }
public double getPredictedTotalCPUUtilization() { return utilizationManager.getPredictedTotalCPUUtilization(); }
public double getCurrentTotalCPUUtilization() { return utilizationManager.getCurrentTotalCPUUtilization(); }
@Override public boolean isCPUUtilizationOverTheThreshold() { return utilizationManager.isCPUUtilizationOverTheThreshold(); }
public double getCPUUtilizationUpperBound() { return utilizationManager.getUtilizationUpperBound(); }
public boolean isCPUUtilizationOutOfRange() { double currentUtilization = getCurrentTotalCPUUtilization(); return utilizationManager.isCPUUtilizationOutOfRange(currentUtilization); }
public boolean isCPUUtilizationOutOfRange(double utilization) { return utilizationManager.isCPUUtilizationOutOfRange(utilization); }