Class UserConfigRepo


  • public class UserConfigRepo
    extends java.lang.Object
    A UserConfigRepo is a repository for user configs, typically for a particular config producer. The repo encapsulates how the user configs are stored, and defines the methods to retrieve user configs and merge the repo with others.
    Author:
    Ulf Lilleengen
    • Constructor Summary

      Constructors 
      Constructor Description
      UserConfigRepo()  
      UserConfigRepo​(java.util.Map<com.yahoo.vespa.config.ConfigDefinitionKey,​com.yahoo.vespa.config.ConfigPayloadBuilder> map)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      UserConfigRepo clone()  
      java.util.Set<com.yahoo.vespa.config.ConfigDefinitionKey> configsProduced()
      The keys of all the configs contained in this.
      com.yahoo.vespa.config.ConfigPayloadBuilder get​(com.yahoo.vespa.config.ConfigDefinitionKey key)  
      boolean isEmpty()  
      void merge​(UserConfigRepo newRepo)  
      int size()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • UserConfigRepo

        public UserConfigRepo()
      • UserConfigRepo

        public UserConfigRepo​(java.util.Map<com.yahoo.vespa.config.ConfigDefinitionKey,​com.yahoo.vespa.config.ConfigPayloadBuilder> map)
    • Method Detail

      • clone

        public UserConfigRepo clone()
        Overrides:
        clone in class java.lang.Object
      • get

        public com.yahoo.vespa.config.ConfigPayloadBuilder get​(com.yahoo.vespa.config.ConfigDefinitionKey key)
      • isEmpty

        public boolean isEmpty()
      • size

        public int size()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • configsProduced

        public java.util.Set<com.yahoo.vespa.config.ConfigDefinitionKey> configsProduced()
        The keys of all the configs contained in this.
        Returns:
        a set of ConfigDefinitionsKey