Package com.cloud.configuration

Examples of com.cloud.configuration.Config


    }

    @Override
    public String getConfigValue(String name, String scope, Long resourceId) {
        // If either of scope or resourceId is null then return global config value otherwise return value at the scope
        Config c = Config.getConfig(name);
        if (c == null) {
            throw new CloudRuntimeException("Missing configuration variable " + name + " in configuration table");
        }
        String configScope = c.getScope();
        if (scope != null && !scope.isEmpty()) {
            if (!configScope.contains(scope)) {
                throw new CloudRuntimeException("Invalid scope " + scope + " for the parameter " + name );
            }
            if (resourceId != null) {
View Full Code Here


    }

    @Override
    public String getConfigValue(String name, String scope, Long resourceId) {
        // If either of scope or resourceId is null then return global config value otherwise return value at the scope
        Config c = Config.getConfig(name);
        if (c == null) {
            throw new CloudRuntimeException("Missing configuration variable " + name + " in configuration table");
        }
        String configScope = c.getScope();
        if (scope != null && !scope.isEmpty()) {
            if (!configScope.contains(scope)) {
                throw new CloudRuntimeException("Invalid scope " + scope + " for the parameter " + name );
            }
            if (resourceId != null) {
View Full Code Here

TOP

Related Classes of com.cloud.configuration.Config

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.