Uses of Interface
com.codahale.metrics.Gauge
-
-
Uses of Gauge in com.codahale.metrics
Subinterfaces of Gauge in com.codahale.metrics Modifier and Type Interface Description interface
SettableGauge<T>
Similar toGauge
, but metric value is updated via calling#setValue(T)
instead.Classes in com.codahale.metrics that implement Gauge Modifier and Type Class Description class
CachedGauge<T>
AGauge
implementation which caches its value for a period of time.class
DefaultSettableGauge<T>
Similar toGauge
, but metric value is updated via calling#setValue(T)
instead.class
DerivativeGauge<F,T>
A gauge whose value is derived from the value of another gauge.class
RatioGauge
A gauge which measures the ratio of one value to another.Methods in com.codahale.metrics with type parameters of type Gauge Modifier and Type Method Description <T extends Gauge>
TMetricRegistry. gauge(String name)
Return theGauge
registered under this name; or create and register a newSettableGauge
if none is registered.<T extends Gauge>
TMetricRegistry. gauge(String name, MetricRegistry.MetricSupplier<T> supplier)
<T extends Gauge>
TNoopMetricRegistry. gauge(String name)
Return theGauge
registered under this name; or create and register a newSettableGauge
if none is registered.<T extends Gauge>
TNoopMetricRegistry. gauge(String name, MetricRegistry.MetricSupplier<T> supplier)
Methods in com.codahale.metrics that return Gauge Modifier and Type Method Description <T> Gauge<T>
MetricRegistry. registerGauge(String name, Gauge<T> metric)
Given aGauge
, registers it under the given name and returns itMethods in com.codahale.metrics that return types with arguments of type Gauge Modifier and Type Method Description SortedMap<String,Gauge>
MetricRegistry. getGauges()
Returns a map of all the gauges in the registry and their names.SortedMap<String,Gauge>
MetricRegistry. getGauges(MetricFilter filter)
Returns a map of all the gauges in the registry and their names which match the given filter.SortedMap<String,Gauge>
NoopMetricRegistry. getGauges()
Returns a map of all the gauges in the registry and their names.SortedMap<String,Gauge>
NoopMetricRegistry. getGauges(MetricFilter filter)
Returns a map of all the gauges in the registry and their names which match the given filter.Methods in com.codahale.metrics with parameters of type Gauge Modifier and Type Method Description void
MetricRegistryListener.Base. onGaugeAdded(String name, Gauge<?> gauge)
void
MetricRegistryListener. onGaugeAdded(String name, Gauge<?> gauge)
Called when aGauge
is added to the registry.<T> Gauge<T>
MetricRegistry. registerGauge(String name, Gauge<T> metric)
Given aGauge
, registers it under the given name and returns itMethod parameters in com.codahale.metrics with type arguments of type Gauge Modifier and Type Method Description void
ConsoleReporter. report(SortedMap<String,Gauge> gauges, SortedMap<String,Counter> counters, SortedMap<String,Histogram> histograms, SortedMap<String,Meter> meters, SortedMap<String,Timer> timers)
void
CsvReporter. report(SortedMap<String,Gauge> gauges, SortedMap<String,Counter> counters, SortedMap<String,Histogram> histograms, SortedMap<String,Meter> meters, SortedMap<String,Timer> timers)
abstract void
ScheduledReporter. report(SortedMap<String,Gauge> gauges, SortedMap<String,Counter> counters, SortedMap<String,Histogram> histograms, SortedMap<String,Meter> meters, SortedMap<String,Timer> timers)
Called periodically by the polling thread.void
Slf4jReporter. report(SortedMap<String,Gauge> gauges, SortedMap<String,Counter> counters, SortedMap<String,Histogram> histograms, SortedMap<String,Meter> meters, SortedMap<String,Timer> timers)
Constructors in com.codahale.metrics with parameters of type Gauge Constructor Description DerivativeGauge(Gauge<F> base)
Creates a new derivative with the given base gauge.
-