| package com.cloud.capacity; | |
| import com.cloud.utils.component.Manager; | |
| import com.cloud.vm.VirtualMachine; | |
| /** | |
| * Capacity Manager manages the different capacities | |
| * available within the Cloud Stack. | |
| * | |
| */ | |
| public interface CapacityManager extends Manager { | |
| public boolean releaseVmCapacity(VirtualMachine vm, boolean moveFromReserved, boolean moveToReservered, Long hostId); | |
| boolean allocateVmCapacity(long hostId, Integer cpu, long ram, boolean fromLastHost); | |
| } |