Class LoadTypeSet

java.lang.Object
com.yahoo.documentapi.messagebus.loadtypes.LoadTypeSet

@Deprecated(forRemoval=true) public class LoadTypeSet extends Object
Deprecated, for removal: This API element is subject to removal in a future version.
load types are deprecated
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().
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final LoadTypeSet
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    LoadTypeSet(com.yahoo.vespa.config.content.LoadTypeConfig loadTypeConfig)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    LoadTypeSet(String configId)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addLoadType(int id, String name, DocumentProtocol.Priority priority)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    void
    addType(String name, String priority)
    Deprecated, for removal: This API element is subject to removal in a future version.
    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)
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     
    Deprecated, for removal: This API element is subject to removal in a future version.
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • EMPTY

      public static final LoadTypeSet EMPTY
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Constructor Details

    • LoadTypeSet

      public LoadTypeSet()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • LoadTypeSet

      public LoadTypeSet(String configId)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • LoadTypeSet

      public LoadTypeSet(com.yahoo.vespa.config.content.LoadTypeConfig loadTypeConfig)
      Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Details

    • getNameMap

      public Map<String,LoadType> getNameMap()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • getIdMap

      public Map<Integer,LoadType> getIdMap()
      Deprecated, for removal: This API element is subject to removal in a future version.
    • addType

      public void addType(String name, String priority)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Used by config to generate priorities for a name, and add them to the load type set.
    • addLoadType

      public void addLoadType(int id, String name, DocumentProtocol.Priority priority)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • configure

      public void configure(com.yahoo.vespa.config.content.LoadTypeConfig config)
      Deprecated, for removal: This API element is subject to removal in a future version.