Package org.apache.stratos.autoscaler.policy.model

Examples of org.apache.stratos.autoscaler.policy.model.RequestsInFlight


        this.partitions = partitions;
//        this.setServiceToLBClusterId(new HashMap<String, String>());
//        this.setClusterIdToLBClusterIdMap(new HashMap<String, String>());
//        partitionToMemberCountMap = new HashMap<String, Integer>();
        partitionCtxts = new HashMap<String, PartitionContext>();
        requestsInFlight = new RequestsInFlight();
        loadAverage = new LoadAverage();
        memoryConsumption = new MemoryConsumption();

    }
View Full Code Here


        OMElement loadThresholdsEle = docEle.getFirstChildWithName(new QName("loadThresholds"));
        LoadThresholds loadThresholds = new LoadThresholds();
       
        //RequestsInFlight
        OMElement reqInFlightEle = loadThresholdsEle.getFirstChildWithName(new QName("requestsInFlight"));
        RequestsInFlight reqInFlight = new RequestsInFlight();
        reqInFlight.setAverage(Float.valueOf(readValueAttr(reqInFlightEle,"average")));
        reqInFlight.setGradient(Float.valueOf(readValueAttr(reqInFlightEle,"gradient")));
        reqInFlight.setSecondDerivative(Float.valueOf(readValueAttr(reqInFlightEle,"secondDerivative")));
                reqInFlight.setScaleDownMarginOfGradient(Float.valueOf(readValueAttr(reqInFlightEle,"scaleDownMarginOfGradient")));
                reqInFlight.setScaleDownMarginOfSecondDerivative(Float.valueOf(readValueAttr(reqInFlightEle,"scaleDownMarginOfSecondDerivative")));
        loadThresholds.setRequestsInFlight(reqInFlight);
       
        //MemoryConsumption
        OMElement memConsumptionEle = loadThresholdsEle.getFirstChildWithName(new QName("memoryConsumption"));
        MemoryConsumption memConsumption = new MemoryConsumption();
View Full Code Here

TOP

Related Classes of org.apache.stratos.autoscaler.policy.model.RequestsInFlight

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.