Class CapacityPlanningBPL


  • public class CapacityPlanningBPL
    extends Object
    Primary capacity planning logic for the default capacity planning as outlined in the doc.
    Author:
    luofeng
    • Constructor Detail

      • CapacityPlanningBPL

        public CapacityPlanningBPL()
    • Method Detail

      • pickApplianceForPV

        public static ApplianceInfo pickApplianceForPV​(String pvName,
                                                       ConfigService configService,
                                                       PVTypeInfo pvTypeInfo)
                                                throws IOException
        get the appliance for this pv. this method implements the capacity planning
        Parameters:
        pvName - the name of the pv.
        configService - the local configService
        pvTypeInfo - the pvTypeInfo of this pv.
        Returns:
        the ApplianceInfo of the appliance which this pv will be added
        Throws:
        IOException - error occurs during the capacity planning. in this case, this method will return the ApplianceInfo of the local appliance