org.springframework.jmx.export.annotation
Annotation Type ManagedMetric


@Target(value=METHOD)
@Retention(value=RUNTIME)
@Documented
public @interface ManagedMetric

JDK 1.5+ method-level annotation that indicates to expose a given bean property as JMX attribute, with added Descriptor properties to indicate that it is a metric. Only valid when used on a JavaBean getter.

Since:
3.0
Author:
Jennifer Hickey
See Also:
ManagedMetric

Optional Element Summary
 String category
           
 int currencyTimeLimit
           
 String description
           
 String displayName
           
 MetricType metricType
           
 int persistPeriod
           
 String persistPolicy
           
 String unit
           
 

category

public abstract String category
Default:
""

currencyTimeLimit

public abstract int currencyTimeLimit
Default:
-1

description

public abstract String description
Default:
""

displayName

public abstract String displayName
Default:
""

metricType

public abstract MetricType metricType
Default:
org.springframework.jmx.support.MetricType.GAUGE

persistPeriod

public abstract int persistPeriod
Default:
-1

persistPolicy

public abstract String persistPolicy
Default:
""

unit

public abstract String unit
Default:
""