@InterfaceAudience.Private @InterfaceStability.Evolving public class MutableMetricsFactory extends Object
Constructor and Description |
---|
MutableMetricsFactory() |
Modifier and Type | Method and Description |
---|---|
protected MetricsInfo |
getInfo(Class<?> cls,
Metrics annotation) |
protected MetricsInfo |
getInfo(Metric annotation,
Field field) |
protected MetricsInfo |
getInfo(Metric annotation,
Method method) |
protected MetricsInfo |
getInfo(Metric annotation,
String defaultName) |
protected String |
getName(Field field) |
protected String |
getName(Method method) |
protected MutableMetric |
newForField(Field field,
Metric annotation)
Override to handle custom mutable metrics for fields
|
protected MutableMetric |
newForMethod(Object source,
Method method,
Metric annotation)
Override to handle custom mutable metrics for methods
|
protected MutableMetric newForField(Field field, Metric annotation)
field
- of the metricannotation
- of the fieldprotected MutableMetric newForMethod(Object source, Method method, Metric annotation)
source
- the metrics source objectmethod
- to return the metricannotation
- of the methodprotected MetricsInfo getInfo(Metric annotation, Field field)
protected MetricsInfo getInfo(Metric annotation, Method method)
protected MetricsInfo getInfo(Class<?> cls, Metrics annotation)
protected MetricsInfo getInfo(Metric annotation, String defaultName)
Copyright © 2013 Apache Software Foundation. All rights reserved.