An interface that represents the provisioning policy used by a host to provide virtual PEs to its virtual machines. It gets a physical PE and manage it in order to provide this PE as virtual PEs for VMs. In that way, a given PE might be shared among different VMs.
Author: Manoel Campos da Silva Filho
allocateResourceForVm(Vm vm, long mipsCapacity)¶
Allocates an amount of MIPS from the physical Pe to a new virtual PE for a given VM. The virtual PE to be added will use the total or partial MIPS capacity of the physical PE.
- vm – the virtual machine for which the new virtual PE is being allocated
- mipsCapacity – the MIPS to be allocated to the virtual PE of the given VM
$true if the virtual PE could be allocated; $false otherwise
Releases all virtual PEs allocated to all VMs.
Gets the total allocated MIPS from the physical Pe.
Returns: the total allocated MIPS
Gets the utilization percentage of the Pe in scale from 0 to 1.
Returns: the utilization percentage from 0 to 1