public class MetricRegistryView
extends MetricRegistry
registry.meter("x").mark();Will create and mark a Meter named "foo.x" in the underlying MetricRegistry.
Constructor and Description |
---|
MetricRegistryView(MetricRegistry delegate,
java.lang.String prefix) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(MetricRegistryListener listener) |
java.util.concurrent.ConcurrentMap<java.lang.String,Metric> |
buildMap() |
Counter |
counter(java.lang.String name) |
java.util.SortedMap<java.lang.String,Counter> |
getCounters() |
java.util.SortedMap<java.lang.String,Counter> |
getCounters(MetricFilter filter) |
MetricRegistry |
getDelegate() |
java.util.SortedMap<java.lang.String,Gauge> |
getGauges() |
java.util.SortedMap<java.lang.String,Gauge> |
getGauges(MetricFilter filter) |
java.util.SortedMap<java.lang.String,Histogram> |
getHistograms() |
java.util.SortedMap<java.lang.String,Histogram> |
getHistograms(MetricFilter filter) |
java.util.SortedMap<java.lang.String,Meter> |
getMeters() |
java.util.SortedMap<java.lang.String,Meter> |
getMeters(MetricFilter filter) |
java.util.Map<java.lang.String,Metric> |
getMetrics() |
java.util.SortedSet<java.lang.String> |
getNames() |
java.util.SortedMap<java.lang.String,java.util.Timer> |
getTimers() |
java.util.SortedMap<java.lang.String,java.util.Timer> |
getTimers(MetricFilter filter) |
Histogram |
histogram(java.lang.String name) |
Meter |
meter(java.lang.String name) |
<T extends Metric> |
register(java.lang.String name,
T metric) |
void |
registerAll(MetricSet metrics) |
boolean |
remove(java.lang.String name) |
void |
removeListener(MetricRegistryListener listener) |
void |
removeMatching(MetricFilter filter) |
java.util.Timer |
timer(java.lang.String name) |
public MetricRegistryView(MetricRegistry delegate, java.lang.String prefix)
public MetricRegistry getDelegate()
public java.util.SortedMap<java.lang.String,Counter> getCounters()
public java.util.SortedMap<java.lang.String,Counter> getCounters(MetricFilter filter)
public java.util.SortedMap<java.lang.String,Gauge> getGauges()
public java.util.SortedMap<java.lang.String,Gauge> getGauges(MetricFilter filter)
public java.util.SortedMap<java.lang.String,Histogram> getHistograms()
public java.util.SortedMap<java.lang.String,Histogram> getHistograms(MetricFilter filter)
public java.util.SortedMap<java.lang.String,Meter> getMeters()
public java.util.SortedMap<java.lang.String,Meter> getMeters(MetricFilter filter)
public java.util.SortedMap<java.lang.String,java.util.Timer> getTimers()
public java.util.SortedMap<java.lang.String,java.util.Timer> getTimers(MetricFilter filter)
public java.util.Map<java.lang.String,Metric> getMetrics()
public Counter counter(java.lang.String name)
public Histogram histogram(java.lang.String name)
public Meter meter(java.lang.String name)
public java.util.Timer timer(java.lang.String name)
public boolean remove(java.lang.String name)
public java.util.SortedSet<java.lang.String> getNames()
public void removeMatching(MetricFilter filter)
public java.util.concurrent.ConcurrentMap<java.lang.String,Metric> buildMap()
public <T extends Metric> T register(java.lang.String name, T metric) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public void addListener(MetricRegistryListener listener)
public void registerAll(MetricSet metrics) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
public void removeListener(MetricRegistryListener listener)