All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.jmx.annotations.ManagedAttribute Maven / Gradle / Ivy

There is a newer version: 9.1.7.Final
Show newest version
package org.infinispan.jmx.annotations;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Indicates that a public method or a field (any visibility) in an MBean class defines an MBean attribute. This
 * annotation can be applied to either a field or a public setter and/or getter method of a public class that is itself
 * is optionally annotated with an @MBean annotation, or inherits such an annotation from a superclass.
 *
 * @author (various)
 * @author Galder Zamarreño
 * @since 4.0
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD, ElementType.FIELD})
public @interface ManagedAttribute {
   String description() default "";

   boolean writable() default false;

   String displayName() default "";

   DataType dataType() default DataType.MEASUREMENT;

   DisplayType displayType() default DisplayType.DETAIL;

   MeasurementType measurementType() default MeasurementType.DYNAMIC;

   Units units() default Units.NONE;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy