Package com.yahoo.container.jdisc.metric
Class MetricProvider
- java.lang.Object
-
- com.yahoo.container.jdisc.metric.MetricProvider
-
- All Implemented Interfaces:
com.yahoo.container.di.componentgraph.Provider<com.yahoo.jdisc.Metric>
public final class MetricProvider extends java.lang.Object implements com.yahoo.container.di.componentgraph.Provider<com.yahoo.jdisc.Metric>
This class implements a
Provider
component ofMetric
. Because this class depends onMetricConsumerProvider
, any change to the consumer configuration will trigger reconfiguration of this component, which in turn triggers reconfiguration of any component that depends onMetric
.- Author:
- Simon Thoresen Hult
-
-
Constructor Summary
Constructors Constructor Description MetricProvider(MetricConsumerProvider provider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deconstruct()
com.yahoo.jdisc.Metric
get()
-
-
-
Constructor Detail
-
MetricProvider
public MetricProvider(MetricConsumerProvider provider)
-
-
Method Detail
-
get
public com.yahoo.jdisc.Metric get()
- Specified by:
get
in interfacecom.yahoo.container.di.componentgraph.Provider<com.yahoo.jdisc.Metric>
-
deconstruct
public void deconstruct()
- Specified by:
deconstruct
in interfacecom.yahoo.container.di.componentgraph.Provider<com.yahoo.jdisc.Metric>
-
-