@Override public UUID getDeploymentActionId() { return deploymentAction.getId(); }
@Override public UUID getDeploymentActionId() { return deploymentAction.getId(); }
private void createDefaultResults(final Map<UUID, DeploymentActionResult> actionResults, final BasicDomainUpdateResult domainUpdateResult, final UpdateResultHandlerResponse resultHandlerResponse) { for (DeploymentAction deploymentAction : plan.getDeploymentActions()) { // Create the deployment action result final DeploymentActionResultImpl deploymentActionResult = new DeploymentActionResultImpl(deploymentAction, domainUpdateResult); // Update the action result with updates for each server for (ServerIdentity serverId : servers) { final ServerUpdateResultImpl serverUpdateResult = new ServerUpdateResultImpl(deploymentAction.getId(), serverId, resultHandlerResponse); deploymentActionResult.storeServerUpdateResult(serverId, serverUpdateResult); } actionResults.put(deploymentAction.getId(), deploymentActionResult); } } }
private void createDefaultResults(final Map<UUID, DeploymentActionResult> actionResults, final BasicDomainUpdateResult domainUpdateResult, final UpdateResultHandlerResponse resultHandlerResponse) { for (DeploymentAction deploymentAction : plan.getDeploymentActions()) { // Create the deployment action result final DeploymentActionResultImpl deploymentActionResult = new DeploymentActionResultImpl(deploymentAction, domainUpdateResult); // Update the action result with updates for each server for (ServerIdentity serverId : servers) { final ServerUpdateResultImpl serverUpdateResult = new ServerUpdateResultImpl(deploymentAction.getId(), serverId, resultHandlerResponse); deploymentActionResult.storeServerUpdateResult(serverId, serverUpdateResult); } actionResults.put(deploymentAction.getId(), deploymentActionResult); } } }
private String executeDeploymentPlan(DeploymentPlan plan, DeploymentAction deployAction) throws Exception { Future<DeploymentPlanResult> future = deploymentManagerDeprecated.execute(plan); DeploymentPlanResult planResult = future.get(); Map<String, ServerGroupDeploymentPlanResult> actionResults = planResult.getServerGroupResults(); for (Entry<String, ServerGroupDeploymentPlanResult> result : actionResults.entrySet()) { for (Entry<String, ServerDeploymentPlanResult> planServerResult : result.getValue().getServerResults().entrySet()) { ServerUpdateResult actionResult = planServerResult.getValue().getDeploymentActionResults() .get(deployAction.getId()); if (actionResult != null) { Exception deploymentException = (Exception) actionResult.getFailureResult(); if (deploymentException != null) throw deploymentException; } } } return deployAction.getDeploymentUnitUniqueName(); } }
private String executeDeploymentPlan(DeploymentPlan plan, DeploymentAction deployAction) throws Exception { Future<DeploymentPlanResult> future = deploymentManager.execute(plan); DeploymentPlanResult planResult = future.get(); Map<String, ServerGroupDeploymentPlanResult> actionResults = planResult.getServerGroupResults(); for (Entry<String, ServerGroupDeploymentPlanResult> result : actionResults.entrySet()) { for (Entry<String, ServerDeploymentPlanResult> planServerResult : result.getValue().getServerResults().entrySet()) { ServerUpdateResult actionResult = planServerResult.getValue().getDeploymentActionResults() .get(deployAction.getId()); if (actionResult != null) { Exception deploymentException = (Exception) actionResult.getFailureResult(); if (deploymentException != null) throw deploymentException; } } } return deployAction.getDeploymentUnitUniqueName(); } }
for (DeploymentAction deploymentAction : plan.getDeploymentActions()) { final List<String> steps = actionsById.get(deploymentAction.getId()); for (String step : steps) { if (result.hasDefined(step)) { final ServerUpdateResultImpl serverUpdateResult = new ServerUpdateResultImpl(deploymentAction.getId(), serverId, resultHandlerResponse); deploymentActionResult.storeServerUpdateResult(serverId, serverUpdateResult); actionResults.put(deploymentAction.getId(), deploymentActionResult);
for (DeploymentAction deploymentAction : plan.getDeploymentActions()) { final List<String> steps = actionsById.get(deploymentAction.getId()); for (String step : steps) { if (result.hasDefined(step)) { final ServerUpdateResultImpl serverUpdateResult = new ServerUpdateResultImpl(deploymentAction.getId(), serverId, resultHandlerResponse); deploymentActionResult.storeServerUpdateResult(serverId, serverUpdateResult); actionResults.put(deploymentAction.getId(), deploymentActionResult);