Beispiel #1
0
  protected long getTimeoutCountByPortlet(String portletId, CompanyStatistics companyStatistics)
      throws MonitoringException {

    RequestStatistics requestStatistics = companyStatistics.getRenderRequestStatistics(portletId);

    return requestStatistics.getTimeoutCount();
  }
Beispiel #2
0
  @Override
  public long getAverageTimeByPortlet(String portletId, String webId) throws MonitoringException {

    CompanyStatistics companyStatistics = _serverStatistics.getCompanyStatistics(webId);

    RequestStatistics requestStatistics = companyStatistics.getRenderRequestStatistics(portletId);

    return requestStatistics.getAverageTime();
  }
Beispiel #3
0
  protected long getMinTimeByPortlet(String portletId, CompanyStatistics companyStatistics)
      throws MonitoringException {

    long minTime = 0;

    RequestStatistics requestStatistics = companyStatistics.getRenderRequestStatistics(portletId);

    if (requestStatistics.getMinTime() < minTime) {
      minTime = requestStatistics.getMinTime();
    }

    return minTime;
  }
Beispiel #4
0
  @Override
  public long getAverageTimeByPortlet(String portletId) throws MonitoringException {

    long averageTime = 0;

    Set<CompanyStatistics> companyStatisticsSet = _serverStatistics.getCompanyStatisticsSet();

    for (CompanyStatistics companyStatistics : companyStatisticsSet) {
      RequestStatistics requestStatistics = companyStatistics.getRenderRequestStatistics(portletId);

      averageTime += requestStatistics.getAverageTime();
    }

    return averageTime / companyStatisticsSet.size();
  }