public abstract class AbstractMetrics extends Object implements Metrics
| Modifier and Type | Field and Description |
|---|---|
protected String |
baseName |
protected Registry |
registry |
| Modifier and Type | Method and Description |
|---|---|
String |
baseName() |
protected com.codahale.metrics.Counter |
counter(String... names) |
protected <T> com.codahale.metrics.Gauge<T> |
gauge(com.codahale.metrics.Gauge<T> gauge,
String... names) |
protected com.codahale.metrics.Histogram |
histogram(String... names) |
protected static String |
instanceName(String baseName,
Object instance) |
boolean |
isEnabled() |
protected com.codahale.metrics.Meter |
meter(String... names) |
JsonObject |
metrics()
Will return the metrics that correspond with this measured object.
|
protected String |
nameOf(String... names) |
protected Registry |
registry() |
protected void |
remove(String... names) |
protected void |
removeAll() |
protected ThroughputMeter |
throughputMeter(String... names) |
protected ThroughputTimer |
throughputTimer(String... names) |
protected com.codahale.metrics.Timer |
timer(String... names) |
static AbstractMetrics |
unwrap(Measured measured) |
public static AbstractMetrics unwrap(Measured measured)
public JsonObject metrics()
protected Registry registry()
public String baseName()
protected <T> com.codahale.metrics.Gauge<T> gauge(com.codahale.metrics.Gauge<T> gauge,
String... names)
protected com.codahale.metrics.Counter counter(String... names)
protected com.codahale.metrics.Histogram histogram(String... names)
protected com.codahale.metrics.Meter meter(String... names)
protected com.codahale.metrics.Timer timer(String... names)
protected ThroughputMeter throughputMeter(String... names)
protected ThroughputTimer throughputTimer(String... names)
protected void remove(String... names)
protected void removeAll()
Copyright © 2015. All Rights Reserved.