1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   *
12   *
13   */
14  
15  package com.liferay.portal.monitoring.statistics.portlet;
16  
17  import com.liferay.portal.monitoring.MonitoringException;
18  import com.liferay.portal.monitoring.statistics.SummaryStatistics;
19  
20  /**
21   * <a href="PortletSummaryStatistics.java.html"><b><i>View Source</i></b></a>
22   *
23   * @author Michael C. Han
24   * @author Brian Wing Shun Chan
25   */
26  public interface PortletSummaryStatistics extends SummaryStatistics {
27  
28      public long getAverageTimeByPortlet(String portletId)
29          throws MonitoringException;
30  
31      public long getAverageTimeByPortlet(String portletId, long companyId)
32          throws MonitoringException;
33  
34      public long getAverageTimeByPortlet(String portletId, String webId)
35          throws MonitoringException;
36  
37      public long getErrorCountByPortlet(String portletId)
38          throws MonitoringException;
39  
40      public long getErrorCountByPortlet(String portletId, long companyId)
41          throws MonitoringException;
42  
43      public long getErrorCountByPortlet(String portletId, String webId)
44          throws MonitoringException;
45  
46      public long getMaxTimeByPortlet(String portletId)
47          throws MonitoringException;
48  
49      public long getMaxTimeByPortlet(String portletId, long companyId)
50          throws MonitoringException;
51  
52      public long getMaxTimeByPortlet(String portletId, String webId)
53          throws MonitoringException;
54  
55      public long getMinTimeByPortlet(String portletId)
56          throws MonitoringException;
57  
58      public long getMinTimeByPortlet(String portletId, long companyId)
59          throws MonitoringException;
60  
61      public long getMinTimeByPortlet(String portletId, String webId)
62          throws MonitoringException;
63  
64      public long getRequestCountByPortlet(String portletId)
65          throws MonitoringException;
66  
67      public long getRequestCountByPortlet(String portletId, long companyId)
68          throws MonitoringException;
69  
70      public long getRequestCountByPortlet(String portletId, String webId)
71          throws MonitoringException;
72  
73      public long getSuccessCountByPortlet(String portletId)
74          throws MonitoringException;
75  
76      public long getSuccessCountByPortlet(String portletId, long companyId)
77          throws MonitoringException;
78  
79      public long getSuccessCountByPortlet(String portletId, String webId)
80          throws MonitoringException;
81  
82      public long getTimeoutCountByPortlet(String portletId)
83          throws MonitoringException;
84  
85      public long getTimeoutCountByPortlet(String portletId, long companyId)
86          throws MonitoringException;
87  
88      public long getTimeoutCountByPortlet(String portletId, String webId)
89          throws MonitoringException;
90  
91  }