Package com.yahoo.config.model.deploy
Class DeployState
java.lang.Object
com.yahoo.config.model.deploy.DeployState
- All Implemented Interfaces:
ConfigDefinitionStore
Contains various state during deploy that should be available in all builders of a
ConfigModel
- Author:
- Ulf Lilleengen
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic DeployState
static DeployState
createTestState
(com.yahoo.config.application.api.ApplicationPackage applicationPackage) static DeployState
createTestState
(com.yahoo.config.application.api.DeployLogger testLogger) Optional<com.yahoo.config.model.api.EndpointCertificateSecrets>
com.yahoo.config.model.api.ModelContext.FeatureFlags
boolean
com.yahoo.config.application.api.ApplicationPackage
final Optional<com.yahoo.vespa.config.ConfigDefinition>
getConfigDefinition
(com.yahoo.vespa.config.ConfigDefinitionKey defKey) Returns a config definition, or empty if the config definition is not found.static com.yahoo.config.model.api.HostProvisioner
getDefaultModelHostProvisioner
(com.yahoo.config.application.api.ApplicationPackage applicationPackage) com.yahoo.config.application.api.DeployLogger
Set<com.yahoo.config.model.api.ContainerEndpoint>
com.yahoo.config.application.api.FileRegistry
ai.vespa.rankingexpression.importer.configmodelview.ImportedMlModels
The (machine learned) models imported from the models/ directory, as an unmodifiable map indexed by model nameOptional<com.yahoo.config.model.api.Model>
com.yahoo.config.model.api.ModelContext.Properties
com.yahoo.config.model.api.HostProvisioner
com.yahoo.component.Version
Optional<com.yahoo.config.provision.DockerImage>
com.yahoo.component.Version
boolean
isHosted()
boolean
now()
com.yahoo.config.model.api.Provisioned
final RankProfileRegistry
Get the global rank profile registry for this application.Optional<com.yahoo.config.model.api.Reindexing>
com.yahoo.config.application.api.ValidationOverrides
Returns the validation overrides of this.com.yahoo.config.provision.Zone
zone()
Returns the zone in which this is currently running
-
Method Details
-
createTestState
-
createTestState
-
createTestState
public static DeployState createTestState(com.yahoo.config.application.api.ApplicationPackage applicationPackage) -
getDefaultModelHostProvisioner
public static com.yahoo.config.model.api.HostProvisioner getDefaultModelHostProvisioner(com.yahoo.config.application.api.ApplicationPackage applicationPackage) -
provisioned
public com.yahoo.config.model.api.Provisioned provisioned() -
rankProfileRegistry
Get the global rank profile registry for this application. -
validationOverrides
public com.yahoo.config.application.api.ValidationOverrides validationOverrides()Returns the validation overrides of this. This is never null -
getConfigDefinition
public final Optional<com.yahoo.vespa.config.ConfigDefinition> getConfigDefinition(com.yahoo.vespa.config.ConfigDefinitionKey defKey) Description copied from interface:ConfigDefinitionStore
Returns a config definition, or empty if the config definition is not found.- Specified by:
getConfigDefinition
in interfaceConfigDefinitionStore
-
getApplicationPackage
public com.yahoo.config.application.api.ApplicationPackage getApplicationPackage() -
getSchemas
-
getDocumentModel
-
getDeployLogger
public com.yahoo.config.application.api.DeployLogger getDeployLogger() -
getAccessLoggingEnabledByDefault
public boolean getAccessLoggingEnabledByDefault() -
getFileRegistry
public com.yahoo.config.application.api.FileRegistry getFileRegistry() -
getProvisioner
public com.yahoo.config.model.api.HostProvisioner getProvisioner() -
getProperties
public com.yahoo.config.model.api.ModelContext.Properties getProperties() -
featureFlags
public com.yahoo.config.model.api.ModelContext.FeatureFlags featureFlags() -
getVespaVersion
public com.yahoo.component.Version getVespaVersion() -
getPreviousModel
-
isHosted
public boolean isHosted() -
getEndpoints
-
zone
public com.yahoo.config.provision.Zone zone()Returns the zone in which this is currently running -
getQueryProfiles
-
getSemanticRules
-
getImportedModels
public ai.vespa.rankingexpression.importer.configmodelview.ImportedMlModels getImportedModels()The (machine learned) models imported from the models/ directory, as an unmodifiable map indexed by model name -
getExecutor
-
getWantedNodeVespaVersion
public com.yahoo.component.Version getWantedNodeVespaVersion() -
getWantedDockerImageRepo
-
now
-
endpointCertificateSecrets
-
tlsClientAuthority
-
reindexing
-
isHostedTenantApplication
-