Package com.yahoo.config.model.producer
Class AbstractConfigProducerRoot
- java.lang.Object
-
- com.yahoo.config.model.producer.AbstractConfigProducer<AbstractConfigProducer<?>>
-
- 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 AbstractConfigProducer<AbstractConfigProducer<?>> implements ConfigProducerRoot
The parent class of classes having the role as the root of a config producer tree.- Author:
- Tony Vaagenes
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,ConfigProducer>
id2producer
The ConfigProducers contained in this model indexed by config id-
Fields inherited from class com.yahoo.config.model.producer.AbstractConfigProducer
log
-
-
Constructor Summary
Constructors Constructor Description AbstractConfigProducerRoot(String rootConfigId)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract ConfigModelRepo
configModelRepo()
void
freezeModelTopology()
Freezes the parent - child connections of the model and sets information derived from the topology.Optional<ConfigProducer>
getConfigProducer(String configId)
Returns the ConfigProducer with the given id if such configId exists.abstract FileDistributionConfigProducer
getFileDistributionConfigProducer()
AbstractConfigProducerRoot
getRoot()
Optional<Service>
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.AbstractConfigProducer
addChild, addConfigId, addDescendantService, addUserConfig, cascadeConfig, dump, getChildren, getChildrenByTypeRecursive, getConfigClassLoader, getConfigId, getDescendantServices, getMonitoringService, getParent, getSubId, getUserConfigs, hostSystem, mergeUserConfigs, remove, removeChild, setParent, setUserConfigs, stateIsHosted, validate
-
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 Detail
-
id2producer
protected final Map<String,ConfigProducer> id2producer
The ConfigProducers contained in this model indexed by config id
-
-
Constructor Detail
-
AbstractConfigProducerRoot
public AbstractConfigProducerRoot(String rootConfigId)
-
-
Method Detail
-
getRoot
public AbstractConfigProducerRoot getRoot()
- Overrides:
getRoot
in classAbstractConfigProducer<AbstractConfigProducer<?>>
-
getFileDistributionConfigProducer
public abstract FileDistributionConfigProducer getFileDistributionConfigProducer()
-
freezeModelTopology
public void freezeModelTopology()
Freezes the parent - child connections of the model and sets information derived from the topology.
-
configModelRepo
public abstract ConfigModelRepo configModelRepo()
-
getConfigProducer
public Optional<ConfigProducer> getConfigProducer(String configId)
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
-
-