com.adventnet.adaptors.clients
Class JMXConverter
java.lang.Object
com.adventnet.adaptors.clients.JMXConverter
public class JMXConverter
- extends java.lang.Object
This class is used to convert jmx classes in one classloader
to the corresponding classes in the classloader which loaded this class.
convert means converting an Object in weblogic ClassLoader to an object in the parent classloader
create means converting an Object in parent ClassLoader to an object in weblogic classloader
|
Method Summary |
static javax.management.Attribute |
convertAttribute(java.lang.ClassLoader loader,
java.lang.Object obj)
|
static javax.management.AttributeList |
convertAttributeList(java.lang.ClassLoader loader,
java.lang.Object obj)
|
static javax.management.AttributeNotFoundException |
convertAttributeNotFoundException(java.lang.Exception obj)
|
static java.lang.Object |
convertAttributeValue(java.lang.ClassLoader loader,
java.lang.Object obj)
|
static javax.jmx.openmbean.CompositeData |
convertCompositeData(java.lang.ClassLoader loader,
java.lang.Object obj)
|
static javax.management.Descriptor |
convertDescriptor(java.lang.ClassLoader loader,
java.lang.Object obj)
|
static javax.management.Descriptor |
convertDescriptor(java.lang.Object obj)
|
static javax.management.InstanceNotFoundException |
convertInstanceNotFoundException(java.lang.Exception obj)
|
static java.lang.RuntimeException |
convertInvocationTargetException(java.lang.reflect.InvocationTargetException obj)
|
static javax.management.MBeanAttributeInfo |
convertMBeanAttributeInfo(java.lang.ClassLoader loader,
java.lang.Object obj)
|
static javax.management.MBeanAttributeInfo[] |
convertMBeanAttributeInfoArray(java.lang.ClassLoader loader,
java.lang.Object obj)
|
static javax.management.MBeanConstructorInfo |
convertMBeanConstructorInfo(java.lang.ClassLoader loader,
java.lang.Object obj)
|
static javax.management.MBeanConstructorInfo[] |
convertMBeanConstructorInfoArray(java.lang.ClassLoader loader,
java.lang.Object obj)
|
static javax.management.MBeanException |
convertMBeanException(java.lang.Exception obj)
|
static javax.management.MBeanInfo |
convertMBeanInfo(java.lang.ClassLoader loader,
java.lang.Object obj)
|
static javax.management.MBeanInfo |
convertMBeanInfo(java.lang.Object obj)
|
static javax.management.MBeanInfo[] |
convertMBeanInfoArray(java.lang.ClassLoader loader,
java.lang.Object obj)
|
static javax.management.MBeanInfo[] |
convertMBeanInfoArray(java.lang.Object obj)
|
static javax.management.MBeanNotificationInfo |
convertMBeanNotificationInfo(java.lang.ClassLoader loader,
java.lang.Object obj)
|
static javax.management.MBeanNotificationInfo[] |
convertMBeanNotificationInfoArray(java.lang.ClassLoader loader,
java.lang.Object obj)
|
static javax.management.MBeanOperationInfo |
convertMBeanOperationInfo(java.lang.ClassLoader loader,
java.lang.Object obj)
|
static javax.management.MBeanOperationInfo[] |
convertMBeanOperationInfoArray(java.lang.ClassLoader loader,
java.lang.Object obj)
|
static javax.management.MBeanParameterInfo |
convertMBeanParameterInfo(java.lang.Object obj)
|
static javax.management.MBeanParameterInfo[] |
convertMBeanParameterInfoArray(java.lang.Object obj)
|
static javax.management.ObjectInstance |
convertObjectInstance(java.lang.Object obj)
|
static javax.management.ObjectInstance |
convertObjectInstance(java.lang.Object obj,
javax.management.QueryExp query)
Applies the query and return ObjectInstance |
static javax.management.ObjectName |
convertObjectName(java.lang.Object obj)
|
static javax.management.ObjectName |
convertObjectName(java.lang.Object obj,
javax.management.QueryExp query)
|
static javax.management.ReflectionException |
convertReflectionException(java.lang.Exception obj)
|
static javax.jmx.openmbean.TabularData |
convertTabularData(java.lang.ClassLoader loader,
java.lang.Object obj)
|
static javax.jmx.openmbean.TabularParameterInfo |
convertTabularParameterInfo(java.lang.ClassLoader loader,
java.lang.Object obj)
|
static java.lang.Object |
createAttribute(java.lang.ClassLoader loader,
javax.management.Attribute obj)
|
static java.lang.Object |
createAttributeList(java.lang.ClassLoader loader,
javax.management.AttributeList obj)
|
static java.lang.Object |
createObjectInstance(java.lang.ClassLoader loader,
javax.management.ObjectInstance obj)
|
static java.lang.Object |
createObjectName(java.lang.ClassLoader loader,
javax.management.ObjectName obj)
|
static java.lang.Object |
createQueryExp(java.lang.ClassLoader loader,
javax.management.QueryExp query)
|
static java.lang.Object |
createValueExp(java.lang.ClassLoader loader,
javax.management.ValueExp v)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JMXConverter
public JMXConverter()
convertObjectName
public static javax.management.ObjectName convertObjectName(java.lang.Object obj)
convertObjectName
public static javax.management.ObjectName convertObjectName(java.lang.Object obj,
javax.management.QueryExp query)
createObjectName
public static java.lang.Object createObjectName(java.lang.ClassLoader loader,
javax.management.ObjectName obj)
convertObjectInstance
public static javax.management.ObjectInstance convertObjectInstance(java.lang.Object obj)
convertObjectInstance
public static javax.management.ObjectInstance convertObjectInstance(java.lang.Object obj,
javax.management.QueryExp query)
- Applies the query and return ObjectInstance
- Returns:
- null If the query.apply returns false.
createObjectInstance
public static java.lang.Object createObjectInstance(java.lang.ClassLoader loader,
javax.management.ObjectInstance obj)
createQueryExp
public static java.lang.Object createQueryExp(java.lang.ClassLoader loader,
javax.management.QueryExp query)
createValueExp
public static java.lang.Object createValueExp(java.lang.ClassLoader loader,
javax.management.ValueExp v)
convertAttributeValue
public static java.lang.Object convertAttributeValue(java.lang.ClassLoader loader,
java.lang.Object obj)
convertAttribute
public static javax.management.Attribute convertAttribute(java.lang.ClassLoader loader,
java.lang.Object obj)
createAttribute
public static java.lang.Object createAttribute(java.lang.ClassLoader loader,
javax.management.Attribute obj)
convertAttributeList
public static javax.management.AttributeList convertAttributeList(java.lang.ClassLoader loader,
java.lang.Object obj)
createAttributeList
public static java.lang.Object createAttributeList(java.lang.ClassLoader loader,
javax.management.AttributeList obj)
convertDescriptor
public static javax.management.Descriptor convertDescriptor(java.lang.Object obj)
convertDescriptor
public static javax.management.Descriptor convertDescriptor(java.lang.ClassLoader loader,
java.lang.Object obj)
convertMBeanInfoArray
public static javax.management.MBeanInfo[] convertMBeanInfoArray(java.lang.Object obj)
convertMBeanInfoArray
public static javax.management.MBeanInfo[] convertMBeanInfoArray(java.lang.ClassLoader loader,
java.lang.Object obj)
convertMBeanInfo
public static javax.management.MBeanInfo convertMBeanInfo(java.lang.Object obj)
throws java.lang.Exception
- Throws:
java.lang.Exception
convertMBeanInfo
public static javax.management.MBeanInfo convertMBeanInfo(java.lang.ClassLoader loader,
java.lang.Object obj)
throws java.lang.Exception
- Throws:
java.lang.Exception
convertMBeanAttributeInfoArray
public static javax.management.MBeanAttributeInfo[] convertMBeanAttributeInfoArray(java.lang.ClassLoader loader,
java.lang.Object obj)
convertMBeanAttributeInfo
public static javax.management.MBeanAttributeInfo convertMBeanAttributeInfo(java.lang.ClassLoader loader,
java.lang.Object obj)
throws java.lang.Exception
- Throws:
java.lang.Exception
convertMBeanConstructorInfoArray
public static javax.management.MBeanConstructorInfo[] convertMBeanConstructorInfoArray(java.lang.ClassLoader loader,
java.lang.Object obj)
convertMBeanConstructorInfo
public static javax.management.MBeanConstructorInfo convertMBeanConstructorInfo(java.lang.ClassLoader loader,
java.lang.Object obj)
throws java.lang.Exception
- Throws:
java.lang.Exception
convertMBeanOperationInfoArray
public static javax.management.MBeanOperationInfo[] convertMBeanOperationInfoArray(java.lang.ClassLoader loader,
java.lang.Object obj)
convertMBeanOperationInfo
public static javax.management.MBeanOperationInfo convertMBeanOperationInfo(java.lang.ClassLoader loader,
java.lang.Object obj)
throws java.lang.Exception
- Throws:
java.lang.Exception
convertMBeanNotificationInfoArray
public static javax.management.MBeanNotificationInfo[] convertMBeanNotificationInfoArray(java.lang.ClassLoader loader,
java.lang.Object obj)
convertMBeanNotificationInfo
public static javax.management.MBeanNotificationInfo convertMBeanNotificationInfo(java.lang.ClassLoader loader,
java.lang.Object obj)
throws java.lang.Exception
- Throws:
java.lang.Exception
convertMBeanParameterInfoArray
public static javax.management.MBeanParameterInfo[] convertMBeanParameterInfoArray(java.lang.Object obj)
convertMBeanParameterInfo
public static javax.management.MBeanParameterInfo convertMBeanParameterInfo(java.lang.Object obj)
throws java.lang.Exception
- Throws:
java.lang.Exception
convertCompositeData
public static javax.jmx.openmbean.CompositeData convertCompositeData(java.lang.ClassLoader loader,
java.lang.Object obj)
convertTabularData
public static javax.jmx.openmbean.TabularData convertTabularData(java.lang.ClassLoader loader,
java.lang.Object obj)
convertTabularParameterInfo
public static javax.jmx.openmbean.TabularParameterInfo convertTabularParameterInfo(java.lang.ClassLoader loader,
java.lang.Object obj)
convertMBeanException
public static javax.management.MBeanException convertMBeanException(java.lang.Exception obj)
convertAttributeNotFoundException
public static javax.management.AttributeNotFoundException convertAttributeNotFoundException(java.lang.Exception obj)
convertInstanceNotFoundException
public static javax.management.InstanceNotFoundException convertInstanceNotFoundException(java.lang.Exception obj)
convertReflectionException
public static javax.management.ReflectionException convertReflectionException(java.lang.Exception obj)
convertInvocationTargetException
public static java.lang.RuntimeException convertInvocationTargetException(java.lang.reflect.InvocationTargetException obj)