Search in sources :

Example 1 with EstimatedHistogramReservoirSnapshot

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);
}
Also used : Range(org.apache.cassandra.metrics.DecayingEstimatedHistogramReservoir.Range) EstimatedHistogramReservoirSnapshot(org.apache.cassandra.metrics.DecayingEstimatedHistogramReservoir.EstimatedHistogramReservoirSnapshot)

Example 2 with EstimatedHistogramReservoirSnapshot

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);
}
Also used : Range(org.apache.cassandra.metrics.DecayingEstimatedHistogramReservoir.Range) EstimatedHistogramReservoirSnapshot(org.apache.cassandra.metrics.DecayingEstimatedHistogramReservoir.EstimatedHistogramReservoirSnapshot)

Aggregations

EstimatedHistogramReservoirSnapshot (org.apache.cassandra.metrics.DecayingEstimatedHistogramReservoir.EstimatedHistogramReservoirSnapshot)2 Range (org.apache.cassandra.metrics.DecayingEstimatedHistogramReservoir.Range)2