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.jmx;
16  
17  import com.liferay.portal.SystemException;
18  import com.liferay.portal.kernel.util.MethodKey;
19  
20  import java.util.Set;
21  
22  /**
23   * <a href="ServiceManagerMBean.java.html"><b><i>View Source</i></b></a>
24   *
25   * @author Michael C. Han
26   */
27  public interface ServiceManagerMBean {
28  
29      public void addMonitoredClass(String className);
30  
31      public void addMonitoredMethod(
32              String className, String methodName, String[] parameterTypes)
33          throws SystemException;
34  
35      public long getErrorCount(
36              String className, String methodName, String[] parameterTypes)
37          throws SystemException;
38  
39      public long getMaxTime(
40              String className, String methodName, String[] parameterTypes)
41          throws SystemException;
42  
43      public long getMinTime(
44              String className, String methodName, String[] parameterTypes)
45          throws SystemException;
46  
47      public Set<String> getMonitoredClasses();
48  
49      public Set<MethodKey> getMonitoredMethods();
50  
51      public long getRequestCount(
52              String className, String methodName, String[] parameterTypes)
53          throws SystemException;
54  
55      public boolean isActive();
56  
57      public boolean isPermissiveMode();
58  
59      public void setActive(boolean active);
60  
61      public void setPermissiveMode(boolean permissiveMode);
62  
63  }