Class ContainerModelBuilder
java.lang.Object
com.yahoo.component.AbstractComponent
com.yahoo.config.model.builder.xml.ConfigModelBuilder<ContainerModel>
com.yahoo.vespa.model.container.xml.ContainerModelBuilder
- All Implemented Interfaces:
com.yahoo.component.Component,com.yahoo.component.Deconstructable,com.yahoo.config.model.api.ConfigModelPlugin,Comparable<com.yahoo.component.Component>
- Direct Known Subclasses:
ConfigServerContainerModelBuilder
- Author:
- Tony Vaagenes, gjoranv
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final List<ConfigModelId>protected com.yahoo.config.application.api.DeployLoggerFields inherited from class com.yahoo.component.AbstractComponent
isDeconstructable -
Constructor Summary
ConstructorsConstructorDescriptionContainerModelBuilder(boolean standaloneBuilder, ContainerModelBuilder.Networking networking) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddAccessLogs(DeployState deployState, ApplicationContainerCluster cluster, Element spec) protected voidaddClients(DeployState deployState, Element spec, ApplicationContainerCluster cluster) protected voidaddHttp(DeployState deployState, Element spec, ApplicationContainerCluster cluster, ConfigModelContext context) protected voidaddModelEvaluationRuntime(DeployState deployState, ApplicationContainerCluster cluster) static voidprotected voidaddStatusHandlers(ApplicationContainerCluster cluster, boolean isHostedVespa) voiddoBuild(ContainerModel model, Element spec, ConfigModelContext modelContext) Method that must return the XML elements this builder handles.static booleanisContainerTag(Element element) Methods inherited from class com.yahoo.config.model.builder.xml.ConfigModelBuilder
build, build, equals, getModelClassMethods inherited from class com.yahoo.component.AbstractComponent
clone, compareTo, deconstruct, getClassName, getId, getIdString, hasInitializedId, initId, isDeconstructable, setIsDeconstructable, toString
-
Field Details
-
deployLogger
protected com.yahoo.config.application.api.DeployLogger deployLogger -
configModelIds
-
-
Constructor Details
-
ContainerModelBuilder
public ContainerModelBuilder(boolean standaloneBuilder, ContainerModelBuilder.Networking networking)
-
-
Method Details
-
handlesElements
Description copied from class:ConfigModelBuilderMethod that must return the XML elements this builder handles. Subclasses must implement this in order to get called when one of the elements have been encountered when parsing.- Specified by:
handlesElementsin classConfigModelBuilder<ContainerModel>- Returns:
- a list of elements that this builder handles
-
doBuild
Description copied from class:ConfigModelBuilderConvenience hook called fromConfigModelBuilder.build(com.yahoo.config.model.deploy.DeployState, com.yahoo.vespa.model.VespaModel, com.yahoo.config.model.ConfigModelRepo, com.yahoo.config.model.producer.TreeConfigProducer<com.yahoo.config.model.producer.AnyConfigProducer>, org.w3c.dom.Element). Implement this method to build a config model.- Specified by:
doBuildin classConfigModelBuilder<ContainerModel>spec- the XML element that this builder should handlemodelContext- a model context that contains the application package and other data needed by the config model constructor
-
addReconfigurableZooKeeperServerComponents
-
addStatusHandlers
-
addAccessLogs
protected void addAccessLogs(DeployState deployState, ApplicationContainerCluster cluster, Element spec) -
addHttp
protected void addHttp(DeployState deployState, Element spec, ApplicationContainerCluster cluster, ConfigModelContext context) -
addClients
protected void addClients(DeployState deployState, Element spec, ApplicationContainerCluster cluster) -
addModelEvaluationRuntime
protected void addModelEvaluationRuntime(DeployState deployState, ApplicationContainerCluster cluster) -
isContainerTag
-