public class PeProvisionerSimple extends ResourceProvisionerSimple implements PeProvisioner
PeProvisioner
policy used by a Host
to provide virtual PEs to VMs from its physical PEs:
Each host's PE must have its own instance of a PeProvisioner. When extending this class, care must be taken to guarantee that the field availableMips will always contain the amount of free MIPS available for future allocations.
NULL
Constructor and Description |
---|
PeProvisionerSimple()
Instantiates a new PeProvisionerSimple that the
Pe it will manage will be set
just at Pe instantiation. |
PeProvisionerSimple(Pe pe)
Instantiates a new PeProvisionerSimple for a given
Pe . |
Modifier and Type | Method and Description |
---|---|
double |
getUtilization()
Gets the utilization percentage of the Pe in scale from 0 to 1.
|
void |
setPe(Pe pe)
Sets the
Pe that this provisioner will manage. |
allocateResourceForVm, allocateResourceForVm, deallocateResourceForVm, deallocateResourceForVmAndSetAllocationMapEntryToZero, isSuitableForVm
deallocateResourceForAllVms, getAllocatedResourceForVm, getAvailableResource, getCapacity, getResource, getResourceAllocationMap, getResourceClass, getTotalAllocatedResource, isResourceAllocatedToVm, setResource
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
allocateResourceForVm, deallocateResourceForAllVms, deallocateResourceForVm, getAllocatedResourceForVm, getTotalAllocatedResource
allocateResourceForVm, getAvailableResource, getCapacity, getResource, isResourceAllocatedToVm, isSuitableForVm, setResource
public PeProvisionerSimple()
Pe
it will manage will be set
just at Pe instantiation.public void setPe(Pe pe)
PeProvisioner
Pe
that this provisioner will manage.setPe
in interface PeProvisioner
pe
- the Pe to setpublic double getUtilization()
PeProvisioner
getUtilization
in interface PeProvisioner
Copyright © 2015–2018 Systems, Security and Image Communication Lab - Instituto de Telecomunicações (IT) - Universidade da Beira Interior (UBI) - Instituto Federal de Educação Ciência e Tecnologia do Tocantins (IFTO). All rights reserved.