Class AbstractConfigProducerRoot

All Implemented Interfaces:
com.yahoo.config.ConfigInstance.Producer, ConfigProducer, ConfigProducerRoot, Serializable
Direct Known Subclasses:
MockRoot, VespaModel

public abstract class AbstractConfigProducerRoot extends TreeConfigProducer<AnyConfigProducer> implements ConfigProducerRoot
The parent class of classes having the role as the root of a config producer tree.
Author:
Tony Vaagenes
See Also:
  • Field Details

    • id2producer

      protected final Map<String,ConfigProducer> id2producer
      The ConfigProducers contained in this model indexed by config id
  • Constructor Details

    • AbstractConfigProducerRoot

      public AbstractConfigProducerRoot(String rootConfigId)
  • Method Details

    • getRoot

      public AbstractConfigProducerRoot getRoot()
      Overrides:
      getRoot in class AnyConfigProducer
    • getFileDistributionConfigProducer

      public abstract FileDistributionConfigProducer getFileDistributionConfigProducer()
    • freezeModelTopology

      public void freezeModelTopology()
      Freezes the parent - child connections of the model and sets information derived from the topology.
    • configModelRepo

      public abstract ConfigModelRepo configModelRepo()
    • getConfigProducer

      public Optional<ConfigProducer> getConfigProducer(String configId)
      Returns the ConfigProducer with the given id if such configId exists.
      Parameters:
      configId - The configId, e.g. "search.0/tld.0"
      Returns:
      ConfigProducer with the given configId
    • getService

      public Optional<Service> getService(String configId)
      Returns the Service with the given id if such configId exists and it belongs to a Service ConfigProducer.
      Parameters:
      configId - The configId, e.g. "search.0/tld.0"
      Returns:
      Service with the given configId