public static final class MetricSuppliers.DefaultTimerSupplier extends Object implements com.codahale.metrics.MetricRegistry.MetricSupplier<com.codahale.metrics.Timer>, PluginInfoInitialized
Timer
instances, with configurable clock and reservoir.
See MetricSuppliers.DefaultMeterSupplier
for clock configuration. Reservoir configuration uses
MetricSuppliers.RESERVOIR
, MetricSuppliers.RESERVOIR_EDR_ALPHA
, MetricSuppliers.RESERVOIR_SIZE
and
MetricSuppliers.RESERVOIR_WINDOW
.Modifier and Type | Field and Description |
---|---|
com.codahale.metrics.Clock |
clk |
Constructor and Description |
---|
DefaultTimerSupplier(SolrResourceLoader loader) |
Modifier and Type | Method and Description |
---|---|
com.codahale.metrics.Reservoir |
getReservoir() |
void |
init(PluginInfo info) |
com.codahale.metrics.Timer |
newMetric() |
public DefaultTimerSupplier(SolrResourceLoader loader)
public void init(PluginInfo info)
init
in interface PluginInfoInitialized
public com.codahale.metrics.Reservoir getReservoir()
public com.codahale.metrics.Timer newMetric()
newMetric
in interface com.codahale.metrics.MetricRegistry.MetricSupplier<com.codahale.metrics.Timer>
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.