Class ModelContextImpl

java.lang.Object
com.yahoo.vespa.config.server.deploy.ModelContextImpl
All Implemented Interfaces:
com.yahoo.config.model.api.ModelContext

public class ModelContextImpl extends Object implements com.yahoo.config.model.api.ModelContext
Implementation of ModelContext for configserver.
Author:
Ulf Lilleengen
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
    static class 
     

    Nested classes/interfaces inherited from interface com.yahoo.config.model.api.ModelContext

    com.yahoo.config.model.api.ModelContext.ModelFeatureFlag
  • Constructor Summary

    Constructors
    Constructor
    Description
    ModelContextImpl(com.yahoo.config.application.api.ApplicationPackage applicationPackage, Optional<com.yahoo.config.model.api.Model> previousModel, com.yahoo.config.application.api.DeployLogger deployLogger, com.yahoo.config.model.api.ConfigDefinitionRepo configDefinitionRepo, com.yahoo.config.application.api.FileRegistry fileRegistry, ExecutorService executor, Optional<? extends com.yahoo.config.model.api.Reindexing> reindexing, com.yahoo.config.model.api.HostProvisioner hostProvisioner, com.yahoo.config.model.api.Provisioned provisioned, com.yahoo.config.model.api.ModelContext.Properties properties, Optional<File> appDir, com.yahoo.config.model.api.OnnxModelCost onnxModelCost, Optional<com.yahoo.config.provision.DockerImage> wantedDockerImageRepository, com.yahoo.component.Version modelVespaVersion, com.yahoo.component.Version wantedNodeVespaVersion)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    com.yahoo.config.application.api.ApplicationPackage
     
    com.yahoo.config.model.api.ConfigDefinitionRepo
     
    com.yahoo.config.application.api.DeployLogger
     
     
    com.yahoo.config.application.api.FileRegistry
     
    com.yahoo.config.model.api.HostProvisioner
    Returns the host provisioner to use, or empty to use the default provisioner, creating hosts from the application package defined hosts
    com.yahoo.component.Version
     
    com.yahoo.config.model.api.OnnxModelCost
     
    Optional<com.yahoo.config.model.api.Model>
     
    com.yahoo.config.model.api.ModelContext.Properties
     
    com.yahoo.config.model.api.Provisioned
     
    Optional<? extends com.yahoo.config.model.api.Reindexing>
     
    Optional<com.yahoo.config.provision.DockerImage>
     
    com.yahoo.component.Version
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ModelContextImpl

      public ModelContextImpl(com.yahoo.config.application.api.ApplicationPackage applicationPackage, Optional<com.yahoo.config.model.api.Model> previousModel, com.yahoo.config.application.api.DeployLogger deployLogger, com.yahoo.config.model.api.ConfigDefinitionRepo configDefinitionRepo, com.yahoo.config.application.api.FileRegistry fileRegistry, ExecutorService executor, Optional<? extends com.yahoo.config.model.api.Reindexing> reindexing, com.yahoo.config.model.api.HostProvisioner hostProvisioner, com.yahoo.config.model.api.Provisioned provisioned, com.yahoo.config.model.api.ModelContext.Properties properties, Optional<File> appDir, com.yahoo.config.model.api.OnnxModelCost onnxModelCost, Optional<com.yahoo.config.provision.DockerImage> wantedDockerImageRepository, com.yahoo.component.Version modelVespaVersion, com.yahoo.component.Version wantedNodeVespaVersion)
  • Method Details

    • applicationPackage

      public com.yahoo.config.application.api.ApplicationPackage applicationPackage()
      Specified by:
      applicationPackage in interface com.yahoo.config.model.api.ModelContext
    • previousModel

      public Optional<com.yahoo.config.model.api.Model> previousModel()
      Specified by:
      previousModel in interface com.yahoo.config.model.api.ModelContext
    • getHostProvisioner

      public com.yahoo.config.model.api.HostProvisioner getHostProvisioner()
      Returns the host provisioner to use, or empty to use the default provisioner, creating hosts from the application package defined hosts
      Specified by:
      getHostProvisioner in interface com.yahoo.config.model.api.ModelContext
    • provisioned

      public com.yahoo.config.model.api.Provisioned provisioned()
      Specified by:
      provisioned in interface com.yahoo.config.model.api.ModelContext
    • deployLogger

      public com.yahoo.config.application.api.DeployLogger deployLogger()
      Specified by:
      deployLogger in interface com.yahoo.config.model.api.ModelContext
    • configDefinitionRepo

      public com.yahoo.config.model.api.ConfigDefinitionRepo configDefinitionRepo()
      Specified by:
      configDefinitionRepo in interface com.yahoo.config.model.api.ModelContext
    • getFileRegistry

      public com.yahoo.config.application.api.FileRegistry getFileRegistry()
      Specified by:
      getFileRegistry in interface com.yahoo.config.model.api.ModelContext
    • getExecutor

      public ExecutorService getExecutor()
      Specified by:
      getExecutor in interface com.yahoo.config.model.api.ModelContext
    • reindexing

      public Optional<? extends com.yahoo.config.model.api.Reindexing> reindexing()
      Specified by:
      reindexing in interface com.yahoo.config.model.api.ModelContext
    • properties

      public com.yahoo.config.model.api.ModelContext.Properties properties()
      Specified by:
      properties in interface com.yahoo.config.model.api.ModelContext
    • appDir

      public Optional<File> appDir()
      Specified by:
      appDir in interface com.yahoo.config.model.api.ModelContext
    • onnxModelCost

      public com.yahoo.config.model.api.OnnxModelCost onnxModelCost()
      Specified by:
      onnxModelCost in interface com.yahoo.config.model.api.ModelContext
    • wantedDockerImageRepo

      public Optional<com.yahoo.config.provision.DockerImage> wantedDockerImageRepo()
      Specified by:
      wantedDockerImageRepo in interface com.yahoo.config.model.api.ModelContext
    • modelVespaVersion

      public com.yahoo.component.Version modelVespaVersion()
      Specified by:
      modelVespaVersion in interface com.yahoo.config.model.api.ModelContext
    • wantedNodeVespaVersion

      public com.yahoo.component.Version wantedNodeVespaVersion()
      Specified by:
      wantedNodeVespaVersion in interface com.yahoo.config.model.api.ModelContext