PeSimple

public class PeSimple extends ResourceManageableAbstract implements Pe

Pe (Processing Element) class represents a CPU core of a physical machine (PM), defined in terms of Millions Instructions Per Second (MIPS) rating. Such a class allows managing the Pe capacity and allocation.

ASSUMPTION: All PEs under the same Machine have the same MIPS rating.

Author:Manzur Murshed, Rajkumar Buyya

Constructors

PeSimple

public PeSimple(double mipsCapacity, PeProvisioner peProvisioner)

Instantiates a new PE object. The id of the PE is just set when a List of PEs is assigned to a Host.

Parameters:
  • mipsCapacity – the capacity of the PE in MIPS (Million Instructions per Second)
  • peProvisioner – the provisioner that will manage the allocation of this physical Pe for VMs

PeSimple

public PeSimple(int id, double mipsCapacity, PeProvisioner peProvisioner)

Instantiates a new PE object defining a given id. The id of the PE is just set when a List of PEs is assigned to a Host.

Parameters:
  • id – the PE id
  • mipsCapacity – the capacity of the PE in MIPS (Million Instructions per Second)
  • peProvisioner – the provisioner that will manage the allocation of this physical Pe for VMs

Methods

getId

public long getId()

getPeProvisioner

public PeProvisioner getPeProvisioner()

Gets the PE provisioner that manages the allocation of this physical PE to virtual machines.

Returns:the PE provisioner

getStatus

public Status getStatus()

isBuzy

public boolean isBuzy()

isFailed

public boolean isFailed()

isFree

public boolean isFree()

isWorking

public boolean isWorking()

setCapacity

public boolean setCapacity(double mipsCapacity)

setId

public final void setId(long id)

setPeProvisioner

public final Pe setPeProvisioner(PeProvisioner peProvisioner)

setStatus

public final boolean setStatus(Status status)

toString

public String toString()