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
  • Constructor Details

  • Method Details

    • 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 class ConfigModel
      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 class ConfigModel
      Parameters:
      configModelRepo - The ConfigModelRepo of the VespaModel
    • containerClusters

      public static Collection<ContainerCluster<?>> containerClusters(ConfigModelRepo models)