DatacenterNull

final class DatacenterNull implements Datacenter, SimEntityNullBase

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

Author:Manoel Campos da Silva Filho

See also: Datacenter.NULL

Methods

addHost

public Datacenter addHost(Host host)

addHostList

public <T extends Host> Datacenter addHostList(List<T> hostList)

addOnHostAvailableListener

public Datacenter addOnHostAvailableListener(EventListener<HostEventInfo> listener)

compareTo

public int compareTo(SimEntity entity)

getBandwidthPercentForMigration

public double getBandwidthPercentForMigration()

getCharacteristics

public DatacenterCharacteristics getCharacteristics()

getDatacenterStorage

public DatacenterStorage getDatacenterStorage()

getHost

public Host getHost(int index)

getHostById

public Host getHostById(long id)

getHostList

public List<Host> getHostList()

getPower

public double getPower()

getPowerInKWattsHour

public double getPowerInKWattsHour()

getSchedulingInterval

public double getSchedulingInterval()

getVmAllocationPolicy

public VmAllocationPolicy getVmAllocationPolicy()

removeHost

public <T extends Host> Datacenter removeHost(T host)

setBandwidthPercentForMigration

public void setBandwidthPercentForMigration(double bandwidthPercentForMigration)

setDatacenterStorage

public void setDatacenterStorage(DatacenterStorage datacenterStorage)

setSchedulingInterval

public Datacenter setSchedulingInterval(double schedulingInterval)

toString

public String toString()