Class LoadTypeSet
- java.lang.Object
-
- com.yahoo.documentapi.messagebus.loadtypes.LoadTypeSet
-
public class LoadTypeSet extends 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(String configId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addLoadType(int id, String name, DocumentProtocol.Priority priority)
void
addType(String name, 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)
Map<Integer,LoadType>
getIdMap()
Map<String,LoadType>
getNameMap()
-
-
-
Constructor Detail
-
LoadTypeSet
public LoadTypeSet()
-
LoadTypeSet
public LoadTypeSet(String configId)
-
LoadTypeSet
public LoadTypeSet(com.yahoo.vespa.config.content.LoadTypeConfig loadTypeConfig)
-
-
Method Detail
-
addType
public void addType(String name, String priority)
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)
-
configure
public void configure(com.yahoo.vespa.config.content.LoadTypeConfig config)
-
-