1   /**
2    * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
3    *
4    * This library is free software; you can redistribute it and/or modify it under
5    * the terms of the GNU Lesser General Public License as published by the Free
6    * Software Foundation; either version 2.1 of the License, or (at your option)
7    * any later version.
8    *
9    * This library is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
12   * details.
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  }