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
A deployment step which is to run deployment in a particular zone
-
Constructor Summary
ConstructorDescriptionDeclaredZone
(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, Optional<com.yahoo.config.provision.CloudAccount> cloudAccount) -
Method Summary
Modifier and TypeMethodDescriptionboolean
active()
Returns whether this zone should receive production trafficOptional<com.yahoo.config.provision.AthenzService>
Optional<com.yahoo.config.provision.CloudAccount>
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
boolean
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 declaredtoString()
zones()
Returns the zones deployed to in this step.Methods inherited from class com.yahoo.config.application.api.DeploymentSpec.Step
concerns, delay, isOrdered, steps
-
Constructor Details
-
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, Optional<com.yahoo.config.provision.CloudAccount> cloudAccount)
-
-
Method Details
-
environment
public com.yahoo.config.provision.Environment environment() -
region
The region name, or empty if not declared -
active
public boolean active()Returns whether this zone should receive production traffic -
testerFlavor
-
athenzService
-
cloudAccount
-
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
-
hashCode
public int hashCode() -
equals
-
toString
-