Class DeploymentSpec.DeclaredZone

  • Enclosing class:
    DeploymentSpec

    public static class DeploymentSpec.DeclaredZone
    extends DeploymentSpec.Step
    A deployment step which is to run deployment in a particular zone
    • Constructor Detail

      • DeclaredZone

        public DeclaredZone​(com.yahoo.config.provision.Environment environment)
      • DeclaredZone

        public DeclaredZone​(com.yahoo.config.provision.Environment environment,
                            Optional<com.yahoo.config.provision.RegionName> region,
                            boolean active,
                            Optional<com.yahoo.config.provision.AthenzService> athenzService,
                            Optional<String> testerFlavor)
    • Method Detail

      • environment

        public com.yahoo.config.provision.Environment environment()
      • region

        public Optional<com.yahoo.config.provision.RegionName> region()
        The region name, or empty if not declared
      • active

        public boolean active()
        Returns whether this zone should receive production traffic
      • athenzService

        public Optional<com.yahoo.config.provision.AthenzService> athenzService()
      • concerns

        public boolean concerns​(com.yahoo.config.provision.Environment environment,
                                Optional<com.yahoo.config.provision.RegionName> region)
        Description copied from class: DeploymentSpec.Step
        Returns whether this step specifies the given environment, and, optionally, if this step specifies a region, whether this is also the given region.
        Specified by:
        concerns in class DeploymentSpec.Step
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object