Class DeploymentInstanceSpec


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

  • Method Details

    • name

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

      public com.yahoo.config.provision.Tags tags()
    • upgradePolicy

      public DeploymentSpec.UpgradePolicy upgradePolicy()
      Returns the upgrade policy of this, which is DeploymentSpec.UpgradePolicy.defaultPolicy by default
    • revisionTarget

      public DeploymentSpec.RevisionTarget revisionTarget()
      Returns the revision target choice of this, which is DeploymentSpec.RevisionTarget.latest by default
    • revisionChange

      public DeploymentSpec.RevisionChange revisionChange()
      Returns the revision change strategy of this, which is DeploymentSpec.RevisionChange.whenFailing by default
    • upgradeRollout

      public DeploymentSpec.UpgradeRollout upgradeRollout()
      Returns the upgrade rollout strategy of this, which is DeploymentSpec.UpgradeRollout.separate by default
    • minRisk

      public int minRisk()
      Minimum cumulative, enqueued risk required for a new revision to roll out to this instance. 0 by default.
    • maxRisk

      public int maxRisk()
      Maximum cumulative risk that will automatically roll out to this instance, as long as this is possible. 0 by default.
    • maxIdleHours

      public int maxIdleHours()
    • changeBlocker

      public List<DeploymentSpec.ChangeBlocker> changeBlocker()
      Returns time windows where upgrades are disallowed for these instances
    • 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
    • cloudAccount

      public Optional<com.yahoo.config.provision.CloudAccount> cloudAccount(com.yahoo.config.provision.Environment environment, Optional<com.yahoo.config.provision.RegionName> region)
      Returns the cloud account to use for given environment and region, if any
    • 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
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class DeploymentSpec.Steps
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class DeploymentSpec.Steps
    • toString

      public String toString()
      Overrides:
      toString in class DeploymentSpec.Steps