Annotation Interface 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
  • Element Details

    • 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 than displayName().
      Default:
      ""
    • writable

      boolean writable
      Indicates if the attribute is writable or just read-only (default). If this flag is true a setter method must exist.
      Default:
      false
    • displayName

      String displayName
      A brief and user friendly name.
      Default:
      ""
    • dataType

      DataType dataType
      Default:
      MEASUREMENT
    • measurementType

      MeasurementType measurementType
      Default:
      DYNAMIC
    • units

      Units units
      Default:
      NONE
    • clusterWide

      boolean clusterWide
      Indicates if the attribute relates to a cluster-wide attribute.
      Default:
      false