Package com.yahoo.container.jdisc.metric
Class MetricConsumerProvider
- java.lang.Object
-
- com.yahoo.container.jdisc.metric.MetricConsumerProvider
-
public class MetricConsumerProvider extends Object
The purpose of this class it to be the only provider for the
MetricConsumer
interface in a component graph. This component is automatically registered in the graph by the config server. Configuring a differentMetricConsumer
is done by registering one or moreMetricConsumerFactory
in the services-file.Because this class depends on the
ComponentRegistry
ofMetricConsumerFactory
, any added or removedMetricConsumerFactory
will cause this component to be reconfigured. BecauseMetricProvider
depends on this class, which means any component that usesMetric
will be reconfigured. Any component that depends directly onMetricConsumer
will also be reconfigured.- Author:
- Simon Thoresen Hult
-
-
Constructor Summary
Constructors Constructor Description MetricConsumerProvider(com.yahoo.component.provider.ComponentRegistry<com.yahoo.container.jdisc.MetricConsumerFactory> factoryRegistry)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.yahoo.jdisc.application.MetricConsumer
newInstance()
-