@Override public DeploymentPlanBuilder andRemoveUndeployed() { DeploymentSetPlanImpl currentSet = getCurrentDeploymentSetPlan(); if (currentSet.hasServerGroupPlans()) { throw MESSAGES.cannotAddDeploymentAction(); } DeploymentActionImpl mod = DeploymentActionImpl.getRemoveAction(replacementModification.getReplacedDeploymentUnitUniqueName()); DeploymentSetPlanImpl newSet = currentSet.addAction(mod); return new DeploymentPlanBuilderImpl(this, newSet); } }
@Override public DeploymentPlanBuilder andRemoveUndeployed() { DeploymentSetPlanImpl currentSet = getCurrentDeploymentSetPlan(); if (currentSet.hasServerGroupPlans()) { throw ControllerClientLogger.ROOT_LOGGER.cannotAddDeploymentAction(); } DeploymentActionImpl mod = DeploymentActionImpl.getRemoveAction(replacementModification.getReplacedDeploymentUnitUniqueName()); DeploymentSetPlanImpl newSet = currentSet.addAction(mod); return new DeploymentPlanBuilderImpl(this, newSet); } }