Package honeycrm.client.misc

Examples of honeycrm.client.misc.ServiceCallStatistics


    final List<ServiceCallStatistics> stats = new LinkedList<ServiceCallStatistics>();

    for (final String serviceName : executionTimes.keySet()) {
      final List<Long> execTimes = executionTimes.get(serviceName);

      ServiceCallStatistics stat = new ServiceCallStatistics();

      stat.setCalls(execTimes.size());
      stat.setServiceName(serviceName);
      stat.setExecutionTimeMax(Collections.max(execTimes));
      stat.setExecutionTimeMin(Collections.min(execTimes));
      stat.setExecutionTimeAvg(getAvg(execTimes));
      // TODO calc and set avg

      stats.add(stat);
    }
    return stats;
View Full Code Here

TOP

Related Classes of honeycrm.client.misc.ServiceCallStatistics

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.