1
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
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 }