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.monitoring.statistics.portlet;
016    
017    import com.liferay.portal.kernel.monitoring.MonitoringException;
018    import com.liferay.portal.kernel.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    }