@Override public long getAverageTimeByPortlet(String portletId, String webId) throws MonitoringException { CompanyStatistics companyStatistics = _serverStatistics.getCompanyStatistics(webId); RequestStatistics requestStatistics = companyStatistics.getActionRequestStatistics(portletId); return requestStatistics.getAverageTime(); }
@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(); }
protected long getTimeoutCountByPortlet(String portletId, CompanyStatistics companyStatistics) throws MonitoringException { RequestStatistics requestStatistics = companyStatistics.getActionRequestStatistics(portletId); return requestStatistics.getTimeoutCount(); }
protected long getSuccessCountByPortlet(String portletId, CompanyStatistics companyStatistics) throws MonitoringException { RequestStatistics requestStatistics = companyStatistics.getRenderRequestStatistics(portletId); return requestStatistics.getSuccessCount(); }
@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; }
@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; }
protected long getErrorCountByCompany(CompanyStatistics companyStatistics) { long errorCount = 0; for (RequestStatistics requestStatistics : companyStatistics.getActionRequestStatisticsSet()) { errorCount += requestStatistics.getErrorCount(); } return errorCount; }
@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; }
protected long getTimeoutCountByCompany(CompanyStatistics companyStatistics) { long timeoutCount = 0; for (RequestStatistics requestStatistics : companyStatistics.getActionRequestStatisticsSet()) { timeoutCount += requestStatistics.getTimeoutCount(); } return timeoutCount; }
protected long getSuccessCountByCompany(CompanyStatistics companyStatistics) { long successCount = 0; for (RequestStatistics requestStatistics : companyStatistics.getActionRequestStatisticsSet()) { successCount += requestStatistics.getSuccessCount(); } return successCount; }
protected long getRequestCountByCompany(CompanyStatistics companyStatistics) { long requestCount = 0; for (RequestStatistics requestStatistics : companyStatistics.getRenderRequestStatisticsSet()) { requestCount += requestStatistics.getRequestCount(); } return requestCount; }
protected long getAverageTimeByCompany(CompanyStatistics companyStatistics) { long averageTime = 0; Set<RequestStatistics> requestStatisticsSet = companyStatistics.getActionRequestStatisticsSet(); for (RequestStatistics requestStatistics : requestStatisticsSet) { averageTime += requestStatistics.getAverageTime(); } return averageTime / requestStatisticsSet.size(); }
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; }
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; }
@Override public long getMinTimeByCompany(String webId) throws MonitoringException { CompanyStatistics companyStatistics = _serverStatistics.getCompanyStatistics(webId); return companyStatistics.getMinTime(); }
@Override public long getMaxTimeByCompany(long companyId) throws MonitoringException { CompanyStatistics companyStatistics = _serverStatistics.getCompanyStatistics(companyId); return companyStatistics.getMaxTime(); }