Package com.yahoo.vespa.model.content
Class Content
- java.lang.Object
-
- com.yahoo.config.model.ConfigModel
-
- com.yahoo.vespa.model.content.Content
-
public class Content extends ConfigModel
The config model from a content tag in services. This consists mostly of a ContentCluster.- Author:
- baldersheim
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Content.Builder
-
Constructor Summary
Constructors Constructor Description Content(ConfigModelContext modelContext, AdminModel adminModel, java.util.Collection<ContainerModel> containers)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ContentCluster
getCluster()
static java.util.List<Content>
getContent(ConfigModelRepo pc)
static java.util.List<ContentCluster>
getContentClusters(ConfigModelRepo pc)
static java.util.List<AbstractSearchCluster>
getSearchClusters(ConfigModelRepo pc)
java.util.Optional<ApplicationContainerCluster>
ownedIndexingCluster()
Returns indexing cluster implicitly created by this, or empty if an explicit cluster is used (or if called before the build phase)void
prepare(ConfigModelRepo models, DeployState deployState)
Prepares this model to start serving config requests, possibly using properties of other models.-
Methods inherited from class com.yahoo.config.model.ConfigModel
getId, initialize, isServing
-
-
-
-
Constructor Detail
-
Content
public Content(ConfigModelContext modelContext, AdminModel adminModel, java.util.Collection<ContainerModel> containers)
-
-
Method Detail
-
getCluster
public ContentCluster getCluster()
-
ownedIndexingCluster
public java.util.Optional<ApplicationContainerCluster> ownedIndexingCluster()
Returns indexing cluster implicitly created by this, or empty if an explicit cluster is used (or if called before the build phase)
-
getContent
public static java.util.List<Content> getContent(ConfigModelRepo pc)
-
getSearchClusters
public static java.util.List<AbstractSearchCluster> getSearchClusters(ConfigModelRepo pc)
-
getContentClusters
public static java.util.List<ContentCluster> getContentClusters(ConfigModelRepo pc)
-
prepare
public void prepare(ConfigModelRepo models, DeployState deployState)
Description copied from class:ConfigModel
Prepares this model to start serving config requests, possibly using properties of other models. The framework will call this method after models have been built. The model should finalize its configurations that depend on other models in this step. This default implementation does nothing.- Overrides:
prepare
in classConfigModel
- Parameters:
models
- The ConfigModelRepo of the system model
-
-