Package com.yahoo.vespa.model.container
Class ContainerModel
- java.lang.Object
-
- com.yahoo.config.model.ConfigModel
-
- com.yahoo.vespa.model.container.ContainerModel
-
public class ContainerModel extends ConfigModel
A model of a container cluster. TODO: Add type parameter for CLUSTER instead of using wildcard '? extends Container'- Author:
- Tony Vaagenes
-
-
Field Summary
Fields Modifier and Type Field Description static String
DOCPROC_RESERVED_NAME
-
Constructor Summary
Constructors Constructor Description ContainerModel(ConfigModelContext context)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Collection<ContainerCluster<?>>
containerClusters(ConfigModelRepo models)
ContainerCluster<? extends Container>
getCluster()
void
initialize(ConfigModelRepo configModelRepo)
Initializes this model.void
prepare(ConfigModelRepo plugins, DeployState deployState)
Prepares this model to start serving config requests, possibly using properties of other models.void
setCluster(ContainerCluster<? extends Container> containerCluster)
-
Methods inherited from class com.yahoo.config.model.ConfigModel
getId, isServing
-
-
-
-
Field Detail
-
DOCPROC_RESERVED_NAME
public static final String DOCPROC_RESERVED_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ContainerModel
public ContainerModel(ConfigModelContext context)
-
-
Method Detail
-
setCluster
public void setCluster(ContainerCluster<? extends Container> containerCluster)
-
getCluster
public ContainerCluster<? extends Container> getCluster()
-
prepare
public void prepare(ConfigModelRepo plugins, 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:
plugins
- The ConfigModelRepo of the system model
-
initialize
public void initialize(ConfigModelRepo configModelRepo)
Description copied from class:ConfigModel
Initializes this model. All inter-model independent initialization is done by implementing this method. The model will be made available to dependent models by the framework when this returns.TODO: Remove this method, as this is now done by the model builders. This default implementation does nothing.
- Overrides:
initialize
in classConfigModel
- Parameters:
configModelRepo
- The ConfigModelRepo of the VespaModel
-
containerClusters
public static Collection<ContainerCluster<?>> containerClusters(ConfigModelRepo models)
-
-