Package org.apache.solr.metrics
Class MetricSuppliers.DefaultMeterSupplier
- java.lang.Object
-
- org.apache.solr.metrics.MetricSuppliers.DefaultMeterSupplier
-
- All Implemented Interfaces:
com.codahale.metrics.MetricRegistry.MetricSupplier<com.codahale.metrics.Meter>
,PluginInfoInitialized
- Enclosing class:
- MetricSuppliers
public static final class MetricSuppliers.DefaultMeterSupplier extends Object implements com.codahale.metrics.MetricRegistry.MetricSupplier<com.codahale.metrics.Meter>, PluginInfoInitialized
DefaultMeter
supplier. The following configuration is available, either as attribute or initArgs:- clock - (string) can be set to
MetricSuppliers.CLOCK_USER
forClock.UserTimeClock
orMetricSuppliers.CLOCK_CPU
forMetricSuppliers.CpuTimeClock
. If not set then the value ofClock.defaultClock()
will be used.
-
-
Field Summary
Fields Modifier and Type Field Description com.codahale.metrics.Clock
clk
-
Constructor Summary
Constructors Constructor Description DefaultMeterSupplier()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
init(PluginInfo info)
com.codahale.metrics.Meter
newMetric()
-
-
-
Method Detail
-
init
public void init(PluginInfo info)
- Specified by:
init
in interfacePluginInfoInitialized
-
newMetric
public com.codahale.metrics.Meter newMetric()
- Specified by:
newMetric
in interfacecom.codahale.metrics.MetricRegistry.MetricSupplier<com.codahale.metrics.Meter>
-
-