use of org.apache.cassandra.metrics.DecayingEstimatedHistogramReservoir.EstimatedHistogramReservoirSnapshot in project cassandra by apache.
the class ClientRequestSizeMetricsTest method assertMax.
private void assertMax(Snapshot snapshot, long value) {
Range range = ((EstimatedHistogramReservoirSnapshot) snapshot).getBucketingRangeForValue(value);
assertEquals(snapshot.getMax(), range.max);
}
use of org.apache.cassandra.metrics.DecayingEstimatedHistogramReservoir.EstimatedHistogramReservoirSnapshot in project cassandra by apache.
the class ClientRequestSizeMetricsTest method assertMin.
private void assertMin(Snapshot snapshot, long value) {
Range range = ((EstimatedHistogramReservoirSnapshot) snapshot).getBucketingRangeForValue(value);
assertEquals(snapshot.getMin(), range.min);
}
Aggregations