Package org.rhq.enterprise.server.rest

Examples of org.rhq.enterprise.server.rest.BadArgumentException


        ConfigurationDefinition pluginConfigDef = getPluginConfigurationDefinitionForResourceType(overlord, resource
            .getResourceType().getId());
        List<String> validationErrors = ConfigurationUtility.validateConfiguration(newPluginConfiguration,
            existingPluginConfiguration, pluginConfigDef);
        if (!validationErrors.isEmpty()) {
            throw new BadArgumentException("Invalid newPluginConfiguration, configuration not updated: "
                + validationErrors);
        }

        // create our new update request and assign it to our resource - its status will initially be "in progress"
        PluginConfigurationUpdate update = new PluginConfigurationUpdate(resource, newPluginConfiguration,
View Full Code Here


        ConfigurationDefinition resourceConfigDef = getResourceConfigurationDefinitionForResourceType(overlord,
            resource.getResourceType().getId());
        List<String> validationErrors = ConfigurationUtility.validateConfiguration(newResourceConfiguration,
            existingResourceConfiguration, resourceConfigDef);
        if (!validationErrors.isEmpty()) {
            throw new BadArgumentException("Invalid newResourceConfiguration, configuration not updated: "
                + validationErrors);
        }

        // Calling the persist method via the EJB interface to pick up the method's REQUIRES_NEW semantics and persist
        // the update in a separate transaction; this way, the update is committed prior to sending the agent request
View Full Code Here

TOP

Related Classes of org.rhq.enterprise.server.rest.BadArgumentException

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.