Class DeploymentInstanceSpec


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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<com.yahoo.config.provision.AthenzDomain> athenzDomain()
      Returns the athenz domain if configured
      java.util.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
      boolean canChangeRevisionAt​(java.time.Instant instant)
      Returns whether an application revision change for these instances can occur at the given instant
      boolean canUpgradeAt​(java.time.Instant instant)
      Returns whether the instances in this step can upgrade at the given instant
      java.util.List<DeploymentSpec.ChangeBlocker> changeBlocker()
      Returns time windows where upgrades are disallowed for these instances
      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
      java.util.List<Endpoint> endpoints()
      Returns the rotations configuration of these instances
      boolean equals​(java.lang.Object o)  
      java.util.Optional<java.lang.String> globalServiceId()
      Returns the ID of the service to expose through global routing, if present
      int hashCode()  
      com.yahoo.config.provision.InstanceName name()  
      Notifications notifications()
      Returns the notification configuration of these instances
      java.lang.String toString()  
      DeploymentSpec.UpgradePolicy upgradePolicy()
      Returns the upgrade policy of this, which is defaultPolicy if none is specified
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • 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
      • changeBlocker

        public java.util.List<DeploymentSpec.ChangeBlocker> changeBlocker()
        Returns time windows where upgrades are disallowed for these instances
      • globalServiceId

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

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

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

        public java.util.Optional<com.yahoo.config.provision.AthenzDomain> athenzDomain()
        Returns the athenz domain if configured
      • athenzService

        public java.util.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 java.util.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