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, setIgnoreTimestamps
public MetricCopyExporter(MetricReader reader, MetricWriter writer)
public MetricCopyExporter(MetricReader reader, MetricWriter writer, String prefix)
protected Iterable<Metric<?>> next(String group)
AbstractMetricExporter
next
in class AbstractMetricExporter
group
- the group name to writeprotected void write(String group, Collection<Metric<?>> values)
AbstractMetricExporter
write
in class AbstractMetricExporter
group
- the group to writevalues
- the values to writeCopyright © 2014 Pivotal Software, Inc.. All rights reserved.