Top Inners Fields Constructors Methods
org.eclipse.jetty.jmx

pack-priv Class MetaData

extends Object
Class Inheritance
Imports
java.lang.annotation.Annotation, java.lang.reflect.Array, .Constructor, .InvocationTargetException, .Method, .Modifier, .ParameterizedType, .Type, java.util.Arrays, .Collection, .HashMap, .HashSet, .List, .Locale, .Map, .Set, java.util.stream.Collectors, javax.management.Attribute, .AttributeNotFoundException, .MBeanAttributeInfo, .MBeanConstructorInfo, .MBeanException, .MBeanInfo, .MBeanNotificationInfo, .MBeanOperationInfo, .MBeanParameterInfo, .ObjectName, .ReflectionException, javax.management.modelmbean.ModelMBean, org.eclipse.jetty.util.annotation.ManagedAttribute, .ManagedObject, .ManagedOperation, .Name, org.slf4j.Logger, .LoggerFactory

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class

Field Summary

Modifier and TypeField and Description
private final Map<String, MetaData.AttributeInfo>
private final Constructor<?>
private final MBeanInfo
private final List<MetaData>
private final Class<?>
private final Map<String, MetaData.OperationInfo>
private final MetaData
private static final Logger
private static final Object[]
private static final MBeanAttributeInfo[]
private static final MBeanConstructorInfo[]
private static final MBeanNotificationInfo[]
private static final MBeanOperationInfo[]
private static final String[]

Constructor Summary

AccessConstructor and Description
pack-priv
MetaData(Class<?> klass, Constructor<?> constructor, MetaData parent, List<MetaData> interfaces)

Method Summary

Modifier and TypeMethod and Description
private MBeanInfo
private void
private void
private static Object
convertToManagedType(MBeanContainer mbeanContainer, Object object, Class<?> from, Type to)

private MetaData.AttributeInfo
private MetaData.OperationInfo
findOperation(String signature)

pack-priv Object
private static Type
pack-priv MBeanInfo
pack-priv Object
invoke(String name, String[] params, Object[] args, ObjectMBean mbean)

pack-priv Object
private static Object
newInstance(Constructor<?> constructor, Object bean)

private void
parseMethods(Class<?>... classes)

pack-priv void
private static String
signature(String name, String[] params)

private static String
signature(Method method)

pack-priv static String
toAttributeName(String methodName)

private static MBeanException
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

_attributesback to summary
private final Map<String, MetaData.AttributeInfo> _attributes
_constructorback to summary
private final Constructor<?> _constructor
_infoback to summary
private final MBeanInfo _info
_interfacesback to summary
private final List<MetaData> _interfaces
_klassback to summary
private final Class<?> _klass
_operationsback to summary
private final Map<String, MetaData.OperationInfo> _operations
_parentback to summary
private final MetaData _parent
LOGback to summary
private static final Logger LOG
NO_ARGUMENTSback to summary
private static final Object[] NO_ARGUMENTS
NO_ATTRIBUTESback to summary
private static final MBeanAttributeInfo[] NO_ATTRIBUTES
NO_CONSTRUCTORSback to summary
private static final MBeanConstructorInfo[] NO_CONSTRUCTORS
NO_NOTIFICATIONSback to summary
private static final MBeanNotificationInfo[] NO_NOTIFICATIONS
NO_OPERATIONSback to summary
private static final MBeanOperationInfo[] NO_OPERATIONS
NO_PARAMETERSback to summary
private static final String[] NO_PARAMETERS

Constructor Detail

MetaDataback to summary
pack-priv MetaData(Class<?> klass, Constructor<?> constructor, MetaData parent, List<MetaData> interfaces)

Method Detail

buildMBeanInfoback to summary
private MBeanInfo buildMBeanInfo(Class<?> klass)
collectMBeanAttributeInfosback to summary
private void collectMBeanAttributeInfos(Map<String, MBeanAttributeInfo> attributeInfos)
collectMBeanOperationInfosback to summary
private void collectMBeanOperationInfos(Map<String, MBeanOperationInfo> operationInfos)
convertToManagedTypeback to summary
private static Object convertToManagedType(MBeanContainer mbeanContainer, Object object, Class<?> from, Type to)
findAttributeback to summary
private MetaData.AttributeInfo findAttribute(String name)
findOperationback to summary
private MetaData.OperationInfo findOperation(String signature)
getAttributeback to summary
pack-priv Object getAttribute(String name, ObjectMBean mbean) throws AttributeNotFoundException, ReflectionException, MBeanException
getManagedTypeback to summary
private static Type getManagedType(Type type)
getMBeanInfoback to summary
pack-priv MBeanInfo getMBeanInfo()
invokeback to summary
pack-priv Object invoke(String name, String[] params, Object[] args, ObjectMBean mbean) throws ReflectionException, MBeanException
newInstanceback to summary
pack-priv Object newInstance(Object bean)
newInstanceback to summary
private static Object newInstance(Constructor<?> constructor, Object bean)
parseMethodsback to summary
private void parseMethods(Class<?>... classes)
setAttributeback to summary
pack-priv void setAttribute(Attribute attribute, ObjectMBean mbean) throws AttributeNotFoundException, ReflectionException, MBeanException
signatureback to summary
private static String signature(String name, String[] params)
signatureback to summary
private static String signature(Method method)
toAttributeNameback to summary
pack-priv static String toAttributeName(String methodName)
toMBeanExceptionback to summary
private static MBeanException toMBeanException(InvocationTargetException x)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override
org.eclipse.jetty.jmx back to summary

private Class MetaData.AttributeInfo

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final Type
private final Method
private final MBeanAttributeInfo
private final String
private final boolean
private final Method

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private Method
findSetter(ManagedAttribute attribute, Method getter, String name)

pack-priv Object
pack-priv void
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

_convertback to summary
private final Type _convert
_getterback to summary
private final Method _getter
_infoback to summary
private final MBeanAttributeInfo _info
_nameback to summary
private final String _name
_proxiedback to summary
private final boolean _proxied
_setterback to summary
private final Method _setter

Constructor Detail

AttributeInfoback to summary
private AttributeInfo(ManagedAttribute attribute, Method getter)

Method Detail

findSetterback to summary
private Method findSetter(ManagedAttribute attribute, Method getter, String name)
getAttributeback to summary
pack-priv Object getAttribute(ObjectMBean mbean) throws ReflectionException, MBeanException
setAttributeback to summary
pack-priv void setAttribute(Object value, ObjectMBean mbean) throws ReflectionException, MBeanException
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override
org.eclipse.jetty.jmx back to summary

private Class MetaData.OperationInfo

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final Type
private final MBeanOperationInfo
private final Method
private final String
private final boolean

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public Object
invoke(Object[] args, ObjectMBean mbean)

private static MBeanParameterInfo[]
parameters(Class<?>[] parameterTypes, Annotation[][] parametersAnnotations)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

_convertback to summary
private final Type _convert
_infoback to summary
private final MBeanOperationInfo _info
_methodback to summary
private final Method _method
_nameback to summary
private final String _name
_proxiedback to summary
private final boolean _proxied

Constructor Detail

OperationInfoback to summary
private OperationInfo(ManagedOperation operation, Method method)

Method Detail

invokeback to summary
public Object invoke(Object[] args, ObjectMBean mbean) throws ReflectionException, MBeanException
parametersback to summary
private static MBeanParameterInfo[] parameters(Class<?>[] parameterTypes, Annotation[][] parametersAnnotations)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object.

Annotations
@Override