Package org.apache.jackrabbit.oak.stats
Class DefaultStatisticsProvider
java.lang.Object
org.apache.jackrabbit.oak.stats.DefaultStatisticsProvider
- All Implemented Interfaces:
StatisticsProvider
-
Field Summary
Fields inherited from interface org.apache.jackrabbit.oak.stats.StatisticsProvider
NOOP -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCounterStats(String name, StatsOptions options) <T> GaugeStats<T> Creates a newGaugeStatsand registers it under the given name.getHistogram(String name, StatsOptions options) getMeter(String name, StatsOptions options) getStats()getTimer(String name, StatsOptions options)
-
Constructor Details
-
DefaultStatisticsProvider
-
-
Method Details
-
getStats
- Specified by:
getStatsin interfaceStatisticsProvider
-
getMeter
- Specified by:
getMeterin interfaceStatisticsProvider
-
getCounterStats
- Specified by:
getCounterStatsin interfaceStatisticsProvider
-
getTimer
- Specified by:
getTimerin interfaceStatisticsProvider
-
getHistogram
- Specified by:
getHistogramin interfaceStatisticsProvider
-
getGauge
Description copied from interface:StatisticsProviderCreates a newGaugeStatsand registers it under the given name. If a gauge with the same exists already then the same instance is returned.- Specified by:
getGaugein interfaceStatisticsProvider- 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
-