public class WithMetricsSupport
extends com.codahale.metrics.MetricRegistry
MetricRegistry
decorator-like that supports BeamMetricSet
s as Gauges
.
MetricRegistry
is not an interface, so this is not a by-the-book decorator. That said,
it delegates all metric related getters to the "decorated" instance.
Modifier and Type | Method and Description |
---|---|
static WithMetricsSupport |
forRegistry(com.codahale.metrics.MetricRegistry metricRegistry) |
java.util.SortedMap<java.lang.String,com.codahale.metrics.Counter> |
getCounters(com.codahale.metrics.MetricFilter filter) |
java.util.SortedMap<java.lang.String,com.codahale.metrics.Gauge> |
getGauges(com.codahale.metrics.MetricFilter filter) |
java.util.SortedMap<java.lang.String,com.codahale.metrics.Histogram> |
getHistograms(com.codahale.metrics.MetricFilter filter) |
java.util.SortedMap<java.lang.String,com.codahale.metrics.Meter> |
getMeters(com.codahale.metrics.MetricFilter filter) |
java.util.SortedMap<java.lang.String,com.codahale.metrics.Timer> |
getTimers(com.codahale.metrics.MetricFilter filter) |
addListener, buildMap, counter, counter, gauge, gauge, getCounters, getGauges, getHistograms, getMeters, getMetrics, getNames, getTimers, histogram, histogram, meter, meter, name, name, register, registerAll, registerAll, remove, removeListener, removeMatching, timer, timer
public static WithMetricsSupport forRegistry(com.codahale.metrics.MetricRegistry metricRegistry)
public java.util.SortedMap<java.lang.String,com.codahale.metrics.Timer> getTimers(com.codahale.metrics.MetricFilter filter)
getTimers
in class com.codahale.metrics.MetricRegistry
public java.util.SortedMap<java.lang.String,com.codahale.metrics.Meter> getMeters(com.codahale.metrics.MetricFilter filter)
getMeters
in class com.codahale.metrics.MetricRegistry
public java.util.SortedMap<java.lang.String,com.codahale.metrics.Histogram> getHistograms(com.codahale.metrics.MetricFilter filter)
getHistograms
in class com.codahale.metrics.MetricRegistry
public java.util.SortedMap<java.lang.String,com.codahale.metrics.Counter> getCounters(com.codahale.metrics.MetricFilter filter)
getCounters
in class com.codahale.metrics.MetricRegistry
public java.util.SortedMap<java.lang.String,com.codahale.metrics.Gauge> getGauges(com.codahale.metrics.MetricFilter filter)
getGauges
in class com.codahale.metrics.MetricRegistry