Package org.jboss.as.standalone.client.api.deployment

Examples of org.jboss.as.standalone.client.api.deployment.SimpleServerDeploymentActionResult


        @Override
        public void handleCancellation(UUID param) {
            synchronized (updateResults) {
                // FIXME we need to clarify the semantics of a cancellation
                updateResults.put(param, new SimpleServerDeploymentActionResult(param, Result.NOT_EXECUTED));
            }
        }
View Full Code Here


        }

        @Override
        public void handleFailure(Throwable cause, UUID param) {
            synchronized (updateResults) {
                updateResults.put(param, new SimpleServerDeploymentActionResult(param, cause));
            }
        }
View Full Code Here

        }

        @Override
        public void handleSuccess(Object result, UUID param) {
            synchronized (updateResults) {
                updateResults.put(param, new SimpleServerDeploymentActionResult(param, successResult));
            }
        }
View Full Code Here

        @Override
        public void handleTimeout(UUID param) {
            synchronized (updateResults) {
                // FIXME clarify meaning of "timeout"
                updateResults.put(param, new SimpleServerDeploymentActionResult(param, Result.FAILED));
            }
        }
View Full Code Here

            Map<UUID, ServerDeploymentActionResult> planResults = new HashMap<UUID, ServerDeploymentActionResult>();
            for (Map.Entry<UUID, ServerDeploymentActionResult> entry : updateResults.entrySet()) {
                ServerDeploymentActionResult actionResult = entry.getValue();
                if (actionResult == null) {
                    // Treat as success
                    actionResult = new SimpleServerDeploymentActionResult(entry.getKey(), Result.EXECUTED);
                }
                if (actionResult.getResult() != Result.NOT_EXECUTED) {
                    ServerDeploymentActionResult rollbackResult = null;
                    if (successfulRollbacks.contains(entry.getKey())) {
                        rollbackResult = new SimpleServerDeploymentActionResult(entry.getKey(), Result.EXECUTED);
                    }
                    else if (failedRollbacks.containsKey(entry.getKey())) {
                        Throwable cause = failedRollbacks.get(entry.getKey());
                        rollbackResult = new SimpleServerDeploymentActionResult(entry.getKey(), cause);
                    }
                    if (rollbackResult != null) {
                        AbstractServerUpdateActionResult.installRollbackResult((AbstractServerUpdateActionResult<ServerDeploymentActionResult>) entry.getValue(), rollbackResult);
                    }
                }
View Full Code Here

TOP

Related Classes of org.jboss.as.standalone.client.api.deployment.SimpleServerDeploymentActionResult

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.