PeProvisionerSimple

public class PeProvisionerSimple extends ResourceProvisionerSimple implements PeProvisioner

A best-effort PeProvisioner policy used by a Host to provide virtual PEs to VMs from its physical PEs:

  • if there is available MIPS on the physical PE, it allocates to a virtual PE;
  • otherwise, it fails.

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.

Author:Anton Beloglazov, Manoel Campos da Silva Filho

Constructors

PeProvisionerSimple

public PeProvisionerSimple()

Instantiates a new PeProvisionerSimple that the Pe it will manage will be set just at Pe instantiation.

PeProvisionerSimple

public PeProvisionerSimple(Pe pe)

Instantiates a new PeProvisionerSimple for a given Pe.

Parameters:
  • pe

Methods

getUtilization

public double getUtilization()

setPe

public void setPe(Pe pe)