VmNull

final class VmNull implements Vm

A class that implements the Null Object Design Pattern for Vm objects.

Author:Manoel Campos da Silva Filho

See also: Vm.NULL

Methods

addOnCreationFailureListener

public Vm addOnCreationFailureListener(EventListener<VmDatacenterEventInfo> listener)

addOnHostAllocationListener

public Vm addOnHostAllocationListener(EventListener<VmHostEventInfo> listener)

addOnHostDeallocationListener

public Vm addOnHostDeallocationListener(EventListener<VmHostEventInfo> listener)

addOnUpdateProcessingListener

public Vm addOnUpdateProcessingListener(EventListener<VmHostEventInfo> listener)

addStateHistoryEntry

public void addStateHistoryEntry(VmStateHistoryEntry entry)

allocateResource

public void allocateResource(Class<? extends ResourceManageable> clazz, long amount)

compareTo

public int compareTo(Vm vm)

deallocateResource

public void deallocateResource(Class<? extends ResourceManageable> clazz)

getBroker

public DatacenterBroker getBroker()

getBw

public Resource getBw()

getBwVerticalScaling

public VerticalVmScaling getBwVerticalScaling()

getCloudletScheduler

public CloudletScheduler getCloudletScheduler()

getCpuPercentUsage

public double getCpuPercentUsage(double time)

getCpuPercentUsage

public double getCpuPercentUsage()

getCurrentRequestedBw

public long getCurrentRequestedBw()

getCurrentRequestedMaxMips

public double getCurrentRequestedMaxMips()

getCurrentRequestedMips

public List<Double> getCurrentRequestedMips()

getCurrentRequestedRam

public long getCurrentRequestedRam()

getCurrentRequestedTotalMips

public double getCurrentRequestedTotalMips()

getDescription

public String getDescription()

getHorizontalScaling

public HorizontalVmScaling getHorizontalScaling()

getHost

public Host getHost()

getId

public long getId()

getIdleInterval

public double getIdleInterval()

getLastBusyTime

public double getLastBusyTime()

getMips

public double getMips()

getNumberOfPes

public long getNumberOfPes()

getPeVerticalScaling

public VerticalVmScaling getPeVerticalScaling()

getProcessor

public Processor getProcessor()

getRam

public Resource getRam()

getRamVerticalScaling

public VerticalVmScaling getRamVerticalScaling()

getResources

public List<ResourceManageable> getResources()

getSimulation

public Simulation getSimulation()

getStartTime

public double getStartTime()

getStateHistory

public List<VmStateHistoryEntry> getStateHistory()

getStopTime

public double getStopTime()

getStorage

public Resource getStorage()

getSubmissionDelay

public double getSubmissionDelay()

getTotalCpuMipsUsage

public double getTotalCpuMipsUsage()

getTotalCpuMipsUsage

public double getTotalCpuMipsUsage(double time)

getTotalExecutionTime

public double getTotalExecutionTime()

getTotalMipsCapacity

public double getTotalMipsCapacity()

getUid

public String getUid()

getUtilizationHistory

public UtilizationHistory getUtilizationHistory()

getVmm

public String getVmm()

isCreated

public boolean isCreated()

isFailed

public boolean isFailed()

isIdle

public boolean isIdle()

isIdleEnough

public boolean isIdleEnough(double time)

isInMigration

public boolean isInMigration()

isSuitableForCloudlet

public boolean isSuitableForCloudlet(Cloudlet cloudlet)

isWorking

public boolean isWorking()

notifyOnCreationFailureListeners

public void notifyOnCreationFailureListeners(Datacenter failedDatacenter)

notifyOnHostAllocationListeners

public void notifyOnHostAllocationListeners()

notifyOnHostDeallocationListeners

public void notifyOnHostDeallocationListeners(Host deallocatedHost)

removeOnCreationFailureListener

public boolean removeOnCreationFailureListener(EventListener<VmDatacenterEventInfo> listener)

removeOnHostAllocationListener

public boolean removeOnHostAllocationListener(EventListener<VmHostEventInfo> listener)

removeOnHostDeallocationListener

public boolean removeOnHostDeallocationListener(EventListener<VmHostEventInfo> listener)

removeOnUpdateProcessingListener

public boolean removeOnUpdateProcessingListener(EventListener<VmHostEventInfo> listener)

setBroker

public Vm setBroker(DatacenterBroker broker)

setBw

public Vm setBw(long bwCapacity)

setBwVerticalScaling

public Vm setBwVerticalScaling(VerticalVmScaling scaling)

setCloudletScheduler

public Vm setCloudletScheduler(CloudletScheduler cloudletScheduler)

setCreated

public void setCreated(boolean created)

setDescription

public Vm setDescription(String description)

setFailed

public void setFailed(boolean failed)

setHorizontalScaling

public Vm setHorizontalScaling(HorizontalVmScaling scaling)

setHost

public void setHost(Host host)

setId

public void setId(long id)

setInMigration

public void setInMigration(boolean migrating)

setPeVerticalScaling

public Vm setPeVerticalScaling(VerticalVmScaling scaling)

setRam

public Vm setRam(long ramCapacity)

setRamVerticalScaling

public Vm setRamVerticalScaling(VerticalVmScaling scaling)

setSize

public Vm setSize(long size)

setStartTime

public Vm setStartTime(double startTime)

setStopTime

public Vm setStopTime(double stopTime)

setSubmissionDelay

public void setSubmissionDelay(double submissionDelay)

toString

public String toString()

updateProcessing

public double updateProcessing(double currentTime, List<Double> mipsShare)