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.config.model.api.ConfigModelPlugin
,java.lang.Comparable<com.yahoo.component.Component>
- Direct Known Subclasses:
ConfigServerContainerModelBuilder
public class ContainerModelBuilder extends ConfigModelBuilder<ContainerModel>
- Author:
- Tony Vaagenes, gjoranv
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ContainerModelBuilder.Networking
-
Field Summary
Fields Modifier and Type Field Description static java.util.List<ConfigModelId>
configModelIds
protected com.yahoo.config.application.api.DeployLogger
log
-
Constructor Summary
Constructors Constructor Description ContainerModelBuilder(boolean standaloneBuilder, ContainerModelBuilder.Networking networking)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addStatusHandlers(ApplicationContainerCluster cluster, boolean isHostedVespa)
void
doBuild(ContainerModel model, org.w3c.dom.Element spec, ConfigModelContext modelContext)
java.util.List<ConfigModelId>
handlesElements()
Method that must return the XML elements this builder handles.static boolean
isContainerTag(org.w3c.dom.Element element)
-
Methods inherited from class com.yahoo.config.model.builder.xml.ConfigModelBuilder
build, build, equals, getModelClass
-
-
-
-
Field Detail
-
log
protected com.yahoo.config.application.api.DeployLogger log
-
configModelIds
public static final java.util.List<ConfigModelId> configModelIds
-
-
Constructor Detail
-
ContainerModelBuilder
public ContainerModelBuilder(boolean standaloneBuilder, ContainerModelBuilder.Networking networking)
-
-
Method Detail
-
handlesElements
public java.util.List<ConfigModelId> handlesElements()
Description copied from class:ConfigModelBuilder
Method 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:
handlesElements
in classConfigModelBuilder<ContainerModel>
- Returns:
- A list of elements that this builder handles.
-
doBuild
public void doBuild(ContainerModel model, org.w3c.dom.Element spec, ConfigModelContext modelContext)
Description copied from class:ConfigModelBuilder
Convenience 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.AbstractConfigProducer, org.w3c.dom.Element)
. Implement this method to build a config model.- Specified by:
doBuild
in classConfigModelBuilder<ContainerModel>
spec
- The XML element that this builder should handle.modelContext
- A model context that contains the application package and other data needed by the config model constructor.
-
addStatusHandlers
protected void addStatusHandlers(ApplicationContainerCluster cluster, boolean isHostedVespa)
-
isContainerTag
public static boolean isContainerTag(org.w3c.dom.Element element)
-
-