Class DeploymentInstanceSpec


  • public class DeploymentInstanceSpec
    extends DeploymentSpec.Steps
    The deployment spec for an application instance
    Author:
    bratseth
    • Method Detail

      • name

        public com.yahoo.config.provision.InstanceName name()
      • upgradePolicy

        public DeploymentSpec.UpgradePolicy upgradePolicy()
        Returns the upgrade policy of this, which is defaultPolicy if none is specified
      • upgradeRevision

        public DeploymentSpec.UpgradeRevision upgradeRevision()
        Returns the upgrade revision strategy of this, which is separate if none is specified
      • upgradeRollout

        public DeploymentSpec.UpgradeRollout upgradeRollout()
        Returns the upgrade rollout strategy of this, which is separate if none is specified
      • globalServiceId

        public Optional<String> globalServiceId()
        Returns the ID of the service to expose through global routing, if present
      • canUpgradeAt

        public boolean canUpgradeAt​(Instant instant)
        Returns whether the instances in this step can upgrade at the given instant
      • canChangeRevisionAt

        public boolean canChangeRevisionAt​(Instant instant)
        Returns whether an application revision change for these instances can occur at the given instant
      • athenzService

        public Optional<com.yahoo.config.provision.AthenzService> athenzService​(com.yahoo.config.provision.Environment environment,
                                                                                com.yahoo.config.provision.RegionName region)
        Returns the athenz service for environment/region if configured, defaulting to that of the instance
      • notifications

        public Notifications notifications()
        Returns the notification configuration of these instances
      • endpoints

        public List<Endpoint> endpoints()
        Returns the rotations configuration of these instances
      • deploysTo

        public boolean deploysTo​(com.yahoo.config.provision.Environment environment,
                                 com.yahoo.config.provision.RegionName region)
        Returns whether this instance deploys to the given zone, either implicitly or explicitly