Package org.jboss.as.model

Examples of org.jboss.as.model.UpdateFailedException


        List<HostUpdateResult<?>> result;
        ServerManagerClient client = clients.get(serverManagerName);
        if (client == null) {
            result = new ArrayList<HostUpdateResult<?>>(updates.size());
            HostUpdateResult<Object> hur = new HostUpdateResult<Object>(new UpdateFailedException("Host " + serverManagerName + " is unknown"));
            for (int i = 0; i < updates.size(); i++) {
                result.add(hur);
            }
        }
        else {
View Full Code Here


    public String getName() {
        return name;
    }

    private UpdateFailedException notConfigured() {
        return new UpdateFailedException("No thread factory named " + name + " is configured");
    }
View Full Code Here

    }

    protected void applyUpdate(final ThreadsSubsystemElement element) throws UpdateFailedException {
        final ThreadFactoryElement addedElement = element.addThreadFactory(name);
        if (addedElement == null) {
            throw new UpdateFailedException("A thread factory named '" + name + "' is already registered here");
        }
        if (groupName != null) addedElement.setGroupName(groupName);
        if (threadNamePattern != null) addedElement.setThreadNamePattern(threadNamePattern);
        if (priority != null) addedElement.setPriority(priority);
        if (! properties.isEmpty()) addedElement.setProperties(properties);
View Full Code Here

    public String getName() {
        return name;
    }

    private UpdateFailedException notConfigured() {
        return new UpdateFailedException("No thread factory named " + name + " is configured");
    }
View Full Code Here

    public String getNewNamePattern() {
        return newNamePattern;
    }

    private UpdateFailedException notConfigured() {
        return new UpdateFailedException("No thread factory named " + name + " is configured");
    }
View Full Code Here

    }

    /** {@inheritDoc} */
    protected void applyUpdate(WebSubsystemElement element) throws UpdateFailedException {
        if(! element.removeConnector(name)) {
            throw new UpdateFailedException("no such connector " + name);
        }
    }
View Full Code Here

    /** {@inheritDoc} */
    protected void applyUpdate(WebSubsystemElement element) throws UpdateFailedException {
        final WebConnectorElement connector = element.addConnector(name);
        if(connector == null) {
            throw new UpdateFailedException("duplicate connector " + name);
        }
        connector.setProtocol(protocol);
        connector.setBindingRef(bindingRef);
        connector.setScheme(scheme);
        connector.setExecutorRef(executorRef);
View Full Code Here

    }

    /** {@inheritDoc} */
    protected void applyUpdate(WebSubsystemElement element) throws UpdateFailedException {
        if(! element.removeHost(name)) {
            throw new UpdateFailedException("no such hosts " + name);
        }
    }
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.