Package org.apache.jackrabbit.oak.stats
Interface StatisticsProvider
- All Known Implementing Classes:
DefaultStatisticsProvider
,MetricStatisticsProvider
,RoleStatisticsProvider
@ProviderType
public interface StatisticsProvider
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetCounterStats
(String name, StatsOptions options) <T> GaugeStats<T>
Creates a newGaugeStats
and registers it under the given name.getHistogram
(String name, StatsOptions options) getMeter
(String name, StatsOptions options) getStats()
getTimer
(String name, StatsOptions options)
-
Field Details
-
NOOP
-
-
Method Details
-
getStats
RepositoryStatistics getStats() -
getMeter
-
getCounterStats
-
getTimer
-
getHistogram
-
getGauge
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
-