Package com.yahoo.config.model.producer
Class AbstractConfigProducerRoot
java.lang.Object
com.yahoo.config.model.producer.AnyConfigProducer
com.yahoo.config.model.producer.TreeConfigProducer<AnyConfigProducer>
com.yahoo.config.model.producer.AbstractConfigProducerRoot
- All Implemented Interfaces:
com.yahoo.config.ConfigInstance.Producer
,ConfigProducer
,ConfigProducerRoot
,Serializable
- Direct Known Subclasses:
MockRoot
,VespaModel
public abstract class AbstractConfigProducerRoot
extends TreeConfigProducer<AnyConfigProducer>
implements ConfigProducerRoot
The parent class of classes having the role as the root of a config producer tree.
- Author:
- Tony Vaagenes
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected final Map<String,
ConfigProducer> The ConfigProducers contained in this model indexed by config idFields inherited from class com.yahoo.config.model.producer.AnyConfigProducer
log
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract ConfigModelRepo
void
Freezes the parent - child connections of the model and sets information derived from the topology.getConfigProducer
(String configId) Returns the ConfigProducer with the given id if such configId exists.getRoot()
getService
(String configId) Returns the Service with the given id if such configId exists and it belongs to a Service ConfigProducer.Methods inherited from class com.yahoo.config.model.producer.TreeConfigProducer
addChild, addDescendantService, getChildren, getChildrenByTypeRecursive, getConfigClassLoader, getDescendantServices, removeChild, validate
Methods inherited from class com.yahoo.config.model.producer.AnyConfigProducer
addConfigId, addUserConfig, cascadeConfig, currentConfigId, findInheritedClassLoader, getConfigId, getMonitoringService, getParent, getSubId, getUserConfigs, hostSystem, mergeUserConfigs, remove, setParent, setUserConfigs, stateIsHosted
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.yahoo.vespa.model.ConfigProducer
addUserConfig, cascadeConfig, dump, getChildren, getConfigId, getDescendantServices, getUserConfigs, hostSystem, validate
Methods inherited from interface com.yahoo.vespa.model.ConfigProducerRoot
addDescendant, getAdmin, getConfig, getConfig, getConfigIds
-
Field Details
-
id2producer
The ConfigProducers contained in this model indexed by config id
-
-
Constructor Details
-
AbstractConfigProducerRoot
-
-
Method Details
-
getRoot
- Overrides:
getRoot
in classAnyConfigProducer
-
freezeModelTopology
public void freezeModelTopology()Freezes the parent - child connections of the model and sets information derived from the topology. -
configModelRepo
-
getConfigProducer
Returns the ConfigProducer with the given id if such configId exists.- Parameters:
configId
- The configId, e.g. "search.0/tld.0"- Returns:
- ConfigProducer with the given configId
-
getService
Returns the Service with the given id if such configId exists and it belongs to a Service ConfigProducer.- Parameters:
configId
- The configId, e.g. "search.0/tld.0"- Returns:
- Service with the given configId
-