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 StatisticsProvider
NOOP
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CounterStats
getCounterStats(String name, StatsOptions options)
<T> GaugeStats<T>
getGauge(String name, Supplier<T> supplier)
Creates a newGaugeStats
and registers it under the given name.HistogramStats
getHistogram(String name, StatsOptions options)
MeterStats
getMeter(String name, StatsOptions options)
RepositoryStatistics
getStats()
TimerStats
getTimer(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 newGaugeStats
and 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
-
-