Package org.apache.stratos.throttling.manager.conf

Examples of org.apache.stratos.throttling.manager.conf.ThrottlingConfiguration


        // load the configuration and initialize the billing engine + do the
        // necessary scheduling.
        String configFile = CarbonUtils.getCarbonConfigDirPath() + File.separator +
                StratosConstants.MULTITENANCY_CONFIG_FOLDER + File.separator + THROTTLING_CONFIG;
        // the configuration init will initialize task objects.
        throttlingConfiguration = new ThrottlingConfiguration(configFile);
        List<Task> throttlingTasks = throttlingConfiguration.getThrottlingTasks();

        // now initialize the scheduling per each task
        for (Task throttlingTask : throttlingTasks) {
            initializeScheduling(throttlingTask);
View Full Code Here


        */
    }

    public Task getThrottlingTask(String configFile, String ruleFile) throws Exception {
        saveTrottlingRules(ruleFile);
        ThrottlingConfiguration throttlingConfiguration = new ThrottlingConfiguration(configFile);
        List<Task> throttlingTasks = throttlingConfiguration.getThrottlingTasks();
        return throttlingTasks.get(0);
    }
View Full Code Here

TOP

Related Classes of org.apache.stratos.throttling.manager.conf.ThrottlingConfiguration

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.