Class ModelContextImpl
java.lang.Object
com.yahoo.vespa.config.server.deploy.ModelContextImpl
- All Implemented Interfaces:
com.yahoo.config.model.api.ModelContext
Implementation of
ModelContext
for configserver.- Author:
- Ulf Lilleengen
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
Nested classes/interfaces inherited from interface com.yahoo.config.model.api.ModelContext
com.yahoo.config.model.api.ModelContext.ModelFeatureFlag
-
Constructor Summary
ConstructorsConstructorDescriptionModelContextImpl
(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 TypeMethodDescriptionappDir()
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 hostscom.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
-
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 interfacecom.yahoo.config.model.api.ModelContext
-
previousModel
- Specified by:
previousModel
in interfacecom.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 interfacecom.yahoo.config.model.api.ModelContext
-
provisioned
public com.yahoo.config.model.api.Provisioned provisioned()- Specified by:
provisioned
in interfacecom.yahoo.config.model.api.ModelContext
-
deployLogger
public com.yahoo.config.application.api.DeployLogger deployLogger()- Specified by:
deployLogger
in interfacecom.yahoo.config.model.api.ModelContext
-
configDefinitionRepo
public com.yahoo.config.model.api.ConfigDefinitionRepo configDefinitionRepo()- Specified by:
configDefinitionRepo
in interfacecom.yahoo.config.model.api.ModelContext
-
getFileRegistry
public com.yahoo.config.application.api.FileRegistry getFileRegistry()- Specified by:
getFileRegistry
in interfacecom.yahoo.config.model.api.ModelContext
-
getExecutor
- Specified by:
getExecutor
in interfacecom.yahoo.config.model.api.ModelContext
-
reindexing
- Specified by:
reindexing
in interfacecom.yahoo.config.model.api.ModelContext
-
properties
public com.yahoo.config.model.api.ModelContext.Properties properties()- Specified by:
properties
in interfacecom.yahoo.config.model.api.ModelContext
-
appDir
- Specified by:
appDir
in interfacecom.yahoo.config.model.api.ModelContext
-
onnxModelCost
public com.yahoo.config.model.api.OnnxModelCost onnxModelCost()- Specified by:
onnxModelCost
in interfacecom.yahoo.config.model.api.ModelContext
-
wantedDockerImageRepo
- Specified by:
wantedDockerImageRepo
in interfacecom.yahoo.config.model.api.ModelContext
-
modelVespaVersion
public com.yahoo.component.Version modelVespaVersion()- Specified by:
modelVespaVersion
in interfacecom.yahoo.config.model.api.ModelContext
-
wantedNodeVespaVersion
public com.yahoo.component.Version wantedNodeVespaVersion()- Specified by:
wantedNodeVespaVersion
in interfacecom.yahoo.config.model.api.ModelContext
-