|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cassandra.metrics.LatencyMetrics
public class LatencyMetrics
Metrics about latencies
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
LatencyMetrics(MetricNameFactory factory,
java.lang.String namePrefix)
Create LatencyMetrics with given group, type, prefix to append to each metric name, and scope. |
|
LatencyMetrics(java.lang.String group,
java.lang.String type,
java.lang.String scope)
Create LatencyMetrics with given group, type, and scope. |
|
LatencyMetrics(java.lang.String group,
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. |
|
| Method Summary | |
|---|---|
void |
addMicro(long micros)
|
void |
addNano(long nanos)
takes nanoseconds |
double |
getRecentLatency()
Deprecated. |
void |
release()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public LatencyMetrics(java.lang.String group,
java.lang.String type,
java.lang.String scope)
group - Group nametype - Type namescope - Scope
public LatencyMetrics(java.lang.String group,
java.lang.String type,
java.lang.String namePrefix,
java.lang.String scope)
group - Group nametype - Type namenamePrefix - Prefix to append to each metric namescope - Scope of metrics
public LatencyMetrics(MetricNameFactory factory,
java.lang.String namePrefix)
factory - MetricName factory to usenamePrefix - Prefix to append to each metric name| Method Detail |
|---|
public void addNano(long nanos)
public void addMicro(long micros)
public void release()
@Deprecated public double getRecentLatency()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||