Package org.apache.jackrabbit.oak.stats
Interface StatisticsProvider
-
- All Known Implementing Classes:
DefaultStatisticsProvider,MetricStatisticsProvider,RoleStatisticsProvider
@ProviderType public interface StatisticsProvider
-
-
Field Summary
Fields Modifier and Type Field Description static StatisticsProviderNOOP
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CounterStatsgetCounterStats(String name, StatsOptions options)<T> GaugeStats<T>getGauge(String name, Supplier<T> supplier)Creates a newGaugeStatsand registers it under the given name.HistogramStatsgetHistogram(String name, StatsOptions options)MeterStatsgetMeter(String name, StatsOptions options)RepositoryStatisticsgetStats()TimerStatsgetTimer(String name, StatsOptions options)
-
-
-
Field Detail
-
NOOP
static final StatisticsProvider NOOP
-
-
Method Detail
-
getStats
RepositoryStatistics getStats()
-
getMeter
MeterStats getMeter(String name, StatsOptions options)
-
getCounterStats
CounterStats getCounterStats(String name, StatsOptions options)
-
getTimer
TimerStats getTimer(String name, StatsOptions options)
-
getHistogram
HistogramStats getHistogram(String name, StatsOptions options)
-
getGauge
<T> GaugeStats<T> getGauge(String name, Supplier<T> supplier)
Creates a newGaugeStatsand registers it under the given name. If a gauge with the same exists already then the same instance is returned.- Type Parameters:
T- the type of the metric- Parameters:
name- the name of the gaugesupplier- provides the values which are returned by the gauge- Returns:
- the gauge
-
-