类 AnnotationJmxAttributeSource
java.lang.Object
cn.taketoday.jmx.export.annotation.AnnotationJmxAttributeSource
- 所有已实现的接口:
Aware,BeanFactoryAware,JmxAttributeSource
public class AnnotationJmxAttributeSource
extends Object
implements JmxAttributeSource, BeanFactoryAware
Implementation of the
JmxAttributeSource interface that
reads annotations and exposes the corresponding attributes.- 从以下版本开始:
- 4.0
- 作者:
- Rob Harrop, Juergen Hoeller, Jennifer Hickey, Stephane Nicoll
- 另请参阅:
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明getManagedAttribute(Method method) Implementations should return an instance ofManagedAttributeif the suppliedMethodhas the corresponding metadata.getManagedMetric(Method method) Implementations should return an instance ofManagedMetricif the suppliedMethodhas the corresponding metadata.getManagedNotifications(Class<?> clazz) Implementations should return an array ofManagedNotificationsif the supplied theClasshas the corresponding metadata.getManagedOperation(Method method) Implementations should return an instance ofManagedOperationif the suppliedMethodhas the corresponding metadata.getManagedOperationParameters(Method method) Implementations should return an array ofManagedOperationParameterif the suppliedMethodhas the corresponding metadata.getManagedResource(Class<?> beanClass) Implementations should return an instance ofManagedResourceif the suppliedClasshas the appropriate metadata.voidsetBeanFactory(BeanFactory beanFactory)
-
构造器详细资料
-
AnnotationJmxAttributeSource
public AnnotationJmxAttributeSource()
-
-
方法详细资料
-
setBeanFactory
- 指定者:
setBeanFactory在接口中BeanFactoryAware
-
getManagedResource
@Nullable public ManagedResource getManagedResource(Class<?> beanClass) throws InvalidMetadataException 从接口复制的说明:JmxAttributeSourceImplementations should return an instance ofManagedResourceif the suppliedClasshas the appropriate metadata. Otherwise should returnnull.- 指定者:
getManagedResource在接口中JmxAttributeSource- 参数:
beanClass- the class to read the attribute data from- 返回:
- the attribute, or
nullif not found - 抛出:
InvalidMetadataException- in case of invalid attributes
-
getManagedAttribute
@Nullable public ManagedAttribute getManagedAttribute(Method method) throws InvalidMetadataException 从接口复制的说明:JmxAttributeSourceImplementations should return an instance ofManagedAttributeif the suppliedMethodhas the corresponding metadata. Otherwise should returnnull.- 指定者:
getManagedAttribute在接口中JmxAttributeSource- 参数:
method- the method to read the attribute data from- 返回:
- the attribute, or
nullif not found - 抛出:
InvalidMetadataException- in case of invalid attributes
-
getManagedMetric
从接口复制的说明:JmxAttributeSourceImplementations should return an instance ofManagedMetricif the suppliedMethodhas the corresponding metadata. Otherwise should returnnull.- 指定者:
getManagedMetric在接口中JmxAttributeSource- 参数:
method- the method to read the attribute data from- 返回:
- the metric, or
nullif not found - 抛出:
InvalidMetadataException- in case of invalid attributes
-
getManagedOperation
@Nullable public ManagedOperation getManagedOperation(Method method) throws InvalidMetadataException 从接口复制的说明:JmxAttributeSourceImplementations should return an instance ofManagedOperationif the suppliedMethodhas the corresponding metadata. Otherwise should returnnull.- 指定者:
getManagedOperation在接口中JmxAttributeSource- 参数:
method- the method to read the attribute data from- 返回:
- the attribute, or
nullif not found - 抛出:
InvalidMetadataException- in case of invalid attributes
-
getManagedOperationParameters
public ManagedOperationParameter[] getManagedOperationParameters(Method method) throws InvalidMetadataException 从接口复制的说明:JmxAttributeSourceImplementations should return an array ofManagedOperationParameterif the suppliedMethodhas the corresponding metadata. Otherwise should return an empty array if no metadata is found.- 指定者:
getManagedOperationParameters在接口中JmxAttributeSource- 参数:
method- theMethodto read the metadata from- 返回:
- the parameter information.
- 抛出:
InvalidMetadataException- in the case of invalid attributes.
-
getManagedNotifications
public ManagedNotification[] getManagedNotifications(Class<?> clazz) throws InvalidMetadataException 从接口复制的说明:JmxAttributeSourceImplementations should return an array ofManagedNotificationsif the supplied theClasshas the corresponding metadata. Otherwise should return an empty array.- 指定者:
getManagedNotifications在接口中JmxAttributeSource- 参数:
clazz- theClassto read the metadata from- 返回:
- the notification information
- 抛出:
InvalidMetadataException- in the case of invalid metadata
-