예제 #1
0
 public double getServiceThroughput(String serviceName) {
   List<ServiceRate> completionRates = getThroughput();
   for (ServiceRate serviceRequestRate : completionRates) {
     if (serviceRequestRate.getServiceName().equals(serviceName)) {
       return serviceRequestRate.getRequestRate();
     }
   }
   return 0;
 }
예제 #2
0
 public double getServiceRequestRate(String serviceName) {
   List<ServiceRate> requestRates = getRequestRates();
   for (ServiceRate serviceRequestRate : requestRates) {
     if (serviceRequestRate.getServiceName().equals(serviceName)) {
       return serviceRequestRate.getRequestRate();
     }
   }
   return 0;
 }