Package org.eclipse.jetty.jmx
Class MetaData
java.lang.Object
org.eclipse.jetty.jmx.MetaData
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
private static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Map<String,
MetaData.AttributeInfo> private final Constructor<?>
private final MBeanInfo
private final Class<?>
private final Map<String,
MetaData.OperationInfo> private final MetaData
private static final Logger
private static final MBeanAttributeInfo[]
private static final MBeanConstructorInfo[]
private static final MBeanNotificationInfo[]
private static final MBeanOperationInfo[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate MBeanInfo
buildMBeanInfo
(Class<?> klass) private void
collectMBeanAttributeInfos
(Map<String, MBeanAttributeInfo> attributeInfos) private void
collectMBeanOperationInfos
(Map<String, MBeanOperationInfo> operationInfos) private MetaData.AttributeInfo
findAttribute
(String name) private MetaData.OperationInfo
findOperation
(String signature) (package private) Object
getAttribute
(String name, ObjectMBean mbean) (package private) MBeanInfo
(package private) Object
invoke
(String name, String[] params, Object[] args, ObjectMBean mbean) private static boolean
isManagedObject
(Class<?> klass) (package private) Object
newInstance
(Object bean) private static Object
newInstance
(Constructor<?> constructor, Object bean) private void
parseMethods
(Class<?>... classes) (package private) void
setAttribute
(Attribute attribute, ObjectMBean mbean) private static String
private static String
(package private) static String
toAttributeName
(String methodName) private static MBeanException
toString()
-
Field Details
-
LOG
-
NO_ATTRIBUTES
-
NO_CONSTRUCTORS
-
NO_OPERATIONS
-
NO_NOTIFICATIONS
-
_attributes
-
_operations
-
_klass
-
_parent
-
_interfaces
-
_constructor
-
_info
-
-
Constructor Details
-
MetaData
MetaData(Class<?> klass, Constructor<?> constructor, MetaData parent, List<MetaData> interfaces)
-
-
Method Details
-
newInstance
-
getMBeanInfo
MBeanInfo getMBeanInfo() -
getAttribute
Object getAttribute(String name, ObjectMBean mbean) throws AttributeNotFoundException, ReflectionException, MBeanException -
setAttribute
void setAttribute(Attribute attribute, ObjectMBean mbean) throws AttributeNotFoundException, ReflectionException, MBeanException -
findAttribute
-
invoke
Object invoke(String name, String[] params, Object[] args, ObjectMBean mbean) throws ReflectionException, MBeanException - Throws:
ReflectionException
MBeanException
-
findOperation
-
newInstance
-
parseMethods
-
toAttributeName
-
isManagedObject
-
signature
-
signature
-
buildMBeanInfo
-
collectMBeanAttributeInfos
-
collectMBeanOperationInfos
-
toMBeanException
-
toString
-