Package org.eclipse.jetty.jmx
Class MetaData
- java.lang.Object
-
- org.eclipse.jetty.jmx.MetaData
-
class MetaData extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
MetaData.AttributeInfo
private static class
MetaData.OperationInfo
-
Field Summary
Fields Modifier and Type Field Description private java.util.Map<java.lang.String,MetaData.AttributeInfo>
_attributes
private java.lang.reflect.Constructor<?>
_constructor
private javax.management.MBeanInfo
_info
private java.util.List<MetaData>
_interfaces
private java.lang.Class<?>
_klass
private java.util.Map<java.lang.String,MetaData.OperationInfo>
_operations
private MetaData
_parent
private static Logger
LOG
private static javax.management.MBeanAttributeInfo[]
NO_ATTRIBUTES
private static javax.management.MBeanConstructorInfo[]
NO_CONSTRUCTORS
private static javax.management.MBeanNotificationInfo[]
NO_NOTIFICATIONS
private static javax.management.MBeanOperationInfo[]
NO_OPERATIONS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private javax.management.MBeanInfo
buildMBeanInfo(java.lang.Class<?> klass)
private void
collectMBeanAttributeInfos(java.util.Map<java.lang.String,javax.management.MBeanAttributeInfo> attributeInfos)
private void
collectMBeanOperationInfos(java.util.Map<java.lang.String,javax.management.MBeanOperationInfo> operationInfos)
private MetaData.AttributeInfo
findAttribute(java.lang.String name)
private MetaData.OperationInfo
findOperation(java.lang.String signature)
(package private) java.lang.Object
getAttribute(java.lang.String name, ObjectMBean mbean)
(package private) javax.management.MBeanInfo
getMBeanInfo()
(package private) java.lang.Object
invoke(java.lang.String name, java.lang.String[] params, java.lang.Object[] args, ObjectMBean mbean)
private static boolean
isManagedObject(java.lang.Class<?> klass)
(package private) java.lang.Object
newInstance(java.lang.Object bean)
private static java.lang.Object
newInstance(java.lang.reflect.Constructor<?> constructor, java.lang.Object bean)
private void
parseMethods(java.lang.Class<?>... classes)
(package private) void
setAttribute(javax.management.Attribute attribute, ObjectMBean mbean)
private static java.lang.String
signature(java.lang.reflect.Method method)
private static java.lang.String
signature(java.lang.String name, java.lang.String[] params)
(package private) static java.lang.String
toAttributeName(java.lang.String methodName)
private static javax.management.MBeanException
toMBeanException(java.lang.reflect.InvocationTargetException x)
java.lang.String
toString()
-
-
-
Field Detail
-
LOG
private static final Logger LOG
-
NO_ATTRIBUTES
private static final javax.management.MBeanAttributeInfo[] NO_ATTRIBUTES
-
NO_CONSTRUCTORS
private static final javax.management.MBeanConstructorInfo[] NO_CONSTRUCTORS
-
NO_OPERATIONS
private static final javax.management.MBeanOperationInfo[] NO_OPERATIONS
-
NO_NOTIFICATIONS
private static final javax.management.MBeanNotificationInfo[] NO_NOTIFICATIONS
-
_attributes
private final java.util.Map<java.lang.String,MetaData.AttributeInfo> _attributes
-
_operations
private final java.util.Map<java.lang.String,MetaData.OperationInfo> _operations
-
_klass
private final java.lang.Class<?> _klass
-
_parent
private final MetaData _parent
-
_interfaces
private final java.util.List<MetaData> _interfaces
-
_constructor
private final java.lang.reflect.Constructor<?> _constructor
-
_info
private final javax.management.MBeanInfo _info
-
-
Method Detail
-
newInstance
java.lang.Object newInstance(java.lang.Object bean)
-
getMBeanInfo
javax.management.MBeanInfo getMBeanInfo()
-
getAttribute
java.lang.Object getAttribute(java.lang.String name, ObjectMBean mbean) throws javax.management.AttributeNotFoundException, javax.management.ReflectionException, javax.management.MBeanException
- Throws:
javax.management.AttributeNotFoundException
javax.management.ReflectionException
javax.management.MBeanException
-
setAttribute
void setAttribute(javax.management.Attribute attribute, ObjectMBean mbean) throws javax.management.AttributeNotFoundException, javax.management.ReflectionException, javax.management.MBeanException
- Throws:
javax.management.AttributeNotFoundException
javax.management.ReflectionException
javax.management.MBeanException
-
findAttribute
private MetaData.AttributeInfo findAttribute(java.lang.String name)
-
invoke
java.lang.Object invoke(java.lang.String name, java.lang.String[] params, java.lang.Object[] args, ObjectMBean mbean) throws javax.management.ReflectionException, javax.management.MBeanException
- Throws:
javax.management.ReflectionException
javax.management.MBeanException
-
findOperation
private MetaData.OperationInfo findOperation(java.lang.String signature)
-
newInstance
private static java.lang.Object newInstance(java.lang.reflect.Constructor<?> constructor, java.lang.Object bean)
-
parseMethods
private void parseMethods(java.lang.Class<?>... classes)
-
toAttributeName
static java.lang.String toAttributeName(java.lang.String methodName)
-
isManagedObject
private static boolean isManagedObject(java.lang.Class<?> klass)
-
signature
private static java.lang.String signature(java.lang.String name, java.lang.String[] params)
-
signature
private static java.lang.String signature(java.lang.reflect.Method method)
-
buildMBeanInfo
private javax.management.MBeanInfo buildMBeanInfo(java.lang.Class<?> klass)
-
collectMBeanAttributeInfos
private void collectMBeanAttributeInfos(java.util.Map<java.lang.String,javax.management.MBeanAttributeInfo> attributeInfos)
-
collectMBeanOperationInfos
private void collectMBeanOperationInfos(java.util.Map<java.lang.String,javax.management.MBeanOperationInfo> operationInfos)
-
toMBeanException
private static javax.management.MBeanException toMBeanException(java.lang.reflect.InvocationTargetException x)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-