public class DeclaringClassMetricNamer extends Object implements MetricNamer
| 限定符和类型 | 字段和说明 |
|---|---|
(专用程序包) static String |
COUNTER_SUFFIX |
(专用程序包) static String |
COUNTER_SUFFIX_MONOTONIC |
(专用程序包) static String |
GAUGE_SUFFIX |
(专用程序包) static String |
METERED_SUFFIX |
(专用程序包) static String |
TIMED_SUFFIX |
| 构造器和说明 |
|---|
DeclaringClassMetricNamer() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getNameForCounted(Method method,
com.codahale.metrics.annotation.Counted counted) |
String |
getNameForExceptionMetered(Method method,
com.codahale.metrics.annotation.ExceptionMetered exceptionMetered) |
String |
getNameForGauge(Class<?> instanceClass,
Method method,
com.codahale.metrics.annotation.Gauge gauge)
For AOP-wrapped method invocations (which is how all metrics other than Gauges have to be
handled), there isn't a way to handle annotated methods defined in superclasses since we can't
AOP superclass methods.
|
String |
getNameForMetered(Method method,
com.codahale.metrics.annotation.Metered metered) |
String |
getNameForTimed(Method method,
com.codahale.metrics.annotation.Timed timed) |
@Nonnull public String getNameForCounted(@Nonnull Method method, @Nonnull com.codahale.metrics.annotation.Counted counted)
getNameForCounted 在接口中 MetricNamer@Nonnull public String getNameForExceptionMetered(@Nonnull Method method, @Nonnull com.codahale.metrics.annotation.ExceptionMetered exceptionMetered)
getNameForExceptionMetered 在接口中 MetricNamer@Nonnull public String getNameForGauge(@Nonnull Class<?> instanceClass, @Nonnull Method method, @Nonnull com.codahale.metrics.annotation.Gauge gauge)
MetricNamergetNameForGauge 在接口中 MetricNamerinstanceClass - the type being instantiatedmethod - the annotated method (which may belong to a supertype)gauge - the annotation@Nonnull public String getNameForMetered(@Nonnull Method method, @Nonnull com.codahale.metrics.annotation.Metered metered)
getNameForMetered 在接口中 MetricNamer@Nonnull public String getNameForTimed(@Nonnull Method method, @Nonnull com.codahale.metrics.annotation.Timed timed)
getNameForTimed 在接口中 MetricNamerCopyright © 2020. All rights reserved.