public abstract class AbstractMetrics extends Object implements Metrics
| Modifier and Type | Field and Description |
|---|---|
protected String |
baseName |
protected com.codahale.metrics.MetricRegistry |
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 com.codahale.metrics.MetricRegistry |
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) |
protected final com.codahale.metrics.MetricRegistry registry
protected final String baseName
public static AbstractMetrics unwrap(Measured measured)
public JsonObject metrics()
protected com.codahale.metrics.MetricRegistry 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.