Interface ConfigProducer

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      boolean addUserConfig​(com.yahoo.config.ConfigInstance.Builder builder)
      Adds user config override from this ConfigProducer to the existing builder
      boolean cascadeConfig​(com.yahoo.config.ConfigInstance.Builder builder)
      Build config from this and all parent ConfigProducers, such that the root node's config will be added first, and this ConfigProducer's config last in the returned builder.
      void dump​(PrintStream out)
      Dump the three of config producers to the specified stream.
      Map<String,​? extends ConfigProducer> getChildren()
      Returns this ConfigProducer's children (only 1st level)
      String getConfigId()
      Returns the configId of this ConfigProducer.
      List<Service> getDescendantServices()
      Returns a List of all Services that are descendants to this ConfigProducer
      UserConfigRepo getUserConfigs()
      Returns the user configs of this
      HostSystem hostSystem()
      Returns the one and only HostSystem of the root node
      void validate()
      check constraints depending on the state of the vespamodel graph.
    • Method Detail

      • getConfigId

        String getConfigId()
        Returns the configId of this ConfigProducer.
      • hostSystem

        HostSystem hostSystem()
        Returns the one and only HostSystem of the root node
      • getUserConfigs

        UserConfigRepo getUserConfigs()
        Returns the user configs of this
      • getChildren

        Map<String,​? extends ConfigProducer> getChildren()
        Returns this ConfigProducer's children (only 1st level)
      • getDescendantServices

        List<Service> getDescendantServices()
        Returns a List of all Services that are descendants to this ConfigProducer
      • dump

        void dump​(PrintStream out)
        Dump the three of config producers to the specified stream.
        Parameters:
        out - The stream to print to, e.g. System.out
      • cascadeConfig

        boolean cascadeConfig​(com.yahoo.config.ConfigInstance.Builder builder)
        Build config from this and all parent ConfigProducers, such that the root node's config will be added first, and this ConfigProducer's config last in the returned builder.
        Parameters:
        builder - The builder implemented by the concrete ConfigInstance class
        Returns:
        true if a model config producer was found, so config was applied
      • addUserConfig

        boolean addUserConfig​(com.yahoo.config.ConfigInstance.Builder builder)
        Adds user config override from this ConfigProducer to the existing builder
        Parameters:
        builder - The ConfigBuilder to add user config overrides.
        Returns:
        true if overrides were added, false if not.
      • validate

        void validate()
               throws Exception
        check constraints depending on the state of the vespamodel graph. When overriding, you must invoke super.
        Throws:
        Exception