public class LatencyMetrics
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected MetricNameFactory |
aliasFactory |
protected MetricNameFactory |
factory |
com.codahale.metrics.Timer |
latency
Latency
|
protected java.lang.String |
namePrefix |
com.codahale.metrics.Counter |
totalLatency
Total latency in micro sec
|
| Constructor and Description |
|---|
LatencyMetrics(MetricNameFactory factory,
MetricNameFactory aliasFactory,
java.lang.String namePrefix) |
LatencyMetrics(MetricNameFactory factory,
java.lang.String namePrefix)
Create LatencyMetrics with given group, type, prefix to append to each metric name, and scope.
|
LatencyMetrics(MetricNameFactory factory,
java.lang.String namePrefix,
LatencyMetrics... parents)
Create LatencyMetrics with given group, type, prefix to append to each metric name, and scope.
|
LatencyMetrics(java.lang.String type,
java.lang.String scope)
Create LatencyMetrics with given group, type, and scope.
|
LatencyMetrics(java.lang.String type,
java.lang.String namePrefix,
java.lang.String scope)
Create LatencyMetrics with given group, type, prefix to append to each metric name, and scope.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addNano(long nanos)
takes nanoseconds
|
void |
release() |
public final com.codahale.metrics.Timer latency
public final com.codahale.metrics.Counter totalLatency
protected final MetricNameFactory factory
protected final MetricNameFactory aliasFactory
protected final java.lang.String namePrefix
public LatencyMetrics(java.lang.String type,
java.lang.String scope)
type - Type namescope - Scopepublic LatencyMetrics(java.lang.String type,
java.lang.String namePrefix,
java.lang.String scope)
type - Type namenamePrefix - Prefix to append to each metric namescope - Scope of metricspublic LatencyMetrics(MetricNameFactory factory, java.lang.String namePrefix)
factory - MetricName factory to usenamePrefix - Prefix to append to each metric namepublic LatencyMetrics(MetricNameFactory factory, MetricNameFactory aliasFactory, java.lang.String namePrefix)
public LatencyMetrics(MetricNameFactory factory, java.lang.String namePrefix, LatencyMetrics... parents)
factory - MetricName factory to usenamePrefix - Prefix to append to each metric nameparents - any amount of parents to replicate updates toCopyright © 2016 The Apache Software Foundation