Class DeployState

java.lang.Object
com.yahoo.config.model.deploy.DeployState
All Implemented Interfaces:
ConfigDefinitionStore

public class DeployState extends Object implements ConfigDefinitionStore
Contains various state during deploy that should be available in all builders of a ConfigModel
Author:
Ulf Lilleengen
  • Method Details

    • createTestState

      public static DeployState createTestState()
    • createTestState

      public static DeployState createTestState(com.yahoo.config.application.api.DeployLogger testLogger)
    • 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

      public final RankProfileRegistry 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 interface ConfigDefinitionStore
    • getApplicationPackage

      public com.yahoo.config.application.api.ApplicationPackage getApplicationPackage()
    • getSchemas

      public List<Schema> getSchemas()
    • getDocumentModel

      public DocumentModel 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

      public Optional<com.yahoo.config.model.api.Model> getPreviousModel()
    • isHosted

      public boolean isHosted()
    • getEndpoints

      public Set<com.yahoo.config.model.api.ContainerEndpoint> getEndpoints()
    • zone

      public com.yahoo.config.provision.Zone zone()
      Returns the zone in which this is currently running
    • getQueryProfiles

      public QueryProfiles getQueryProfiles()
    • getSemanticRules

      public SemanticRules 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

      public ExecutorService getExecutor()
    • getWantedNodeVespaVersion

      public com.yahoo.component.Version getWantedNodeVespaVersion()
    • getWantedDockerImageRepo

      public Optional<com.yahoo.config.provision.DockerImage> getWantedDockerImageRepo()
    • now

      public Instant now()
    • endpointCertificateSecrets

      public Optional<com.yahoo.config.model.api.EndpointCertificateSecrets> endpointCertificateSecrets()
    • tlsClientAuthority

      public Optional<String> tlsClientAuthority()
    • reindexing

      public Optional<com.yahoo.config.model.api.Reindexing> reindexing()
    • isHostedTenantApplication

      public boolean isHostedTenantApplication(ConfigModelContext.ApplicationType type)