public class DeploymentScenario
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.List<Deployment> |
deployments |
Constructor and Description |
---|
DeploymentScenario() |
Modifier and Type | Method and Description |
---|---|
DeploymentScenario |
addDeployment(DeploymentDescription deployment) |
private java.util.List<Deployment> |
archiveDeployments(java.util.List<Deployment> deployments)
Filters the List of Deployments and returns the ones that are Archive deployments.
|
private java.util.List<Deployment> |
defaultDeployments(java.util.List<Deployment> deployments)
Filters the List of Deployments and returns the ones that are DEFAULT deployments.
|
java.util.List<Deployment> |
deployedDeployments() |
java.util.List<Deployment> |
deployedDeploymentsInUnDeployOrder() |
Deployment |
deployment(DeploymentTargetDescription target)
Get a
DeploymentDescription with a specific name if it exists. |
java.util.List<Deployment> |
deployments() |
java.util.List<Deployment> |
deploymentsInError() |
private Deployment |
findDefaultDeployment() |
private Deployment |
findMatchingDeployment(DeploymentTargetDescription target)
Validation, names except DEFAULT should be unique.
|
private java.util.List<Deployment> |
findMatchingDeployments(DeploymentTargetDescription target) |
private java.util.List<Deployment> |
managedDeployments(java.util.List<Deployment> deployments)
Filters the List of Deployments and returns the ones that are Managed deployments.
|
java.util.List<Deployment> |
managedDeploymentsInDeployOrder() |
java.util.Set<ProtocolDescription> |
protocols() |
java.util.List<Deployment> |
startupDeploymentsFor(TargetDescription target)
Get all
DeploymentDescription defined to be deployed during Test startup for a specific TargetDescription ordered. |
java.util.Set<TargetDescription> |
targets() |
private void |
validateNotSameArchiveAndSameTarget(DeploymentDescription deployment)
Validate that a deployment with a archive of the same name does not have the same taget
|
private void |
validateNotSameNameAndTypeOfDeployment(DeploymentDescription deployment)
Validate that a deployment of same type is not already added
|
private final java.util.List<Deployment> deployments
public DeploymentScenario addDeployment(DeploymentDescription deployment)
public java.util.Set<TargetDescription> targets()
public java.util.Set<ProtocolDescription> protocols()
public Deployment deployment(DeploymentTargetDescription target)
DeploymentDescription
with a specific name if it exists.target
- The name of the DeploymentDescription
public java.util.List<Deployment> managedDeploymentsInDeployOrder()
public java.util.List<Deployment> deployedDeploymentsInUnDeployOrder()
public java.util.List<Deployment> startupDeploymentsFor(TargetDescription target)
DeploymentDescription
defined to be deployed during Test startup for a specific TargetDescription
ordered.target
- The Target to filter onDeploymentDescription
. Will return a empty list if none are found.public java.util.List<Deployment> deploymentsInError()
public java.util.List<Deployment> deployedDeployments()
public java.util.List<Deployment> deployments()
private Deployment findDefaultDeployment()
private java.util.List<Deployment> managedDeployments(java.util.List<Deployment> deployments)
deployments
- List to filterprivate java.util.List<Deployment> defaultDeployments(java.util.List<Deployment> deployments)
deployments
- List to filterprivate java.util.List<Deployment> archiveDeployments(java.util.List<Deployment> deployments)
deployments
- List to filterprivate Deployment findMatchingDeployment(DeploymentTargetDescription target)
target
- private java.util.List<Deployment> findMatchingDeployments(DeploymentTargetDescription target)
private void validateNotSameNameAndTypeOfDeployment(DeploymentDescription deployment)
deployment
- private void validateNotSameArchiveAndSameTarget(DeploymentDescription deployment)
deployment
-