@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)
MetricReader
findOne
in interface MetricReader
name
- the name of the metric to findpublic Iterable<Metric<?>> findAll()
MetricReader
findAll
in interface MetricReader
public Iterable<Metric<?>> findAll(String prefix)
PrefixMetricReader
findAll
in interface PrefixMetricReader
prefix
- the prefix for metric namespublic long count()
MetricReader
count
in interface MetricReader
Copyright © 2016 Pivotal Software, Inc.. All rights reserved.