Class MetricConsumerProvider


  • public class MetricConsumerProvider
    extends java.lang.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 different MetricConsumer is done by registering one or more MetricConsumerFactory in the services-file.

    Because this class depends on the ComponentRegistry of MetricConsumerFactory, any added or removed MetricConsumerFactory will cause this component to be reconfigured. Because MetricProvider depends on this class, which means any component that uses Metric will be reconfigured. Any component that depends directly on MetricConsumer 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, com.yahoo.metrics.MetricsPresentationConfig presentationConfig, com.yahoo.container.jdisc.state.StateMonitor stateMonitor)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.yahoo.jdisc.application.MetricConsumer newInstance()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MetricConsumerProvider

        @Inject
        public MetricConsumerProvider​(com.yahoo.component.provider.ComponentRegistry<com.yahoo.container.jdisc.MetricConsumerFactory> factoryRegistry,
                                      com.yahoo.metrics.MetricsPresentationConfig presentationConfig,
                                      com.yahoo.container.jdisc.state.StateMonitor stateMonitor)
    • Method Detail

      • newInstance

        public com.yahoo.jdisc.application.MetricConsumer newInstance()