CloudletTaskSchedulerNull

final class CloudletTaskSchedulerNull implements CloudletTaskScheduler

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

Author:Manoel Campos da Silva Filho

See also: CloudletTaskScheduler.NULL

Methods

addPacketToListOfPacketsSentFromVm

public boolean addPacketToListOfPacketsSentFromVm(VmPacket pkt)

clearVmPacketsToSend

public void clearVmPacketsToSend()

getVm

public Vm getVm()

getVmPacketsToSend

public List<VmPacket> getVmPacketsToSend()

isTimeToUpdateCloudletProcessing

public boolean isTimeToUpdateCloudletProcessing(Cloudlet cloudlet)

{@inheritDoc}

Parameters:
Returns:

always returns true to indicate that if this NULL Object is being used, no network packets will be processed by the CloudletScheduler that this object is assigned to. By this way, the processing of Cloudlets must be always updated because the Cloudlet doesn’t have to wait for packets dispatch or reception.

processCloudletTasks

public void processCloudletTasks(Cloudlet cloudlet, long partialFinishedMI)

setVm

public void setVm(Vm vm)