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;
16  
17  import com.liferay.portal.monitoring.MonitoringException;
18  
19  /**
20   * <a href="SummaryStatistics.java.html"><b><i>View Source</i></b></a>
21   *
22   * @author Michael C. Han
23   * @author Brian Wing Shun Chan
24   */
25  public interface SummaryStatistics {
26  
27      public long getAverageTime() throws MonitoringException;
28  
29      public long getAverageTimeByCompany(long companyId)
30          throws MonitoringException;
31  
32      public long getAverageTimeByCompany(String webId)
33          throws MonitoringException;
34  
35      public long getErrorCount() throws MonitoringException;
36  
37      public long getErrorCountByCompany(long companyId)
38          throws MonitoringException;
39  
40      public long getErrorCountByCompany(String webId) throws MonitoringException;
41  
42      public long getMaxTime() throws MonitoringException;
43  
44      public long getMaxTimeByCompany(long companyId) throws MonitoringException;
45  
46      public long getMaxTimeByCompany(String webId) throws MonitoringException;
47  
48      public long getMinTime() throws MonitoringException;
49  
50      public long getMinTimeByCompany(long companyId) throws MonitoringException;
51  
52      public long getMinTimeByCompany(String webId) throws MonitoringException;
53  
54      public long getRequestCount() throws MonitoringException;
55  
56      public long getRequestCountByCompany(long companyId)
57          throws MonitoringException;
58  
59      public long getRequestCountByCompany(String webId)
60          throws MonitoringException;
61  
62      public long getSuccessCount() throws MonitoringException;
63  
64      public long getSuccessCountByCompany(long companyId)
65          throws MonitoringException;
66  
67      public long getSuccessCountByCompany(String webId)
68          throws MonitoringException;
69  
70      public long getTimeoutCount() throws MonitoringException;
71  
72      public long getTimeoutCountByCompany(long companyId)
73          throws MonitoringException;
74  
75      public long getTimeoutCountByCompany(String webId)
76          throws MonitoringException;
77  
78  }