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 theDeploymentAction
s associated with the deployment set plan.DeploymentPlan
getDeploymentPlan()
Gets the deployment plan that lead to this result.UUID
getId()
Gets the unique id of the deployment plan.InvalidDeploymentPlanException
getInvalidDeploymentPlanException()
Gets the exception describing the problem with a deployment plan that is notvalid
.Map<String,ServerGroupDeploymentPlanResult>
getServerGroupResults()
Gets the results for each server group.boolean
isValid()
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:DeploymentPlanResult
Gets the results of theDeploymentAction
s associated with the deployment set plan.- Specified by:
getDeploymentActionResults
in interfaceDeploymentPlanResult
- Returns:
- map of deployment action results, keyed by
deployment action id
-
getId
public UUID getId()
Description copied from interface:DeploymentPlanResult
Gets the unique id of the deployment plan.- Specified by:
getId
in interfaceDeploymentPlanResult
- Returns:
- the id. Will not be
null
-
getDeploymentPlan
public DeploymentPlan getDeploymentPlan()
Description copied from interface:DeploymentPlanResult
Gets the deployment plan that lead to this result.- Specified by:
getDeploymentPlan
in interfaceDeploymentPlanResult
- Returns:
- the deployment plan. Will not be
null
-
getInvalidDeploymentPlanException
public InvalidDeploymentPlanException getInvalidDeploymentPlanException()
Description copied from interface:DeploymentPlanResult
Gets the exception describing the problem with a deployment plan that is notvalid
.- Specified by:
getInvalidDeploymentPlanException
in interfaceDeploymentPlanResult
- Returns:
- the exception or
null
if the plan is valid
-
isValid
public boolean isValid()
Description copied from interface:DeploymentPlanResult
Gets whether the deployment plan was valid. Iffalse
seeDeploymentPlanResult.getInvalidDeploymentPlanException()
to for more information on how the plan was invalid.- Specified by:
isValid
in interfaceDeploymentPlanResult
- Returns:
true
if the plan was valid;false
otherwise
-
getServerGroupResults
public Map<String,ServerGroupDeploymentPlanResult> getServerGroupResults()
Description copied from interface:DeploymentPlanResult
Gets the results for each server group.- Specified by:
getServerGroupResults
in interfaceDeploymentPlanResult
- Returns:
- map of server group results, keyed by server group name
-
-