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