Class DeploymentSpec


  • public class DeploymentSpec
    extends Object
    Specifies the environments and regions to which an application should be deployed. This may be used both for inspection as part of an application model and to answer queries about deployment from the command line. A main method is included for the latter usage. A deployment consists of a number of steps executed in the order listed in deployment xml, as well as some additional settings. This is immutable.
    Author:
    bratseth
    • Field Detail

      • empty

        public static final DeploymentSpec empty
        The empty deployment spec, specifying no zones or rotation, and defaults for all settings
    • Method Detail

      • majorVersion

        public Optional<Integer> majorVersion()
        Returns the major version this application is pinned to, or empty (default) to allow all major versions
      • steps

        public List<DeploymentSpec.Step> steps()
        Returns the deployment steps of this in the order they will be performed
      • athenzDomain

        public Optional<com.yahoo.config.provision.AthenzDomain> athenzDomain()
        Returns the Athenz domain set on the root tag, if any
      • athenzService

        public Optional<com.yahoo.config.provision.AthenzService> athenzService()
        Returns the Athenz service set on the root tag, if any
      • xmlForm

        public String xmlForm()
        Returns the XML form of this spec, or null if it was not created by fromXml, nor is empty
      • instance

        public Optional<DeploymentInstanceSpec> instance​(com.yahoo.config.provision.InstanceName name)
        Returns the instance step containing the given instance name
      • requireInstance

        public DeploymentInstanceSpec requireInstance​(com.yahoo.config.provision.InstanceName name)
      • instanceNames

        public List<com.yahoo.config.provision.InstanceName> instanceNames()
        Returns the instance names declared in this
      • endpoints

        public List<Endpoint> endpoints()
        Returns the application-level endpoints of this, if any
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object