- java.lang.Object
-
- io.helidon.microprofile.metrics.MetricUtil
-
public final class MetricUtil extends Object
Class MetricUtil.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMetricUtil.LookupResult<A extends Annotation>Deprecated.This class is made public to migrate from metrics1 to metrics2 for gRPC, this should be refactoredstatic classMetricUtil.MatchingTypeDeprecated.This class is made public to migrate from metrics1 to metrics2 for gRPC, this should be refactored
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static <E extends Member & AnnotatedElement>
StringgetMetricName(E element, Class<?> clazz, MetricUtil.MatchingType matchingType, String explicitName, boolean absolute)This method is intended only for other Helidon components.static <E extends Member & AnnotatedElement,A extends Annotation>
MetricUtil.LookupResult<A>lookupAnnotation(E element, Class<? extends Annotation> annotClass, Class<?> clazz)Deprecated.This method is made public to migrate from metrics1 to metrics2 for gRPC, this should be refactored
-
-
-
Method Detail
-
lookupAnnotation
@Deprecated public static <E extends Member & AnnotatedElement,A extends Annotation> MetricUtil.LookupResult<A> lookupAnnotation(E element, Class<? extends Annotation> annotClass, Class<?> clazz)
Deprecated.This method is made public to migrate from metrics1 to metrics2 for gRPC, this should be refactoredDO NOT USE THIS METHOD please.- Type Parameters:
E- element typeA- annotation type- Parameters:
element- elementannotClass- annotation classclazz- class- Returns:
- lookup result
-
getMetricName
public static <E extends Member & AnnotatedElement> String getMetricName(E element, Class<?> clazz, MetricUtil.MatchingType matchingType, String explicitName, boolean absolute)
This method is intended only for other Helidon components.- Type Parameters:
E- type of element- Parameters:
element- such as methodclazz- classmatchingType- type to matchexplicitName- nameabsolute- if absolute- Returns:
- name of the metric
-
-