Uses of Interface
com.codahale.metrics.Gauge
-
Uses of Gauge in com.codahale.metrics
Subinterfaces of Gauge in com.codahale.metricsModifier and TypeInterfaceDescriptioninterfaceSimilar toGauge, but metric value is updated via callingSettableGauge.setValue(T)instead.Classes in com.codahale.metrics that implement GaugeModifier and TypeClassDescriptionclassCachedGauge<T>AGaugeimplementation which caches its value for a period of time.classSimilar toGauge, but metric value is updated via callingDefaultSettableGauge.setValue(T)instead.classDerivativeGauge<F,T> A gauge whose value is derived from the value of another gauge.classA gauge which measures the ratio of one value to another.Methods in com.codahale.metrics with type parameters of type GaugeModifier and TypeMethodDescription<T extends Gauge>
TReturn theGaugeregistered under this name; or create and register a newSettableGaugeif none is registered.<T extends Gauge>
TMetricRegistry.gauge(String name, MetricRegistry.MetricSupplier<T> supplier) <T extends Gauge>
TReturn theGaugeregistered under this name; or create and register a newSettableGaugeif none is registered.<T extends Gauge>
TNoopMetricRegistry.gauge(String name, MetricRegistry.MetricSupplier<T> supplier) Methods in com.codahale.metrics that return GaugeModifier and TypeMethodDescription<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 GaugeModifier and TypeMethodDescriptionMetricRegistry.getGauges()Returns a map of all the gauges in the registry and their names.MetricRegistry.getGauges(MetricFilter filter) Returns a map of all the gauges in the registry and their names which match the given filter.NoopMetricRegistry.getGauges()Returns a map of all the gauges in the registry and their names.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 GaugeModifier and TypeMethodDescriptionvoidMetricRegistryListener.Base.onGaugeAdded(String name, Gauge<?> gauge) voidMetricRegistryListener.onGaugeAdded(String name, Gauge<?> gauge) Called when aGaugeis 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 GaugeModifier and TypeMethodDescriptionvoidConsoleReporter.report(SortedMap<String, Gauge> gauges, SortedMap<String, Counter> counters, SortedMap<String, Histogram> histograms, SortedMap<String, Meter> meters, SortedMap<String, Timer> timers) voidCsvReporter.report(SortedMap<String, Gauge> gauges, SortedMap<String, Counter> counters, SortedMap<String, Histogram> histograms, SortedMap<String, Meter> meters, SortedMap<String, Timer> timers) abstract voidScheduledReporter.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.voidSlf4jReporter.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 GaugeModifierConstructorDescriptionprotectedDerivativeGauge(Gauge<F> base) Creates a new derivative with the given base gauge.