public class LatencyMetrics
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected MetricNameFactory |
factory |
protected long |
lastLatency |
protected long |
lastOpCount |
com.yammer.metrics.core.Timer |
latency
Latency
|
protected java.lang.String |
namePrefix |
EstimatedHistogram |
recentLatencyHistogram
Deprecated.
|
com.yammer.metrics.core.Counter |
totalLatency
Total latency in micro sec
|
EstimatedHistogram |
totalLatencyHistogram
Deprecated.
|
Constructor and Description |
---|
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
|
double |
getRecentLatency()
Deprecated.
|
void |
release() |
public final com.yammer.metrics.core.Timer latency
public final com.yammer.metrics.core.Counter totalLatency
protected final MetricNameFactory factory
protected final java.lang.String namePrefix
@Deprecated public final EstimatedHistogram totalLatencyHistogram
@Deprecated public final EstimatedHistogram recentLatencyHistogram
protected long lastLatency
protected long lastOpCount
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, 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 © 2015 The Apache Software Foundation