com.liferay.portal.monitoring.jmx
Class ServiceManager
java.lang.Object
com.liferay.portal.monitoring.jmx.ServiceManager
- All Implemented Interfaces:
- ServiceManagerMBean
public class ServiceManager
- extends Object
- implements ServiceManagerMBean
Method Summary |
void |
addMonitoredClass(String className)
|
void |
addMonitoredMethod(String className,
String methodName,
String[] parameterTypes)
|
long |
getErrorCount(String className,
String methodName,
String[] parameterTypes)
|
long |
getMaxTime(String className,
String methodName,
String[] parameterTypes)
|
long |
getMinTime(String className,
String methodName,
String[] parameterTypes)
|
Set<String> |
getMonitoredClasses()
|
Set<MethodSignature> |
getMonitoredMethods()
|
long |
getRequestCount(String className,
String methodName,
String[] parameterTypes)
|
boolean |
isActive()
|
boolean |
isPermissiveMode()
|
void |
setActive(boolean active)
|
void |
setPermissiveMode(boolean permissiveMode)
|
void |
setServerStatistics(ServerStatistics serverStatistics)
|
void |
setServiceMonitorAdvice(ServiceMonitorAdvice serviceMonitorAdvice)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServiceManager
public ServiceManager()
addMonitoredClass
public void addMonitoredClass(String className)
- Specified by:
addMonitoredClass
in interface ServiceManagerMBean
addMonitoredMethod
public void addMonitoredMethod(String className,
String methodName,
String[] parameterTypes)
- Specified by:
addMonitoredMethod
in interface ServiceManagerMBean
getErrorCount
public long getErrorCount(String className,
String methodName,
String[] parameterTypes)
- Specified by:
getErrorCount
in interface ServiceManagerMBean
getMaxTime
public long getMaxTime(String className,
String methodName,
String[] parameterTypes)
- Specified by:
getMaxTime
in interface ServiceManagerMBean
getMinTime
public long getMinTime(String className,
String methodName,
String[] parameterTypes)
- Specified by:
getMinTime
in interface ServiceManagerMBean
getMonitoredClasses
public Set<String> getMonitoredClasses()
- Specified by:
getMonitoredClasses
in interface ServiceManagerMBean
getMonitoredMethods
public Set<MethodSignature> getMonitoredMethods()
- Specified by:
getMonitoredMethods
in interface ServiceManagerMBean
getRequestCount
public long getRequestCount(String className,
String methodName,
String[] parameterTypes)
- Specified by:
getRequestCount
in interface ServiceManagerMBean
isActive
public boolean isActive()
- Specified by:
isActive
in interface ServiceManagerMBean
isPermissiveMode
public boolean isPermissiveMode()
- Specified by:
isPermissiveMode
in interface ServiceManagerMBean
setActive
public void setActive(boolean active)
- Specified by:
setActive
in interface ServiceManagerMBean
setPermissiveMode
public void setPermissiveMode(boolean permissiveMode)
- Specified by:
setPermissiveMode
in interface ServiceManagerMBean
setServerStatistics
public void setServerStatistics(ServerStatistics serverStatistics)
setServiceMonitorAdvice
public void setServiceMonitorAdvice(ServiceMonitorAdvice serviceMonitorAdvice)