Package org.rioproject.costmodel

Examples of org.rioproject.costmodel.ResourceCost


    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(),
                                new Date(System.currentTimeMillis())));
    }
View Full Code Here


     */
    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(),
                                new Date(System.currentTimeMillis())));
    }
View Full Code Here

TOP

Related Classes of org.rioproject.costmodel.ResourceCost

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.