Package org.apache.solr.metrics
Class MetricSuppliers.DefaultTimerSupplier
- java.lang.Object
-
- org.apache.solr.metrics.MetricSuppliers.DefaultTimerSupplier
-
- All Implemented Interfaces:
com.codahale.metrics.MetricRegistry.MetricSupplier<com.codahale.metrics.Timer>
,PluginInfoInitialized
- Enclosing class:
- MetricSuppliers
public static final class MetricSuppliers.DefaultTimerSupplier extends Object implements com.codahale.metrics.MetricRegistry.MetricSupplier<com.codahale.metrics.Timer>, PluginInfoInitialized
Default supplier ofTimer
instances, with configurable clock and reservoir. SeeMetricSuppliers.DefaultMeterSupplier
for clock configuration. Reservoir configuration usesMetricSuppliers.RESERVOIR
,MetricSuppliers.RESERVOIR_EDR_ALPHA
,MetricSuppliers.RESERVOIR_SIZE
andMetricSuppliers.RESERVOIR_WINDOW
.
-
-
Field Summary
Fields Modifier and Type Field Description com.codahale.metrics.Clock
clk
-
Constructor Summary
Constructors Constructor Description DefaultTimerSupplier(SolrResourceLoader loader)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.codahale.metrics.Reservoir
getReservoir()
void
init(PluginInfo info)
com.codahale.metrics.Timer
newMetric()
-
-
-
Constructor Detail
-
DefaultTimerSupplier
public DefaultTimerSupplier(SolrResourceLoader loader)
-
-
Method Detail
-
init
public void init(PluginInfo info)
- Specified by:
init
in interfacePluginInfoInitialized
-
getReservoir
public com.codahale.metrics.Reservoir getReservoir()
-
newMetric
public com.codahale.metrics.Timer newMetric()
- Specified by:
newMetric
in interfacecom.codahale.metrics.MetricRegistry.MetricSupplier<com.codahale.metrics.Timer>
-
-