CloudletNull

final class CloudletNull implements Cloudlet

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

Author:Manoel Campos da Silva Filho

See also: Cloudlet.NULL

Methods

addFinishedLengthSoFar

public boolean addFinishedLengthSoFar(long partialFinishedMI)

addOnFinishListener

public Cloudlet addOnFinishListener(EventListener<CloudletVmEventInfo> listener)

addOnUpdateProcessingListener

public Cloudlet addOnUpdateProcessingListener(EventListener<CloudletVmEventInfo> listener)

addRequiredFile

public boolean addRequiredFile(String fileName)

addRequiredFiles

public boolean addRequiredFiles(List<String> fileNames)

assignToDatacenter

public void assignToDatacenter(Datacenter datacenter)

compareTo

public int compareTo(Cloudlet cloudlet)

deleteRequiredFile

public boolean deleteRequiredFile(String filename)

getAccumulatedBwCost

public double getAccumulatedBwCost()

getActualCpuTime

public double getActualCpuTime(Datacenter datacenter)

getActualCpuTime

public double getActualCpuTime()

getArrivalTime

public double getArrivalTime(Datacenter datacenter)

getBroker

public DatacenterBroker getBroker()

getCostPerBw

public double getCostPerBw()

getCostPerSec

public double getCostPerSec()

getCostPerSec

public double getCostPerSec(Datacenter datacenter)

getExecStartTime

public double getExecStartTime()

getFileSize

public long getFileSize()

getFinishTime

public double getFinishTime()

getFinishedLengthSoFar

public long getFinishedLengthSoFar()

getFinishedLengthSoFar

public long getFinishedLengthSoFar(Datacenter datacenter)

getId

public long getId()

getJobId

public long getJobId()

getLastDatacenter

public Datacenter getLastDatacenter()

getLastDatacenterArrivalTime

public double getLastDatacenterArrivalTime()

getLength

public long getLength()

getNetServiceLevel

public int getNetServiceLevel()

getNumberOfPes

public long getNumberOfPes()

getOutputSize

public long getOutputSize()

getPriority

public int getPriority()

getRequiredFiles

public List<String> getRequiredFiles()

getSimulation

public Simulation getSimulation()

getStatus

public Status getStatus()

getSubmissionDelay

public double getSubmissionDelay()

getTotalCost

public double getTotalCost()

getTotalLength

public long getTotalLength()

getUid

public String getUid()

getUtilizationModelBw

public UtilizationModel getUtilizationModelBw()

getUtilizationModelCpu

public UtilizationModel getUtilizationModelCpu()

getUtilizationModelRam

public UtilizationModel getUtilizationModelRam()

getUtilizationOfBw

public double getUtilizationOfBw()

getUtilizationOfBw

public double getUtilizationOfBw(double time)

getUtilizationOfCpu

public double getUtilizationOfCpu()

getUtilizationOfCpu

public double getUtilizationOfCpu(double time)

getUtilizationOfRam

public double getUtilizationOfRam()

getUtilizationOfRam

public double getUtilizationOfRam(double time)

getVm

public Vm getVm()

getWaitingTime

public double getWaitingTime()

getWallClockTime

public double getWallClockTime(Datacenter datacenter)

getWallClockTimeInLastExecutedDatacenter

public double getWallClockTimeInLastExecutedDatacenter()

isAssignedToDatacenter

public boolean isAssignedToDatacenter()

isBindToVm

public boolean isBindToVm()

isFinished

public boolean isFinished()

notifyOnUpdateProcessingListeners

public void notifyOnUpdateProcessingListeners(double time)

registerArrivalInDatacenter

public double registerArrivalInDatacenter()

removeOnFinishListener

public boolean removeOnFinishListener(EventListener<CloudletVmEventInfo> listener)

removeOnUpdateProcessingListener

public boolean removeOnUpdateProcessingListener(EventListener<CloudletVmEventInfo> listener)

requiresFiles

public boolean requiresFiles()

setBroker

public Cloudlet setBroker(DatacenterBroker broker)

setExecStartTime

public void setExecStartTime(double clockTime)

setFileSize

public Cloudlet setFileSize(long fileSize)

setId

public void setId(long id)

setJobId

public void setJobId(long jobId)

setLength

public Cloudlet setLength(long length)

setNetServiceLevel

public boolean setNetServiceLevel(int netServiceLevel)

setNumberOfPes

public Cloudlet setNumberOfPes(long numberOfPes)

setOutputSize

public Cloudlet setOutputSize(long outputSize)

setPriority

public void setPriority(int priority)

setStatus

public boolean setStatus(Status newStatus)

setSubmissionDelay

public void setSubmissionDelay(double submissionDelay)

setUtilizationModel

public Cloudlet setUtilizationModel(UtilizationModel utilizationModel)

setUtilizationModelBw

public Cloudlet setUtilizationModelBw(UtilizationModel utilizationModelBw)

setUtilizationModelCpu

public Cloudlet setUtilizationModelCpu(UtilizationModel utilizationModelCpu)

setUtilizationModelRam

public Cloudlet setUtilizationModelRam(UtilizationModel utilizationModelRam)

setVm

public Cloudlet setVm(Vm vm)

setWallClockTime

public boolean setWallClockTime(double wallTime, double actualCpuTime)

toString

public String toString()