Package org.apache.cassandra.metrics
Class LatencyMetrics
java.lang.Object
org.apache.cassandra.metrics.LatencyMetrics
- Direct Known Subclasses:
ClientRequestMetrics
Metrics about latencies
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final MetricNameFactoryprotected final MetricNameFactoryLatencyprotected final Stringfinal com.codahale.metrics.CounterTotal latency in micro sec -
Constructor Summary
ConstructorsConstructorDescriptionLatencyMetrics(String type, String scope) Create LatencyMetrics with given group, type, and scope.LatencyMetrics(String type, String namePrefix, String scope) Create LatencyMetrics with given group, type, prefix to append to each metric name, and scope.LatencyMetrics(MetricNameFactory factory, String namePrefix) Create LatencyMetrics with given group, type, prefix to append to each metric name, and scope.LatencyMetrics(MetricNameFactory factory, String namePrefix, LatencyMetrics... parents) Create LatencyMetrics with given group, type, prefix to append to each metric name, and scope.LatencyMetrics(MetricNameFactory factory, MetricNameFactory aliasFactory, String namePrefix) -
Method Summary
-
Field Details
-
latency
Latency -
totalLatency
public final com.codahale.metrics.Counter totalLatencyTotal latency in micro sec -
factory
-
aliasFactory
-
namePrefix
-
-
Constructor Details
-
LatencyMetrics
Create LatencyMetrics with given group, type, and scope. Name prefix for each metric will be empty.- Parameters:
type- Type namescope- Scope
-
LatencyMetrics
Create LatencyMetrics with given group, type, prefix to append to each metric name, and scope.- Parameters:
type- Type namenamePrefix- Prefix to append to each metric namescope- Scope of metrics
-
LatencyMetrics
Create LatencyMetrics with given group, type, prefix to append to each metric name, and scope.- Parameters:
factory- MetricName factory to usenamePrefix- Prefix to append to each metric name
-
LatencyMetrics
-
LatencyMetrics
Create LatencyMetrics with given group, type, prefix to append to each metric name, and scope. Any updates to this will also run on parent- Parameters:
factory- MetricName factory to usenamePrefix- Prefix to append to each metric nameparents- any amount of parents to replicate updates to
-
-
Method Details
-
addNano
public void addNano(long nanos) takes nanoseconds -
release
public void release()
-