|
TPTP 4.4.0 Monitoring Tools Project Internal API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.tptp.monitoring.instrumentation.internal.jmx.util.JmxUtils
A generic utiltiy class to support JMX.
| Constructor Summary | |
|---|---|
JmxUtils()
|
|
| Method Summary | |
|---|---|
static StatisticsDescription |
createStatisticsDescription(java.lang.String className,
java.lang.String methodName)
|
static java.beans.PropertyDescriptor |
findPropertyForMethod(java.lang.reflect.Method method)
Finds the PropertyDescriptor for the given Method. |
static java.beans.PropertyDescriptor[] |
getPropertyDescriptors(java.lang.Class clazz)
Retruns an array of PropertyDescriptor for the given Class |
static boolean |
isDeclaringInSuperClass(java.lang.reflect.Method method,
java.lang.Object object,
boolean checkSuper)
Returns true if method exist in the the declaring object. |
static boolean |
isMBean(java.lang.Class clazz)
Returns true if the class is an Mbean. |
static javax.management.MBeanServer |
locateMBeanServer(java.lang.String id)
Returns an MBeanServer for a given agent id. |
static javax.management.MBeanServer |
locateMBeanServerByDomain(java.lang.String domain)
Returns an MBeanServer for a given domain. |
static javax.management.MBeanServer |
locateMBeanServerFirstAvailable()
Returns the first MBeanServer instance found. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JmxUtils()
| Method Detail |
public static java.beans.PropertyDescriptor[] getPropertyDescriptors(java.lang.Class clazz)
throws java.beans.IntrospectionException
Class
clazz - the Class
java.beans.IntrospectionException - error from the introspection of the class
public static java.beans.PropertyDescriptor findPropertyForMethod(java.lang.reflect.Method method)
throws java.beans.IntrospectionException
PropertyDescriptor for the given Method.
method - the Method
PropertyDescriptor
java.beans.IntrospectionException - error from the introspection of the class
public static javax.management.MBeanServer locateMBeanServer(java.lang.String id)
throws MBeanServerNotFoundException
MBeanServer for a given agent id.
id - the agent id
MBeanServer
MBeanServerNotFoundException - unable to find an MBeanServer
public static javax.management.MBeanServer locateMBeanServerFirstAvailable()
throws MBeanServerNotFoundException
MBeanServer instance found. If an MBeanServer is
not found create a new one.
MBeanServer
MBeanServerNotFoundException - unable to find an MBeanServer
public static javax.management.MBeanServer locateMBeanServerByDomain(java.lang.String domain)
throws MBeanServerNotFoundException
MBeanServer for a given domain. If domain cannot be found will create new instances
of MBeanServer for the given domain.
domain - the domain name
MBeanServer
MBeanServerNotFoundException - unable to find an MBeanServerpublic static boolean isMBean(java.lang.Class clazz)
clazz - the class to check
public static boolean isDeclaringInSuperClass(java.lang.reflect.Method method,
java.lang.Object object,
boolean checkSuper)
method - the Methodobject - the declaring objectcheckSuper - check super class
public static StatisticsDescription createStatisticsDescription(java.lang.String className,
java.lang.String methodName)
|
TPTP 4.4.0 Monitoring Tools Project Internal API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||