@UsesJava8 public class BufferMetricReader extends Object implements MetricReader, PrefixMetricReader
| Constructor and Description |
|---|
BufferMetricReader(CounterBuffers counterBuffers,
GaugeBuffers gaugeBuffers) |
| Modifier and Type | Method and Description |
|---|---|
long |
count()
The number of metrics known to this reader.
|
Iterable<Metric<?>> |
findAll()
Find all the metrics known to this reader.
|
Iterable<Metric<?>> |
findAll(String prefix)
Find all metrics whose name starts with the given prefix.
|
Metric<?> |
findOne(String name)
Find an instance of the metric with the given name (usually the latest recorded
value).
|
public BufferMetricReader(CounterBuffers counterBuffers, GaugeBuffers gaugeBuffers)
public Metric<?> findOne(String name)
MetricReaderfindOne in interface MetricReadername - the name of the metric to findpublic Iterable<Metric<?>> findAll()
MetricReaderfindAll in interface MetricReaderpublic Iterable<Metric<?>> findAll(String prefix)
PrefixMetricReaderfindAll in interface PrefixMetricReaderprefix - the prefix for metric namespublic long count()
MetricReadercount in interface MetricReaderCopyright © 2016 Pivotal Software, Inc.. All rights reserved.