protected long getTimeoutCountByPortlet(String portletId, CompanyStatistics companyStatistics) throws MonitoringException { RequestStatistics requestStatistics = companyStatistics.getRenderRequestStatistics(portletId); return requestStatistics.getTimeoutCount(); }
@Override public long getAverageTimeByPortlet(String portletId, String webId) throws MonitoringException { CompanyStatistics companyStatistics = _serverStatistics.getCompanyStatistics(webId); RequestStatistics requestStatistics = companyStatistics.getRenderRequestStatistics(portletId); return requestStatistics.getAverageTime(); }
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; }
@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(); }