public interface JmxAttributeSource
MetadataMBeanInfoAssembler
to
read source-level metadata from a managed resource's class.MetadataMBeanInfoAssembler.setAttributeSource(org.springframework.jmx.export.metadata.JmxAttributeSource)
,
MBeanExporter.setAssembler(org.springframework.jmx.export.assembler.MBeanInfoAssembler)
Modifier and Type | Method and Description |
---|---|
ManagedAttribute |
getManagedAttribute(Method method)
Implementations should return an instance of
ManagedAttribute
if the supplied Method has the corresponding metadata. |
ManagedMetric |
getManagedMetric(Method method)
Implementations should return an instance of
ManagedMetric
if the supplied Method has the corresponding metadata. |
ManagedNotification[] |
getManagedNotifications(Class<?> clazz)
Implementations should return an array of
ManagedNotifications
if the supplied the Class has the corresponding metadata. |
ManagedOperation |
getManagedOperation(Method method)
Implementations should return an instance of
ManagedOperation
if the supplied Method has the corresponding metadata. |
ManagedOperationParameter[] |
getManagedOperationParameters(Method method)
Implementations should return an array of
ManagedOperationParameter
if the supplied Method has the corresponding metadata. |
ManagedResource |
getManagedResource(Class<?> clazz)
Implementations should return an instance of
ManagedResource
if the supplied Class has the appropriate metadata. |
ManagedResource getManagedResource(Class<?> clazz) throws InvalidMetadataException
ManagedResource
if the supplied Class
has the appropriate metadata.
Otherwise should return null
.clazz
- the class to read the attribute data fromnull
if not foundInvalidMetadataException
- in case of invalid attributesManagedAttribute getManagedAttribute(Method method) throws InvalidMetadataException
ManagedAttribute
if the supplied Method
has the corresponding metadata.
Otherwise should return null
.method
- the method to read the attribute data fromnull
if not foundInvalidMetadataException
- in case of invalid attributesManagedMetric getManagedMetric(Method method) throws InvalidMetadataException
ManagedMetric
if the supplied Method
has the corresponding metadata.
Otherwise should return null
.method
- the method to read the attribute data fromnull
if not foundInvalidMetadataException
- in case of invalid attributesManagedOperation getManagedOperation(Method method) throws InvalidMetadataException
ManagedOperation
if the supplied Method
has the corresponding metadata.
Otherwise should return null
.method
- the method to read the attribute data fromnull
if not foundInvalidMetadataException
- in case of invalid attributesManagedOperationParameter[] getManagedOperationParameters(Method method) throws InvalidMetadataException
ManagedOperationParameter
if the supplied Method
has the corresponding metadata. Otherwise
should return an empty array if no metadata is found.method
- the Method
to read the metadata fromInvalidMetadataException
- in the case of invalid attributes.ManagedNotification[] getManagedNotifications(Class<?> clazz) throws InvalidMetadataException
ManagedNotifications
if the supplied the Class
has the corresponding metadata. Otherwise
should return an empty array.clazz
- the Class
to read the metadata fromInvalidMetadataException
- in the case of invalid metadata