|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Retention(value=RUNTIME) @Target(value=FIELD) public @interface JmxAttributeField
This identifies which fields you want to expose via JMX. This is done through reflection. If the field is not public
then it will try to open the accessibility on the field. Instead of annotating the fields, you can annotate your
getXxx(), setXxx(), and isXxx() methods with JmxAttributeMethod
.
@JmxAttributeField(description = "Number of times our cache was hit") private int cacheHitCount;
Optional Element Summary | |
---|---|
String |
description
Description of the attribute for jconsole. |
boolean |
isReadible
Set to false if the field should not be read through JMX. |
boolean |
isWritable
Set to true if the field can be written by JMX. |
public abstract String description
public abstract boolean isReadible
public abstract boolean isWritable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |