public class CompositeMetricWriter extends Object implements MetricWriter
MetricWriter
that just sends its input to all of
the delegates that have been registered.Constructor and Description |
---|
CompositeMetricWriter(List<MetricWriter> writers) |
CompositeMetricWriter(MetricWriter... writers) |
Modifier and Type | Method and Description |
---|---|
void |
increment(Delta<?> delta)
Increment the value of a metric (or decrement if the delta is negative).
|
void |
reset(String metricName)
Reset the value of a metric, usually to zero value.
|
void |
set(Metric<?> value)
Set the value of a metric.
|
public CompositeMetricWriter(MetricWriter... writers)
public CompositeMetricWriter(List<MetricWriter> writers)
public void increment(Delta<?> delta)
MetricWriter
increment
in interface MetricWriter
delta
- the amount to increment bypublic void set(Metric<?> value)
MetricWriter
set
in interface MetricWriter
public void reset(String metricName)
MetricWriter
reset
in interface MetricWriter
metricName
- the name to resetCopyright © 2014 Pivotal Software, Inc.. All rights reserved.