예제 #1
0
  @Override
  public long getAverageTimeByPortlet(String portletId, String webId) throws MonitoringException {

    CompanyStatistics companyStatistics = _serverStatistics.getCompanyStatistics(webId);

    RequestStatistics requestStatistics = companyStatistics.getActionRequestStatistics(portletId);

    return requestStatistics.getAverageTime();
  }
예제 #2
0
  @Override
  public long getAverageTimeByPortlet(String portletId) throws MonitoringException {

    long averageTime = 0;

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

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

      averageTime += requestStatistics.getAverageTime();
    }

    return averageTime / companyStatisticsSet.size();
  }
예제 #3
0
  protected long getTimeoutCountByPortlet(String portletId, CompanyStatistics companyStatistics)
      throws MonitoringException {

    RequestStatistics requestStatistics = companyStatistics.getActionRequestStatistics(portletId);

    return requestStatistics.getTimeoutCount();
  }
예제 #4
0
  protected long getSuccessCountByPortlet(String portletId, CompanyStatistics companyStatistics)
      throws MonitoringException {

    RequestStatistics requestStatistics = companyStatistics.getRenderRequestStatistics(portletId);

    return requestStatistics.getSuccessCount();
  }
예제 #5
0
  @Override
  public long getMinTime() {
    long minTime = 0;

    for (CompanyStatistics companyStatistics : _serverStatistics.getCompanyStatisticsSet()) {

      for (RequestStatistics requestStatistics :
          companyStatistics.getActionRequestStatisticsSet()) {

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

    return minTime;
  }
예제 #6
0
  @Override
  public long getMaxTime() {
    long maxTime = 0;

    for (CompanyStatistics companyStatistics : _serverStatistics.getCompanyStatisticsSet()) {

      for (RequestStatistics requestStatistics :
          companyStatistics.getRenderRequestStatisticsSet()) {

        if (requestStatistics.getMaxTime() > maxTime) {
          maxTime = requestStatistics.getMaxTime();
        }
      }
    }

    return maxTime;
  }
예제 #7
0
  protected long getErrorCountByCompany(CompanyStatistics companyStatistics) {
    long errorCount = 0;

    for (RequestStatistics requestStatistics : companyStatistics.getActionRequestStatisticsSet()) {

      errorCount += requestStatistics.getErrorCount();
    }

    return errorCount;
  }
예제 #8
0
  @Override
  public long getAverageTime() {
    long averageTime = 0;

    long count = 0;

    for (CompanyStatistics companyStatistics : _serverStatistics.getCompanyStatisticsSet()) {

      for (RequestStatistics requestStatistics :
          companyStatistics.getActionRequestStatisticsSet()) {

        averageTime += requestStatistics.getAverageTime();

        count++;
      }
    }

    return averageTime / count;
  }
예제 #9
0
  protected long getTimeoutCountByCompany(CompanyStatistics companyStatistics) {

    long timeoutCount = 0;

    for (RequestStatistics requestStatistics : companyStatistics.getActionRequestStatisticsSet()) {

      timeoutCount += requestStatistics.getTimeoutCount();
    }

    return timeoutCount;
  }
예제 #10
0
  protected long getSuccessCountByCompany(CompanyStatistics companyStatistics) {

    long successCount = 0;

    for (RequestStatistics requestStatistics : companyStatistics.getActionRequestStatisticsSet()) {

      successCount += requestStatistics.getSuccessCount();
    }

    return successCount;
  }
예제 #11
0
  protected long getRequestCountByCompany(CompanyStatistics companyStatistics) {

    long requestCount = 0;

    for (RequestStatistics requestStatistics : companyStatistics.getRenderRequestStatisticsSet()) {

      requestCount += requestStatistics.getRequestCount();
    }

    return requestCount;
  }
예제 #12
0
  protected long getAverageTimeByCompany(CompanyStatistics companyStatistics) {

    long averageTime = 0;

    Set<RequestStatistics> requestStatisticsSet = companyStatistics.getActionRequestStatisticsSet();

    for (RequestStatistics requestStatistics : requestStatisticsSet) {
      averageTime += requestStatistics.getAverageTime();
    }

    return averageTime / requestStatisticsSet.size();
  }
예제 #13
0
  protected long getMinTimeByPortlet(String portletId, CompanyStatistics companyStatistics)
      throws MonitoringException {

    long minTime = 0;

    RequestStatistics requestStatistics = companyStatistics.getActionRequestStatistics(portletId);

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

    return minTime;
  }
예제 #14
0
  protected long getMaxTimeByPortlet(String portletId, CompanyStatistics companyStatistics)
      throws MonitoringException {

    long maxTime = 0;

    RequestStatistics requestStatistics = companyStatistics.getRenderRequestStatistics(portletId);

    if (requestStatistics.getMaxTime() > maxTime) {
      maxTime = requestStatistics.getMaxTime();
    }

    return maxTime;
  }
예제 #15
0
  @Override
  public long getMinTimeByCompany(String webId) throws MonitoringException {
    CompanyStatistics companyStatistics = _serverStatistics.getCompanyStatistics(webId);

    return companyStatistics.getMinTime();
  }
예제 #16
0
  @Override
  public long getMaxTimeByCompany(long companyId) throws MonitoringException {
    CompanyStatistics companyStatistics = _serverStatistics.getCompanyStatistics(companyId);

    return companyStatistics.getMaxTime();
  }