mirror of https://github.com/apache/cloudstack.git
18 lines
567 B
Java
18 lines
567 B
Java
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);
|
|
|
|
void allocateVmCapacity(VirtualMachine vm, boolean fromLastHost);
|
|
|
|
boolean checkIfHostHasCapacity(long hostId, Integer cpu, long ram, boolean checkFromReservedCapacity);
|
|
}
|