Package com.yahoo.config.application.api
Class DeploymentSpec.Step
- java.lang.Object
-
- com.yahoo.config.application.api.DeploymentSpec.Step
-
- Direct Known Subclasses:
DeploymentSpec.DeclaredTest
,DeploymentSpec.DeclaredZone
,DeploymentSpec.Delay
,DeploymentSpec.Steps
- Enclosing class:
- DeploymentSpec
public abstract static class DeploymentSpec.Step extends java.lang.Object
A deployment step
-
-
Constructor Summary
Constructors Constructor Description Step()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
concerns(com.yahoo.config.provision.Environment environment)
Returns whether this step specifies the given environment.abstract boolean
concerns(com.yahoo.config.provision.Environment environment, java.util.Optional<com.yahoo.config.provision.RegionName> region)
Returns whether this step specifies the given environment, and, optionally, region.java.time.Duration
delay()
The delay introduced by this step (beyond the time it takes to execute the step).boolean
deploysTo(com.yahoo.config.provision.Environment environment, java.util.Optional<com.yahoo.config.provision.RegionName> region)
Returns whether this step specifies the given environment, and, optionally, region.boolean
isOrdered()
Returns whether the nested steps in this, if any, should be performed in declaration order.boolean
isTest()
Returns whether this step is a test step.java.util.List<DeploymentSpec.Step>
steps()
Returns any steps nested in this.java.util.List<DeploymentSpec.DeclaredZone>
zones()
Returns the zones deployed to in this step.
-
-
-
Method Detail
-
concerns
public final boolean concerns(com.yahoo.config.provision.Environment environment)
Returns whether this step specifies the given environment.
-
deploysTo
public boolean deploysTo(com.yahoo.config.provision.Environment environment, java.util.Optional<com.yahoo.config.provision.RegionName> region)
Returns whether this step specifies the given environment, and, optionally, region.
-
concerns
public abstract boolean concerns(com.yahoo.config.provision.Environment environment, java.util.Optional<com.yahoo.config.provision.RegionName> region)
Returns whether this step specifies the given environment, and, optionally, region.
-
zones
public java.util.List<DeploymentSpec.DeclaredZone> zones()
Returns the zones deployed to in this step.
-
delay
public java.time.Duration delay()
The delay introduced by this step (beyond the time it takes to execute the step).
-
steps
public java.util.List<DeploymentSpec.Step> steps()
Returns any steps nested in this.
-
isTest
public boolean isTest()
Returns whether this step is a test step.
-
isOrdered
public boolean isOrdered()
Returns whether the nested steps in this, if any, should be performed in declaration order.
-
-