private Long calculateReservedCapacity(){
  Long reservedCapacity=0L;
  if (_reservedCapacityMap != null) {
    Collection<String> capacityCollection=_reservedCapacityMap.values();
    for (    String capacity : capacityCollection) {
      reservedCapacity=reservedCapacity + Long.valueOf(capacity);
    }
  }
  Long reservedCapacityKB=(reservedCapacity % KB == 0) ? reservedCapacity / KB : reservedCapacity / KB + 1;
  return reservedCapacityKB;
}

private Long calculateReservedCapacity ( ) { Long reservedCapacity = 0L ; if ( _reservedCapacityMap != null ) { Collection < String > capacityCollection = _reservedCapacityMap . values ( ) ; for ( String capacity : capacityCollection ) { reservedCapacity = reservedCapacity + Long . valueOf ( capacity ) ; } } Long reservedCapacityKB = ( reservedCapacity % KB == 0 ) ? reservedCapacity / KB : reservedCapacity / KB + 1 ; return reservedCapacityKB ; }
helper method to get total reserved capacity of the pool .
