ResourceProvisionerNull

final class ResourceProvisionerNull implements ResourceProvisioner

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

Author:Manoel Campos da Silva Filho

See also: ResourceProvisioner.NULL

Methods

allocateResourceForVm

public boolean allocateResourceForVm(Vm vm, long newTotalVmResourceCapacity)

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()

isResourceAllocatedToVm

public boolean isResourceAllocatedToVm(Vm vm)

isSuitableForVm

public boolean isSuitableForVm(Vm vm, long newVmTotalAllocatedResource)

setResource

public void setResource(ResourceManageable resource)