PeProvisionerNull

final class PeProvisionerNull implements PeProvisioner

A class that implements the Null Object Design Pattern for PeProvisioner class.

Author:Manoel Campos da Silva Filho

See also: PeProvisioner.NULL

Methods

allocateResourceForVm

public boolean allocateResourceForVm(Vm vm, long newTotalVmResourceCapacity)

allocateResourceForVm

public boolean allocateResourceForVm(Vm vm, double newTotalVmResource)

deallocateResourceForAllVms

public void deallocateResourceForAllVms()

deallocateResourceForVm

public boolean deallocateResourceForVm(Vm vm)

getAllocatedResourceForVm

public long getAllocatedResourceForVm(Vm vm)

getAvailableResource

public long getAvailableResource()

getCapacity

public long getCapacity()

getResource

public ResourceManageable getResource()

getTotalAllocatedResource

public long getTotalAllocatedResource()

getUtilization

public double getUtilization()

isResourceAllocatedToVm

public boolean isResourceAllocatedToVm(Vm vm)

isSuitableForVm

public boolean isSuitableForVm(Vm vm, long newVmTotalAllocatedResource)

setPe

public void setPe(Pe pe)

setResource

public void setResource(ResourceManageable resource)