Class LoadTypeSet


  • public class LoadTypeSet
    extends java.lang.Object
    This class keeps track of all configured load types. For production use, you should only use the String constructor, and supply a valid config id. Only the load types configured will be propagated throughout the system, so there is no point in using other load types. For testing, you may want to use the empty constructor and add load types yourself with addType().
    • Constructor Summary

      Constructors 
      Constructor Description
      LoadTypeSet()  
      LoadTypeSet​(com.yahoo.vespa.config.content.LoadTypeConfig loadTypeConfig)  
      LoadTypeSet​(java.lang.String configId)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addLoadType​(int id, java.lang.String name, DocumentProtocol.Priority priority)  
      void addType​(java.lang.String name, java.lang.String priority)
      Used by config to generate priorities for a name, and add them to the load type set.
      void configure​(com.yahoo.vespa.config.content.LoadTypeConfig config)  
      java.util.Map<java.lang.Integer,​LoadType> getIdMap()  
      java.util.Map<java.lang.String,​LoadType> getNameMap()  
      • Methods inherited from class java.lang.Object

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

      • LoadTypeSet

        public LoadTypeSet()
      • LoadTypeSet

        public LoadTypeSet​(java.lang.String configId)
      • LoadTypeSet

        public LoadTypeSet​(com.yahoo.vespa.config.content.LoadTypeConfig loadTypeConfig)
    • Method Detail

      • getNameMap

        public java.util.Map<java.lang.String,​LoadType> getNameMap()
      • getIdMap

        public java.util.Map<java.lang.Integer,​LoadType> getIdMap()
      • addType

        public void addType​(java.lang.String name,
                            java.lang.String priority)
        Used by config to generate priorities for a name, and add them to the load type set.
      • configure

        public void configure​(com.yahoo.vespa.config.content.LoadTypeConfig config)