Package org.infinispan.jmx.annotations
Annotation Type ManagedAttribute
-
@Retention(CLASS) @Target(METHOD) @Documented public @interface ManagedAttribute
Indicates that a method in a MBean class defines a MBean attribute. This annotation can be applied to a non-static non-private getter or setter method of a public class that is itself annotated with an @MBean annotation, or inherits such an annotation from a superclass.- Since:
- 4.0
- Author:
- (various), Galder ZamarreƱo
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description DataTypedataTypeStringdescriptionThe human-readable description of the attribute.StringdisplayNameA brief and user friendly name.MeasurementTypemeasurementTypeStringnameThe name of the JMX attribute.UnitsunitsbooleanwritableIndicates if the attribute is writable or just read-only (default).
-
-
-
Element Detail
-
name
String name
The name of the JMX attribute. If left empty it defaults to the name of the Java property.- Default:
- ""
-
-
-
description
String description
The human-readable description of the attribute. Probably more detailed thandisplayName().- Default:
- ""
-
-
-
displayName
String displayName
A brief and user friendly name.- Default:
- ""
-
-
-
dataType
DataType dataType
- Default:
- org.infinispan.jmx.annotations.DataType.MEASUREMENT
-
-
-
measurementType
MeasurementType measurementType
- Default:
- org.infinispan.jmx.annotations.MeasurementType.DYNAMIC
-
-
-
units
Units units
- Default:
- org.infinispan.jmx.annotations.Units.NONE
-
-