Package org.rioproject.costmodel

Examples of org.rioproject.costmodel.ZeroCostModel


            setThresholdValues(tVals);
            ResourceCostModel rCostModel =
                (ResourceCostModel)config.getEntry(configComponent,
                                                   "resourceCost",
                                                   ResourceCostModel.class,
                                                   new ZeroCostModel());
            setResourceCostModel(rCostModel);

            sampleSize = Config.getIntEntry(config,
                                            configComponent,
                                            "sampleSize",
View Full Code Here


            setThresholdValues(tVals);
           
            ResourceCostModel rCostModel = (ResourceCostModel)config.getEntry(getComponentName(),
                                                                              "resourceCost",
                                                                              ResourceCostModel.class,
                                                                              new ZeroCostModel());
            setResourceCostModel(rCostModel);
            sampleSize = Config.getIntEntry(config,
                                            getComponentName(),
                                            "sampleSize",
                                            1,   /* default */
View Full Code Here

            setThresholdValues(tVals);
            ResourceCostModel rCostModel =
                (ResourceCostModel)config.getEntry(COMPONENT,
                                                   "resourceCost",
                                                   ResourceCostModel.class,
                                                   new ZeroCostModel());

            String fileSystem = (String)config.getEntry(COMPONENT,
                                                        "fileSystem",
                                                        String.class,
                                                        File.separator);
View Full Code Here

     * @see org.rioproject.costmodel.ResourceCostProducer#calculateResourceCost
     */
    public ResourceCost calculateResourceCost(double units, long duration) {
        checkEnabled();
        if(costModel==null)
            costModel = new ZeroCostModel();
        double cost = costModel.getCostPerUnit(duration)*units;
        return(new ResourceCost(getId(),
                                cost,
                                units,
                                costModel.getDescription(),
View Full Code Here

    /**
     * @see org.rioproject.costmodel.ResourceCostProducer#calculateResourceCost
     */
    public ResourceCost calculateResourceCost(final double units, final long duration) {
        if(costModel==null)
            costModel = new ZeroCostModel();
        double cost = costModel.getCostPerUnit(duration)*units;
        return(new ResourceCost(getDescription(),
                                cost,
                                units,
                                costModel.getDescription(),
View Full Code Here

TOP

Related Classes of org.rioproject.costmodel.ZeroCostModel

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.