接口 JmxAttributeSource
- 所有已知实现类:
AnnotationJmxAttributeSource
public interface JmxAttributeSource
Interface used by the
MetadataMBeanInfoAssembler to
read source-level metadata from a managed resource's class.- 从以下版本开始:
- 4.0
- 作者:
- Rob Harrop, Jennifer Hickey
- 另请参阅:
-
方法概要
修饰符和类型方法说明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<?> clazz) Implementations should return an instance ofManagedResourceif the suppliedClasshas the appropriate metadata.
-
方法详细资料
-
getManagedResource
Implementations should return an instance ofManagedResourceif the suppliedClasshas the appropriate metadata. Otherwise should returnnull.- 参数:
clazz- the class to read the attribute data from- 返回:
- the attribute, or
nullif not found - 抛出:
InvalidMetadataException- in case of invalid attributes
-
getManagedAttribute
Implementations should return an instance ofManagedAttributeif the suppliedMethodhas the corresponding metadata. Otherwise should returnnull.- 参数:
method- the method to read the attribute data from- 返回:
- the attribute, or
nullif not found - 抛出:
InvalidMetadataException- in case of invalid attributes
-
getManagedMetric
Implementations should return an instance ofManagedMetricif the suppliedMethodhas the corresponding metadata. Otherwise should returnnull.- 参数:
method- the method to read the attribute data from- 返回:
- the metric, or
nullif not found - 抛出:
InvalidMetadataException- in case of invalid attributes
-
getManagedOperation
Implementations should return an instance ofManagedOperationif the suppliedMethodhas the corresponding metadata. Otherwise should returnnull.- 参数:
method- the method to read the attribute data from- 返回:
- the attribute, or
nullif not found - 抛出:
InvalidMetadataException- in case of invalid attributes
-
getManagedOperationParameters
ManagedOperationParameter[] getManagedOperationParameters(Method method) throws InvalidMetadataException Implementations should return an array ofManagedOperationParameterif the suppliedMethodhas the corresponding metadata. Otherwise should return an empty array if no metadata is found.- 参数:
method- theMethodto read the metadata from- 返回:
- the parameter information.
- 抛出:
InvalidMetadataException- in the case of invalid attributes.
-
getManagedNotifications
Implementations should return an array ofManagedNotificationsif the supplied theClasshas the corresponding metadata. Otherwise should return an empty array.- 参数:
clazz- theClassto read the metadata from- 返回:
- the notification information
- 抛出:
InvalidMetadataException- in the case of invalid metadata
-