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.portlet;
016    
017    import com.liferay.portal.monitoring.MonitoringException;
018    import com.liferay.portal.monitoring.statistics.SummaryStatistics;
019    
020    /**
021     * @author Michael C. Han
022     * @author Brian Wing Shun Chan
023     */
024    public interface PortletSummaryStatistics extends SummaryStatistics {
025    
026            public long getAverageTimeByPortlet(String portletId)
027                    throws MonitoringException;
028    
029            public long getAverageTimeByPortlet(String portletId, long companyId)
030                    throws MonitoringException;
031    
032            public long getAverageTimeByPortlet(String portletId, String webId)
033                    throws MonitoringException;
034    
035            public long getErrorCountByPortlet(String portletId)
036                    throws MonitoringException;
037    
038            public long getErrorCountByPortlet(String portletId, long companyId)
039                    throws MonitoringException;
040    
041            public long getErrorCountByPortlet(String portletId, String webId)
042                    throws MonitoringException;
043    
044            public long getMaxTimeByPortlet(String portletId)
045                    throws MonitoringException;
046    
047            public long getMaxTimeByPortlet(String portletId, long companyId)
048                    throws MonitoringException;
049    
050            public long getMaxTimeByPortlet(String portletId, String webId)
051                    throws MonitoringException;
052    
053            public long getMinTimeByPortlet(String portletId)
054                    throws MonitoringException;
055    
056            public long getMinTimeByPortlet(String portletId, long companyId)
057                    throws MonitoringException;
058    
059            public long getMinTimeByPortlet(String portletId, String webId)
060                    throws MonitoringException;
061    
062            public long getRequestCountByPortlet(String portletId)
063                    throws MonitoringException;
064    
065            public long getRequestCountByPortlet(String portletId, long companyId)
066                    throws MonitoringException;
067    
068            public long getRequestCountByPortlet(String portletId, String webId)
069                    throws MonitoringException;
070    
071            public long getSuccessCountByPortlet(String portletId)
072                    throws MonitoringException;
073    
074            public long getSuccessCountByPortlet(String portletId, long companyId)
075                    throws MonitoringException;
076    
077            public long getSuccessCountByPortlet(String portletId, String webId)
078                    throws MonitoringException;
079    
080            public long getTimeoutCountByPortlet(String portletId)
081                    throws MonitoringException;
082    
083            public long getTimeoutCountByPortlet(String portletId, long companyId)
084                    throws MonitoringException;
085    
086            public long getTimeoutCountByPortlet(String portletId, String webId)
087                    throws MonitoringException;
088    
089    }