HostNull

final class HostNull implements Host

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

Author:Manoel Campos da Silva Filho

See also: Host.NULL

Methods

addMigratingInVm

public boolean addMigratingInVm(Vm vm)

addOnUpdateProcessingListener

public Host addOnUpdateProcessingListener(EventListener<HostUpdatesVmsProcessingEventInfo> listener)

addVmMigratingOut

public boolean addVmMigratingOut(Vm vm)

compareTo

public int compareTo(Host host)

createTemporaryVm

public boolean createTemporaryVm(Vm vm)

createVm

public boolean createVm(Vm vm)

deallocatePesForVm

public void deallocatePesForVm(Vm vm)

destroyAllVms

public void destroyAllVms()

destroyTemporaryVm

public void destroyTemporaryVm(Vm vm)

destroyVm

public void destroyVm(Vm vm)

disableStateHistory

public void disableStateHistory()

enableStateHistory

public void enableStateHistory()

getAllocatedMipsForVm

public List<Double> getAllocatedMipsForVm(Vm vm)

getAvailableMips

public double getAvailableMips()

getAvailableStorage

public long getAvailableStorage()

getBuzyPeList

public List<Pe> getBuzyPeList()

getBw

public Resource getBw()

getBwProvisioner

public ResourceProvisioner getBwProvisioner()

getDatacenter

public Datacenter getDatacenter()

getFinishedVms

public List<Vm> getFinishedVms()

getFreePeList

public List<Pe> getFreePeList()

getId

public long getId()

getMaxAvailableMips

public double getMaxAvailableMips()

getMips

public double getMips()

getNumberOfFailedPes

public long getNumberOfFailedPes()

getNumberOfFreePes

public int getNumberOfFreePes()

getNumberOfPes

public long getNumberOfPes()

getNumberOfWorkingPes

public long getNumberOfWorkingPes()

getPeList

public List<Pe> getPeList()

getPowerModel

public PowerModel getPowerModel()

getPreviousUtilizationOfCpu

public double getPreviousUtilizationOfCpu()

getProvisioner

public ResourceProvisioner getProvisioner(Class<? extends ResourceManageable> clazz)

getRam

public Resource getRam()

getRamProvisioner

public ResourceProvisioner getRamProvisioner()

getResources

public List<ResourceManageable> getResources()

getShutdownTime

public double getShutdownTime()

getSimulation

public Simulation getSimulation()

getStartTime

public double getStartTime()

getStateHistory

public List<HostStateHistoryEntry> getStateHistory()

getStorage

public Resource getStorage()

getTotalAllocatedMipsForVm

public double getTotalAllocatedMipsForVm(Vm vm)

getTotalMipsCapacity

public double getTotalMipsCapacity()

getUtilizationHistory

public SortedMap<Double, DoubleSummaryStatistics> getUtilizationHistory()

getUtilizationHistorySum

public SortedMap<Double, Double> getUtilizationHistorySum()

getUtilizationOfBw

public long getUtilizationOfBw()

getUtilizationOfCpu

public double getUtilizationOfCpu()

getUtilizationOfCpuMips

public double getUtilizationOfCpuMips()

getUtilizationOfRam

public long getUtilizationOfRam()

getVm

public Vm getVm(int vmId, int brokerId)

getVmCreatedList

public <T extends Vm> List<T> getVmCreatedList()

getVmList

public List<Vm> getVmList()

getVmScheduler

public VmScheduler getVmScheduler()

getVmsMigratingIn

public <T extends Vm> Set<T> getVmsMigratingIn()

getVmsMigratingOut

public Set<Vm> getVmsMigratingOut()

getWorkingPeList

public List<Pe> getWorkingPeList()

isActive

public boolean isActive()

isFailed

public boolean isFailed()

isStateHistoryEnabled

public boolean isStateHistoryEnabled()

isSuitableForVm

public boolean isSuitableForVm(Vm vm)

reallocateMigratingInVms

public void reallocateMigratingInVms()

removeMigratingInVm

public void removeMigratingInVm(Vm vm)

removeOnUpdateProcessingListener

public boolean removeOnUpdateProcessingListener(EventListener<HostUpdatesVmsProcessingEventInfo> listener)

removeVmMigratingIn

public boolean removeVmMigratingIn(Vm vm)

removeVmMigratingOut

public boolean removeVmMigratingOut(Vm vm)

setActive

public Host setActive(boolean active)

setBwProvisioner

public Host setBwProvisioner(ResourceProvisioner bwProvisioner)

setDatacenter

public void setDatacenter(Datacenter datacenter)

setFailed

public boolean setFailed(boolean failed)

setId

public void setId(long id)

setPowerModel

public Host setPowerModel(PowerModel powerModel)

setRamProvisioner

public Host setRamProvisioner(ResourceProvisioner ramProvisioner)

setShutdownTime

public void setShutdownTime(double shutdownTime)

setSimulation

public Host setSimulation(Simulation simulation)

setStartTime

public void setStartTime(double startTime)

setVmScheduler

public Host setVmScheduler(VmScheduler vmScheduler)

toString

public String toString()

updateProcessing

public double updateProcessing(double currentTime)