Пример #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;
 }