Search in sources :

Example 1 with HistogramStats

use of org.apache.jackrabbit.oak.stats.HistogramStats in project jackrabbit-oak by apache.

the class MetricStatisticsProviderTest method histogram.

@Test
public void histogram() throws Exception {
    HistogramStats histoStats = statsProvider.getHistogram("test", StatsOptions.DEFAULT);
    assertNotNull(histoStats);
    assertNotNull(statsProvider.getRegistry().getHistograms().containsKey("test"));
    assertTrue(((CompositeStats) histoStats).isHistogram());
}
Also used : HistogramStats(org.apache.jackrabbit.oak.stats.HistogramStats) Test(org.junit.Test)

Aggregations

HistogramStats (org.apache.jackrabbit.oak.stats.HistogramStats)1 Test (org.junit.Test)1