Package com.yahoo.config.model
Class ApplicationConfigProducerRoot
java.lang.Object
com.yahoo.config.model.producer.AnyConfigProducer
com.yahoo.config.model.producer.TreeConfigProducer<AnyConfigProducer>
com.yahoo.config.model.ApplicationConfigProducerRoot
- All Implemented Interfaces:
com.yahoo.cloud.config.ApplicationIdConfig.Producer,com.yahoo.cloud.config.ClusterListConfig.Producer,com.yahoo.cloud.config.log.LogdConfig.Producer,com.yahoo.cloud.config.ModelConfig.Producer,com.yahoo.cloud.config.SlobroksConfig.Producer,com.yahoo.cloud.config.ZookeepersConfig.Producer,com.yahoo.config.ConfigInstance.Producer,CommonConfigsProducer,com.yahoo.document.config.DocumentmanagerConfig.Producer,com.yahoo.document.config.DocumenttypesConfig.Producer,com.yahoo.documentapi.messagebus.protocol.DocumentProtocolPoliciesConfig.Producer,com.yahoo.documentapi.messagebus.protocol.DocumentrouteselectorpolicyConfig.Producer,com.yahoo.messagebus.MessagebusConfig.Producer,com.yahoo.vespa.config.content.AllClustersBucketSpacesConfig.Producer,com.yahoo.vespa.config.content.DistributionConfig.Producer,ConfigProducer,Serializable
public class ApplicationConfigProducerRoot
extends TreeConfigProducer<AnyConfigProducer>
implements CommonConfigsProducer
This is the parent of all ConfigProducers in the system resulting from configuring an application.
- Author:
- gjoranv
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.yahoo.config.model.producer.AnyConfigProducer
log -
Constructor Summary
ConstructorsConstructorDescriptionApplicationConfigProducerRoot(TreeConfigProducer<AnyConfigProducer> parent, String name, DocumentModel documentModel, com.yahoo.component.Version vespaVersion, com.yahoo.config.provision.ApplicationId applicationId) Creates and initializes a new Vespa from the service config file in the given application directory. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDescendant(AnyConfigProducer descendant) Adds the descendant (at any depth level), so it can be looked up on configId in the Map.getAdmin()voidgetConfig(com.yahoo.cloud.config.ApplicationIdConfig.Builder builder) voidgetConfig(com.yahoo.cloud.config.ClusterListConfig.Builder builder) voidgetConfig(com.yahoo.cloud.config.log.LogdConfig.Builder builder) voidgetConfig(com.yahoo.cloud.config.ModelConfig.Builder builder) voidgetConfig(com.yahoo.cloud.config.SlobroksConfig.Builder builder) voidgetConfig(com.yahoo.cloud.config.ZookeepersConfig.Builder builder) voidgetConfig(com.yahoo.document.config.DocumentmanagerConfig.Builder builder) voidgetConfig(com.yahoo.document.config.DocumenttypesConfig.Builder builder) voidgetConfig(com.yahoo.documentapi.messagebus.protocol.DocumentProtocolPoliciesConfig.Builder builder) voidgetConfig(com.yahoo.documentapi.messagebus.protocol.DocumentrouteselectorpolicyConfig.Builder builder) voidgetConfig(com.yahoo.messagebus.MessagebusConfig.Builder builder) voidgetConfig(com.yahoo.vespa.config.content.AllClustersBucketSpacesConfig.Builder builder) voidgetConfig(com.yahoo.vespa.config.content.DistributionConfig.Builder builder) getConfigProducer(String configId) Returns the ConfigProducer with the given id, or null if no such configId exists.static StringgetPortTags(PortsMeta portsMeta, int portNumber) Returns the one and only HostSystem of the root node.voidprepare(ConfigModelRepo plugins) Prepares the model for start.voidsetHostSystem(HostSystem hostSystem) voidsetupAdmin(Admin admin) voidsetupRouting(DeployState deployState, VespaModel vespaModel, ConfigModelRepo configModels) voiduseFeatureFlags(com.yahoo.config.model.api.ModelContext.FeatureFlags featureFlags) Methods inherited from class com.yahoo.config.model.producer.TreeConfigProducer
addChild, addDescendantService, getChildren, getChildrenByTypeRecursive, getConfigClassLoader, getDescendantServices, removeChild, validateMethods inherited from class com.yahoo.config.model.producer.AnyConfigProducer
addConfigId, addUserConfig, cascadeConfig, currentConfigId, findInheritedClassLoader, getConfigId, getMonitoringService, getParent, getRoot, getSubId, getUserConfigs, mergeUserConfigs, remove, setParent, setUserConfigs, stateIsHostedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.yahoo.vespa.model.ConfigProducer
dump
-
Constructor Details
-
ApplicationConfigProducerRoot
public ApplicationConfigProducerRoot(TreeConfigProducer<AnyConfigProducer> parent, String name, DocumentModel documentModel, com.yahoo.component.Version vespaVersion, com.yahoo.config.provision.ApplicationId applicationId) Creates and initializes a new Vespa from the service config file in the given application directory.- Parameters:
parent- the parent, usually VespaModelname- the name, used as configIddocumentModel- DocumentModel to serve global document config from.
-
-
Method Details
-
useFeatureFlags
public void useFeatureFlags(com.yahoo.config.model.api.ModelContext.FeatureFlags featureFlags) -
getConfigIds
- Returns:
- an unmodifiable copy of the set of configIds in this VespaModel.
-
getConfigProducer
Returns the ConfigProducer with the given id, or null if no such configId exists.- Parameters:
configId- The configId, e.g. "search.0/tld.0"- Returns:
- ConfigProducer with the given configId
-
addDescendant
Adds the descendant (at any depth level), so it can be looked up on configId in the Map.- Parameters:
descendant- The configProducer descendant to add
-
prepare
Prepares the model for start. TheVespaModelcalls this methods after it has loaded this and all plugins have been loaded and their initialize() methods have been called.- Parameters:
plugins- All initialized plugins of the vespa model.
-
setupAdmin
-
setupRouting
public void setupRouting(DeployState deployState, VespaModel vespaModel, ConfigModelRepo configModels) -
getConfig
public void getConfig(com.yahoo.document.config.DocumentmanagerConfig.Builder builder) - Specified by:
getConfigin interfacecom.yahoo.document.config.DocumentmanagerConfig.Producer
-
getConfig
public void getConfig(com.yahoo.document.config.DocumenttypesConfig.Builder builder) - Specified by:
getConfigin interfacecom.yahoo.document.config.DocumenttypesConfig.Producer
-
getConfig
public void getConfig(com.yahoo.documentapi.messagebus.protocol.DocumentrouteselectorpolicyConfig.Builder builder) - Specified by:
getConfigin interfacecom.yahoo.documentapi.messagebus.protocol.DocumentrouteselectorpolicyConfig.Producer
-
getConfig
public void getConfig(com.yahoo.documentapi.messagebus.protocol.DocumentProtocolPoliciesConfig.Builder builder) - Specified by:
getConfigin interfacecom.yahoo.documentapi.messagebus.protocol.DocumentProtocolPoliciesConfig.Producer
-
getConfig
public void getConfig(com.yahoo.messagebus.MessagebusConfig.Builder builder) - Specified by:
getConfigin interfacecom.yahoo.messagebus.MessagebusConfig.Producer
-
getConfig
public void getConfig(com.yahoo.cloud.config.log.LogdConfig.Builder builder) - Specified by:
getConfigin interfacecom.yahoo.cloud.config.log.LogdConfig.Producer
-
getConfig
public void getConfig(com.yahoo.cloud.config.SlobroksConfig.Builder builder) - Specified by:
getConfigin interfacecom.yahoo.cloud.config.SlobroksConfig.Producer
-
getConfig
public void getConfig(com.yahoo.cloud.config.ZookeepersConfig.Builder builder) - Specified by:
getConfigin interfacecom.yahoo.cloud.config.ZookeepersConfig.Producer
-
getConfig
public void getConfig(com.yahoo.cloud.config.ClusterListConfig.Builder builder) - Specified by:
getConfigin interfacecom.yahoo.cloud.config.ClusterListConfig.Producer
-
getConfig
public void getConfig(com.yahoo.vespa.config.content.DistributionConfig.Builder builder) - Specified by:
getConfigin interfacecom.yahoo.vespa.config.content.DistributionConfig.Producer
-
getConfig
public void getConfig(com.yahoo.vespa.config.content.AllClustersBucketSpacesConfig.Builder builder) - Specified by:
getConfigin interfacecom.yahoo.vespa.config.content.AllClustersBucketSpacesConfig.Producer
-
getConfig
public void getConfig(com.yahoo.cloud.config.ModelConfig.Builder builder) - Specified by:
getConfigin interfacecom.yahoo.cloud.config.ModelConfig.Producer
-
getStatePorts
-
getPortTags
-
setHostSystem
-
hostSystem
Description copied from class:AnyConfigProducerReturns the one and only HostSystem of the root node. Must be overridden by root node.- Specified by:
hostSystemin interfaceConfigProducer- Overrides:
hostSystemin classAnyConfigProducer
-
getAdmin
-
getConfig
public void getConfig(com.yahoo.cloud.config.ApplicationIdConfig.Builder builder) - Specified by:
getConfigin interfacecom.yahoo.cloud.config.ApplicationIdConfig.Producer
-