Class RoleStatisticsProvider
- java.lang.Object
-
- org.apache.jackrabbit.oak.segment.spi.monitor.RoleStatisticsProvider
-
- All Implemented Interfaces:
StatisticsProvider
public class RoleStatisticsProvider extends Object implements StatisticsProvider
-
-
Field Summary
-
Fields inherited from interface org.apache.jackrabbit.oak.stats.StatisticsProvider
NOOP
-
-
Constructor Summary
Constructors Constructor Description RoleStatisticsProvider(StatisticsProvider delegate, String role)
-
Method Summary
All Methods Instance Methods Concrete 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)
-
-
-
Constructor Detail
-
RoleStatisticsProvider
public RoleStatisticsProvider(StatisticsProvider delegate, String role)
-
-
Method Detail
-
getStats
public RepositoryStatistics getStats()
- Specified by:
getStatsin interfaceStatisticsProvider
-
getMeter
public MeterStats getMeter(String name, StatsOptions options)
- Specified by:
getMeterin interfaceStatisticsProvider
-
getCounterStats
public CounterStats getCounterStats(String name, StatsOptions options)
- Specified by:
getCounterStatsin interfaceStatisticsProvider
-
getTimer
public TimerStats getTimer(String name, StatsOptions options)
- Specified by:
getTimerin interfaceStatisticsProvider
-
getHistogram
public HistogramStats getHistogram(String name, StatsOptions options)
- Specified by:
getHistogramin interfaceStatisticsProvider
-
getGauge
public <T> GaugeStats<T> getGauge(String name, Supplier<T> supplier)
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
-
-