001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portal.monitoring.statistics;
016    
017    import com.liferay.portal.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    }