Interface ConfigProducerRoot

All Superinterfaces:
com.yahoo.config.ConfigInstance.Producer, ConfigProducer
All Known Implementing Classes:
AbstractConfigProducerRoot, MockRoot, VespaModel

public interface ConfigProducerRoot extends ConfigProducer
Intended to be used as an external interface to the vespa model root.
Author:
Tony Vaagenes
  • Method Details

    • addDescendant

      void addDescendant(String id, AbstractConfigProducer<?> descendant)
      Adds the given producer (at any depth level) as descendant to this root nodes.
      Parameters:
      id - string id of descendant
      descendant - the producer to add to this root node
    • getConfigIds

      Set<String> getConfigIds()
      Returns:
      an unmodifiable copy of the set of configIds in this root.
    • getConfig

      com.yahoo.config.ConfigInstance.Builder getConfig(com.yahoo.config.ConfigInstance.Builder builder, String configId)
    • getConfig

      <CONFIGTYPE extends com.yahoo.config.ConfigInstance> CONFIGTYPE getConfig(Class<CONFIGTYPE> clazz, String configId)
      Resolves config of the given type and config id.
      Parameters:
      clazz - The type of config
      configId - The config id
      Returns:
      A config instance of the given type
    • getAdmin

      Admin getAdmin()