Package org.apache.stratos.throttling.agent.conf

Examples of org.apache.stratos.throttling.agent.conf.ThrottlingAgentConfiguration


    }

    private ThrottlingAgentConfiguration loadThrottlingConfiguration() throws Exception {
        // it is acceptable that throttling agent file is not present, when the
        // embedded rule invoker is in use.
        ThrottlingAgentConfiguration throttlingAgentConfig = null;
        String configFileName = CarbonUtils.getCarbonConfigDirPath() + File.separator +
                StratosConstants.MULTITENANCY_CONFIG_FOLDER + File.separator + CONFIG_FILE;
        if (new File(configFileName).exists()) {
            throttlingAgentConfig = new ThrottlingAgentConfiguration(configFileName);
        } else {
            log.warn("Throttling agent config file is not present. File name: " + configFileName + ".");
        }

        return throttlingAgentConfig;
View Full Code Here

TOP

Related Classes of org.apache.stratos.throttling.agent.conf.ThrottlingAgentConfiguration

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.