Package com.yahoo.container.jdisc.metric
Class ForwardingMetricConsumer
java.lang.Object
com.yahoo.container.jdisc.metric.ForwardingMetricConsumer
- All Implemented Interfaces:
com.yahoo.jdisc.application.MetricConsumer
public final class ForwardingMetricConsumer
extends Object
implements com.yahoo.jdisc.application.MetricConsumer
If more than one
MetricConsumerFactory
is registered in a container, calls to Metric
need to be
forwarded to all the underlying MetricConsumers
. That is the responsibility of this class.
Instances of this class is created by the MetricConsumerProvider
in those cases.- Author:
- Simon Thoresen Hult
-
Constructor Summary
ConstructorDescriptionForwardingMetricConsumer
(com.yahoo.jdisc.application.MetricConsumer[] consumers) -
Method Summary
-
Constructor Details
-
ForwardingMetricConsumer
public ForwardingMetricConsumer(com.yahoo.jdisc.application.MetricConsumer[] consumers)
-
-
Method Details
-
set
- Specified by:
set
in interfacecom.yahoo.jdisc.application.MetricConsumer
-
add
- Specified by:
add
in interfacecom.yahoo.jdisc.application.MetricConsumer
-
createContext
- Specified by:
createContext
in interfacecom.yahoo.jdisc.application.MetricConsumer
-