Package org.rioproject.sla.RuleMap

Examples of org.rioproject.sla.RuleMap.RuleDefinition


        List<ServiceDefinition> services = new ArrayList<ServiceDefinition>();
        ServiceDefinition service = new ServiceDefinition("S1");
        //service.addWatches("load", "CPU");
        service.addWatches("load");
        services.add(service);
        RuleDefinition rule = new RuleDefinition("ScalingRuleHandler");
        ruleMap.addRuleMapping(rule, services.toArray(new ServiceDefinition[services.size()]));
        return ruleMap;
    }
View Full Code Here


       
        service = new ServiceDefinition("S3");
        service.addWatches("load");
        services.add(service);

        RuleDefinition rule = new RuleDefinition("ScalingRuleHandler");

        ruleMap.addRuleMapping(rule, services.toArray(new ServiceDefinition[services.size()]));
        return ruleMap;
    }
View Full Code Here

TOP

Related Classes of org.rioproject.sla.RuleMap.RuleDefinition

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.