Пример #1
0
  public long getRequestCount(String className, String methodName, String[] parameterTypes)
      throws SystemException {

    ServiceStatistics serviceStatistics = _serviceStatistics.get(className);

    if (serviceStatistics != null) {
      return serviceStatistics.getRequestCount(methodName, parameterTypes);
    }

    return -1;
  }
Пример #2
0
  public void processDataSample(ServiceRequestDataSample serviceRequestDataSample) {

    MethodKey methodKey = serviceRequestDataSample.getMethodKey();

    String className = methodKey.getClassName();

    ServiceStatistics serviceStatistics = _serviceStatistics.get(className);

    if (serviceStatistics == null) {
      serviceStatistics = new ServiceStatistics(className);

      _serviceStatistics.put(className, serviceStatistics);
    }

    serviceStatistics.processDataSample(serviceRequestDataSample);
  }