com.liferay.portal.monitoring.jmx
Class ServiceManager
java.lang.Object
com.liferay.portal.monitoring.jmx.ServiceManager
- All Implemented Interfaces:
- ServiceManagerMBean
public class ServiceManager
- extends java.lang.Object
- implements ServiceManagerMBean
View Source
- Author:
- Michael C. Han
Method Summary |
void |
addMonitoredClass(java.lang.String className)
|
void |
addMonitoredMethod(java.lang.String className,
java.lang.String methodName,
java.lang.String[] parameterTypes)
|
long |
getErrorCount(java.lang.String className,
java.lang.String methodName,
java.lang.String[] parameterTypes)
|
long |
getMaxTime(java.lang.String className,
java.lang.String methodName,
java.lang.String[] parameterTypes)
|
long |
getMinTime(java.lang.String className,
java.lang.String methodName,
java.lang.String[] parameterTypes)
|
java.util.Set<java.lang.String> |
getMonitoredClasses()
|
java.util.Set<com.liferay.portal.kernel.util.MethodKey> |
getMonitoredMethods()
|
long |
getRequestCount(java.lang.String className,
java.lang.String methodName,
java.lang.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(java.lang.String className)
- Specified by:
addMonitoredClass
in interface ServiceManagerMBean
addMonitoredMethod
public void addMonitoredMethod(java.lang.String className,
java.lang.String methodName,
java.lang.String[] parameterTypes)
throws com.liferay.portal.SystemException
- Specified by:
addMonitoredMethod
in interface ServiceManagerMBean
- Throws:
com.liferay.portal.SystemException
getErrorCount
public long getErrorCount(java.lang.String className,
java.lang.String methodName,
java.lang.String[] parameterTypes)
throws com.liferay.portal.SystemException
- Specified by:
getErrorCount
in interface ServiceManagerMBean
- Throws:
com.liferay.portal.SystemException
getMaxTime
public long getMaxTime(java.lang.String className,
java.lang.String methodName,
java.lang.String[] parameterTypes)
throws com.liferay.portal.SystemException
- Specified by:
getMaxTime
in interface ServiceManagerMBean
- Throws:
com.liferay.portal.SystemException
getMinTime
public long getMinTime(java.lang.String className,
java.lang.String methodName,
java.lang.String[] parameterTypes)
throws com.liferay.portal.SystemException
- Specified by:
getMinTime
in interface ServiceManagerMBean
- Throws:
com.liferay.portal.SystemException
getMonitoredClasses
public java.util.Set<java.lang.String> getMonitoredClasses()
- Specified by:
getMonitoredClasses
in interface ServiceManagerMBean
getMonitoredMethods
public java.util.Set<com.liferay.portal.kernel.util.MethodKey> getMonitoredMethods()
- Specified by:
getMonitoredMethods
in interface ServiceManagerMBean
getRequestCount
public long getRequestCount(java.lang.String className,
java.lang.String methodName,
java.lang.String[] parameterTypes)
throws com.liferay.portal.SystemException
- Specified by:
getRequestCount
in interface ServiceManagerMBean
- Throws:
com.liferay.portal.SystemException
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)