コード例 #1
0
 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;
 }
コード例 #2
0
 public void updateUtilizationHistory() {
   utilizationManager.updateUtilizationHistory();
 }
コード例 #3
0
 public double getPredictedTotalCPUUtilization() {
   return utilizationManager.getPredictedTotalCPUUtilization();
 }
コード例 #4
0
 public double getCurrentTotalCPUUtilization() {
   return utilizationManager.getCurrentTotalCPUUtilization();
 }
コード例 #5
0
 @Override
 public boolean isCPUUtilizationOverTheThreshold() {
   return utilizationManager.isCPUUtilizationOverTheThreshold();
 }
コード例 #6
0
 public double getCPUUtilizationUpperBound() {
   return utilizationManager.getUtilizationUpperBound();
 }
コード例 #7
0
 public boolean isCPUUtilizationOutOfRange() {
   double currentUtilization = getCurrentTotalCPUUtilization();
   return utilizationManager.isCPUUtilizationOutOfRange(currentUtilization);
 }
コード例 #8
0
 public boolean isCPUUtilizationOutOfRange(double utilization) {
   return utilizationManager.isCPUUtilizationOutOfRange(utilization);
 }