001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.kernel.monitoring.statistics;
016    
017    import com.liferay.portal.kernel.monitoring.MonitoringException;
018    
019    /**
020     * @author Michael C. Han
021     * @author Brian Wing Shun Chan
022     */
023    public interface SummaryStatistics {
024    
025            public long getAverageTime() throws MonitoringException;
026    
027            public long getAverageTimeByCompany(long companyId)
028                    throws MonitoringException;
029    
030            public long getAverageTimeByCompany(String webId)
031                    throws MonitoringException;
032    
033            public long getErrorCount() throws MonitoringException;
034    
035            public long getErrorCountByCompany(long companyId)
036                    throws MonitoringException;
037    
038            public long getErrorCountByCompany(String webId) throws MonitoringException;
039    
040            public long getMaxTime() throws MonitoringException;
041    
042            public long getMaxTimeByCompany(long companyId) throws MonitoringException;
043    
044            public long getMaxTimeByCompany(String webId) throws MonitoringException;
045    
046            public long getMinTime() throws MonitoringException;
047    
048            public long getMinTimeByCompany(long companyId) throws MonitoringException;
049    
050            public long getMinTimeByCompany(String webId) throws MonitoringException;
051    
052            public long getRequestCount() throws MonitoringException;
053    
054            public long getRequestCountByCompany(long companyId)
055                    throws MonitoringException;
056    
057            public long getRequestCountByCompany(String webId)
058                    throws MonitoringException;
059    
060            public long getSuccessCount() throws MonitoringException;
061    
062            public long getSuccessCountByCompany(long companyId)
063                    throws MonitoringException;
064    
065            public long getSuccessCountByCompany(String webId)
066                    throws MonitoringException;
067    
068            public long getTimeoutCount() throws MonitoringException;
069    
070            public long getTimeoutCountByCompany(long companyId)
071                    throws MonitoringException;
072    
073            public long getTimeoutCountByCompany(String webId)
074                    throws MonitoringException;
075    
076    }