Package com.yahoo.config.application.api
Class DeploymentSpec.DeclaredZone
- java.lang.Object
-
- com.yahoo.config.application.api.DeploymentSpec.Step
-
- com.yahoo.config.application.api.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 Summary
Constructors Constructor Description DeclaredZone(com.yahoo.config.provision.Environment environment)
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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
active()
Returns whether this zone should receive production trafficOptional<com.yahoo.config.provision.AthenzService>
athenzService()
boolean
concerns(com.yahoo.config.provision.Environment environment, Optional<com.yahoo.config.provision.RegionName> region)
Returns whether this step specifies the given environment, and, optionally, if this step specifies a region, whether this is also the given region.com.yahoo.config.provision.Environment
environment()
boolean
equals(Object o)
int
hashCode()
boolean
isTest()
Returns whether this step is a test step.Optional<com.yahoo.config.provision.RegionName>
region()
The region name, or empty if not declaredOptional<String>
testerFlavor()
String
toString()
List<DeploymentSpec.DeclaredZone>
zones()
Returns the zones deployed to in this step.-
Methods inherited from class com.yahoo.config.application.api.DeploymentSpec.Step
concerns, delay, isOrdered, steps
-
-
-
-
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()
-
zones
public List<DeploymentSpec.DeclaredZone> zones()
Description copied from class:DeploymentSpec.Step
Returns the zones deployed to in this step.- Overrides:
zones
in classDeploymentSpec.Step
-
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 classDeploymentSpec.Step
-
isTest
public boolean isTest()
Description copied from class:DeploymentSpec.Step
Returns whether this step is a test step.- Overrides:
isTest
in classDeploymentSpec.Step
-
-