blob: bea487653fb0405e59d0f23f4361534106acb146 [file] [log] [blame]
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);
}