001
014
015 package com.liferay.portal.monitoring.jmx;
016
017 import com.liferay.portal.kernel.exception.SystemException;
018 import com.liferay.portal.kernel.util.MethodKey;
019
020 import java.util.Set;
021
022
025 public interface ServiceManagerMBean {
026
027 public void addMonitoredClass(String className);
028
029 public void addMonitoredMethod(
030 String className, String methodName, String[] parameterTypes)
031 throws SystemException;
032
033 public long getErrorCount(
034 String className, String methodName, String[] parameterTypes)
035 throws SystemException;
036
037 public long getMaxTime(
038 String className, String methodName, String[] parameterTypes)
039 throws SystemException;
040
041 public long getMinTime(
042 String className, String methodName, String[] parameterTypes)
043 throws SystemException;
044
045 public Set<String> getMonitoredClasses();
046
047 public Set<MethodKey> getMonitoredMethods();
048
049 public long getRequestCount(
050 String className, String methodName, String[] parameterTypes)
051 throws SystemException;
052
053 public boolean isActive();
054
055 public boolean isPermissiveMode();
056
057 public void setActive(boolean active);
058
059 public void setPermissiveMode(boolean permissiveMode);
060
061 }