Package org.jboss.as.domain.client.api

Examples of org.jboss.as.domain.client.api.RollbackCancelledException


            actionResult.markRolledBack(duar);

            // Notify any listeners
            for (DomainUpdateListener<?> listener : listeners) {
                if (duar.isCancelled()) {
                    listener.handleDomainRollbackFailed(new RollbackCancelledException("Rollback of deployment action " + actionId + "was cancelled"));
                }
                else if (duar.isRolledBack()) {
                    listener.handleDomainRollbackFailed(new RollbackCancelledException("Rollback of deployment action " + actionId + "was itself rolled back"));
                }
                else if (duar.getDomainFailure() != null) {
                    listener.handleDomainRollbackFailed(duar.getDomainFailure());
                }
                else if (duar.getHostFailures().size() > 0) {
View Full Code Here


                }
                else if (urhr.getFailureResult() != null) {
                    listener.handleRollbackFailure(urhr.getFailureResult(), serverId);
                }
                else if (urhr.isRolledBack()) {
                    listener.handleRollbackFailure(new RollbackCancelledException("Rollback of deployment action " + actionId + "was itself rolled back"), serverId);
                }
                else if (urhr.isTimedOut()) {
                    listener.handleRollbackTimeout(serverId);
                }
                else {
View Full Code Here

    public Throwable getRollbackFailure() {
        if (rollbackResult == null) {
            return null;
        }
        else if (rollbackResult.isCancelled()) {
            return new RollbackCancelledException("Rollback was cancelled");
        }
        else if (rollbackResult.isRolledBack()) {
            return new RollbackCancelledException("Rollback was itself rolled back");
        }
        else if (rollbackResult.isTimedOut()) {
            return new RollbackCancelledException("Rollback timed out");
        }
        else {
            return rollbackResult.getFailureResult();
        }
    }
View Full Code Here

TOP

Related Classes of org.jboss.as.domain.client.api.RollbackCancelledException

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.