Package com.yahoo.vespa.model
Interface ConfigProducerRoot
-
- All Superinterfaces:
com.yahoo.config.ConfigInstance.Producer
,ConfigProducer
- All Known Implementing Classes:
AbstractConfigProducerRoot
,MockRoot
,VespaModel
public interface ConfigProducerRoot extends ConfigProducer
Intended to be used as an external interface to the vespa model root.- Author:
- Tony Vaagenes
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addDescendant(java.lang.String id, AbstractConfigProducer descendant)
Adds the given producer (at any depth level) as descendant to this root nodes.Admin
getAdmin()
com.yahoo.config.ConfigInstance.Builder
getConfig(com.yahoo.config.ConfigInstance.Builder builder, java.lang.String configId)
<CONFIGTYPE extends com.yahoo.config.ConfigInstance>
CONFIGTYPEgetConfig(java.lang.Class<CONFIGTYPE> clazz, java.lang.String configId)
Resolves config of the given type and config id.java.util.Set<java.lang.String>
getConfigIds()
FileDistributor
getFileDistributor()
-
Methods inherited from interface com.yahoo.vespa.model.ConfigProducer
addUserConfig, cascadeConfig, dump, getChildren, getConfigId, getDescendantServices, getUserConfigs, hostSystem, validate
-
-
-
-
Method Detail
-
addDescendant
void addDescendant(java.lang.String id, AbstractConfigProducer descendant)
Adds the given producer (at any depth level) as descendant to this root nodes.- Parameters:
id
- string id of descendantdescendant
- the producer to add to this root node
-
getConfigIds
java.util.Set<java.lang.String> getConfigIds()
- Returns:
- an unmodifiable copy of the set of configIds in this root.
-
getConfig
com.yahoo.config.ConfigInstance.Builder getConfig(com.yahoo.config.ConfigInstance.Builder builder, java.lang.String configId)
-
getConfig
<CONFIGTYPE extends com.yahoo.config.ConfigInstance> CONFIGTYPE getConfig(java.lang.Class<CONFIGTYPE> clazz, java.lang.String configId)
Resolves config of the given type and config id.- Parameters:
clazz
- The type of configconfigId
- The config id- Returns:
- A config instance of the given type
-
getFileDistributor
FileDistributor getFileDistributor()
-
getAdmin
Admin getAdmin()
-
-