Package com.yahoo.vespa.model
Interface ConfigProducerRoot
- All Superinterfaces:
com.yahoo.config.ConfigInstance.Producer
,ConfigProducer
- All Known Implementing Classes:
AbstractConfigProducerRoot
,MockRoot
,VespaModel
Intended to be used as an external interface to the vespa model root.
- Author:
- Tony Vaagenes
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addDescendant
(String id, AnyConfigProducer descendant) Adds the given producer (at any depth level) as descendant to this root nodes.getAdmin()
com.yahoo.config.ConfigInstance.Builder
<CONFIGTYPE extends com.yahoo.config.ConfigInstance>
CONFIGTYPEResolves config of the given type and config id.Methods inherited from interface com.yahoo.vespa.model.ConfigProducer
addUserConfig, cascadeConfig, dump, getChildren, getConfigId, getDescendantServices, getUserConfigs, hostSystem, validate
-
Method Details
-
addDescendant
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
- 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, String configId) -
getConfig
<CONFIGTYPE extends com.yahoo.config.ConfigInstance> CONFIGTYPE getConfig(Class<CONFIGTYPE> clazz, 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
-
getAdmin
Admin getAdmin()
-