public class MetricCopyExporter extends AbstractMetricExporter
Exporter that "exports" by copying metric data from a source
MetricReader to a destination MetricWriter.| Constructor and Description |
|---|
MetricCopyExporter(MetricReader reader,
MetricWriter writer) |
MetricCopyExporter(MetricReader reader,
MetricWriter writer,
String prefix) |
| Modifier and Type | Method and Description |
|---|---|
protected Iterable<Metric<?>> |
next(String group)
Get the next group of metrics to write.
|
protected void |
write(String group,
Collection<Metric<?>> values)
Write the values associated with a group.
|
export, groups, setEarliestTimestamp, setIgnoreTimestampspublic MetricCopyExporter(MetricReader reader, MetricWriter writer)
public MetricCopyExporter(MetricReader reader, MetricWriter writer, String prefix)
protected Iterable<Metric<?>> next(String group)
AbstractMetricExporternext in class AbstractMetricExportergroup - the group name to writeprotected void write(String group, Collection<Metric<?>> values)
AbstractMetricExporterwrite in class AbstractMetricExportergroup - the group to writevalues - the values to writeCopyright © 2014 Pivotal Software, Inc.. All rights reserved.