Package org.jboss.as.model

Examples of org.jboss.as.model.UpdateFailedException


        /** {@inheritDoc} */
        public void handleFailure(Throwable cause, P param) {
            if(cause instanceof UpdateFailedException) {
                failure = (UpdateFailedException) cause;
            } else {
                failure = new UpdateFailedException(cause);
            }
        }
View Full Code Here


     * {@inheritDoc}
     */
    protected void applyUpdate(LoggingSubsystemElement element) throws UpdateFailedException {
        final AbstractLoggerElement<?> logger = element.removeLogger(name);
        if (logger == null) {
            throw new UpdateFailedException(String.format("logger (%s) does not exist", name));
        }
    }
View Full Code Here

    }

    protected AbstractLoggerElement<?> addNewElement(final LoggingSubsystemElement element) throws UpdateFailedException {
        final RootLoggerElement newElement = new RootLoggerElement();
        if (!element.setRootLogger(newElement)) {
            throw new UpdateFailedException("Root logger already defined");
        }
        return newElement;
    }
View Full Code Here

     * {@inheritDoc}
     */
    protected void applyUpdate(LoggingSubsystemElement element) throws UpdateFailedException {
        final AbstractLoggerElement<?> logger = element.clearRootLogger();
        if (logger == null) {
            throw new UpdateFailedException("Root logger not defined");
        }
    }
View Full Code Here

    }

    /** {@inheritDoc} */
    protected void applyUpdate(MessagingSubsystemElement element) throws UpdateFailedException {
        if(! element.removeQueue(name)) {
            throw new UpdateFailedException(String.format("queue (%s) does not exist", name));
        }
    }
View Full Code Here

    /** {@inheritDoc} */
    protected void applyUpdate(JMSSubsystemElement element) throws UpdateFailedException {
        final JMSTopicElement topic = element.addTopic(name);
        if(topic == null) {
            throw new UpdateFailedException("duplicate topic " + name);
        }
        topic.setBindings(bindings);
    }
View Full Code Here

    }

    /** {@inheritDoc} */
    protected void applyUpdate(JMSSubsystemElement element) throws UpdateFailedException {
        if(! element.removeQueue(queueName)) {
            throw new UpdateFailedException(String.format("queue (%s) does not exist", queueName));
        }
    }
View Full Code Here

    }

    /** {@inheritDoc} */
    protected void applyUpdate(JMSSubsystemElement element) throws UpdateFailedException {
        if(! element.addConnectionFactory(cf)) {
            throw new UpdateFailedException("duplicate connection-factory " + cf.getName());
        }
    }
View Full Code Here

    }

    /** {@inheritDoc} */
    protected void applyUpdate(JMSSubsystemElement element) throws UpdateFailedException {
        if(! element.removeConnectionFactory(cfName)) {
            throw new UpdateFailedException(String.format("connection-factory (%s) does not exist", cfName));
        }
    }
View Full Code Here

    /** {@inheritDoc} */
    protected void applyUpdate(MessagingSubsystemElement element) throws UpdateFailedException {
        final QueueElement queue = element.addQueue(name);
        if(queue == null) {
            throw new UpdateFailedException("duplicate queue " + name);
        }
        queue.setAddress(address);
        queue.setFilter(filter);
        if(durable != null) queue.setDurable(durable);
    }
View Full Code Here

TOP

Related Classes of org.jboss.as.model.UpdateFailedException

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.