Class DeploymentPlanResultImpl
- java.lang.Object
-
- org.jboss.as.controller.client.helpers.domain.impl.DeploymentPlanResultImpl
-
- All Implemented Interfaces:
DeploymentPlanResult
public class DeploymentPlanResultImpl extends Object implements DeploymentPlanResult
Default implementation ofDeploymentPlanResult.- Author:
- Brian Stansberry
-
-
Constructor Summary
Constructors Constructor Description DeploymentPlanResultImpl(DeploymentPlan plan, Map<UUID,DeploymentActionResult> results)DeploymentPlanResultImpl(DeploymentPlan plan, InvalidDeploymentPlanException invalidPlanException)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<UUID,DeploymentActionResult>getDeploymentActionResults()Gets the results of theDeploymentActions associated with the deployment set plan.DeploymentPlangetDeploymentPlan()Gets the deployment plan that lead to this result.UUIDgetId()Gets the unique id of the deployment plan.InvalidDeploymentPlanExceptiongetInvalidDeploymentPlanException()Gets the exception describing the problem with a deployment plan that is notvalid.Map<String,ServerGroupDeploymentPlanResult>getServerGroupResults()Gets the results for each server group.booleanisValid()Gets whether the deployment plan was valid.
-
-
-
Constructor Detail
-
DeploymentPlanResultImpl
public DeploymentPlanResultImpl(DeploymentPlan plan, Map<UUID,DeploymentActionResult> results)
-
DeploymentPlanResultImpl
public DeploymentPlanResultImpl(DeploymentPlan plan, InvalidDeploymentPlanException invalidPlanException)
-
-
Method Detail
-
getDeploymentActionResults
public Map<UUID,DeploymentActionResult> getDeploymentActionResults()
Description copied from interface:DeploymentPlanResultGets the results of theDeploymentActions associated with the deployment set plan.- Specified by:
getDeploymentActionResultsin interfaceDeploymentPlanResult- Returns:
- map of deployment action results, keyed by
deployment action id
-
getId
public UUID getId()
Description copied from interface:DeploymentPlanResultGets the unique id of the deployment plan.- Specified by:
getIdin interfaceDeploymentPlanResult- Returns:
- the id. Will not be
null
-
getDeploymentPlan
public DeploymentPlan getDeploymentPlan()
Description copied from interface:DeploymentPlanResultGets the deployment plan that lead to this result.- Specified by:
getDeploymentPlanin interfaceDeploymentPlanResult- Returns:
- the deployment plan. Will not be
null
-
getInvalidDeploymentPlanException
public InvalidDeploymentPlanException getInvalidDeploymentPlanException()
Description copied from interface:DeploymentPlanResultGets the exception describing the problem with a deployment plan that is notvalid.- Specified by:
getInvalidDeploymentPlanExceptionin interfaceDeploymentPlanResult- Returns:
- the exception or
nullif the plan is valid
-
isValid
public boolean isValid()
Description copied from interface:DeploymentPlanResultGets whether the deployment plan was valid. IffalseseeDeploymentPlanResult.getInvalidDeploymentPlanException()to for more information on how the plan was invalid.- Specified by:
isValidin interfaceDeploymentPlanResult- Returns:
trueif the plan was valid;falseotherwise
-
getServerGroupResults
public Map<String,ServerGroupDeploymentPlanResult> getServerGroupResults()
Description copied from interface:DeploymentPlanResultGets the results for each server group.- Specified by:
getServerGroupResultsin interfaceDeploymentPlanResult- Returns:
- map of server group results, keyed by server group name
-
-