public class CompositeMetricReader extends Object implements MetricReader
MetricReader
.Constructor and Description |
---|
CompositeMetricReader(MetricReader... readers) |
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.
|
Metric<?> |
findOne(String metricName)
Find an instance of the metric with the given name (usually the latest recorded
value).
|
public CompositeMetricReader(MetricReader... readers)
public Metric<?> findOne(String metricName)
MetricReader
findOne
in interface MetricReader
metricName
- the name of the metric to findpublic Iterable<Metric<?>> findAll()
MetricReader
findAll
in interface MetricReader
public long count()
MetricReader
count
in interface MetricReader
Copyright © 2014 Pivotal Software, Inc.. All rights reserved.