DatacenterBrokerNull

final class DatacenterBrokerNull implements DatacenterBroker, SimEntityNullBase

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

Author:Manoel Campos da Silva Filho

See also: DatacenterBroker.NULL

Methods

addOnVmsCreatedListener

public DatacenterBroker addOnVmsCreatedListener(EventListener<DatacenterBrokerEventInfo> listener)

bindCloudletToVm

public boolean bindCloudletToVm(Cloudlet cloudlet, Vm vm)

compareTo

public int compareTo(SimEntity entity)

getCloudletCreatedList

public List<Cloudlet> getCloudletCreatedList()

getCloudletFinishedList

public <T extends Cloudlet> List<T> getCloudletFinishedList()

getCloudletSubmittedList

public List<Cloudlet> getCloudletSubmittedList()

getCloudletWaitingList

public <T extends Cloudlet> List<T> getCloudletWaitingList()

getVmCreatedList

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

getVmDestructionDelayFunction

public Function<Vm, Double> getVmDestructionDelayFunction()

getVmExecList

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

getVmMapper

public Function<Cloudlet, Vm> getVmMapper()

getVmWaitingList

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

getWaitingVm

public Vm getWaitingVm(int index)

removeOnVmsCreatedListener

public DatacenterBroker removeOnVmsCreatedListener(EventListener<? extends EventInfo> listener)

setCloudletComparator

public void setCloudletComparator(Comparator<Cloudlet> comparator)

setDatacenterSupplier

public void setDatacenterSupplier(Supplier<Datacenter> datacenterSupplier)

setFallbackDatacenterSupplier

public void setFallbackDatacenterSupplier(Supplier<Datacenter> fallbackDatacenterSupplier)

setVmComparator

public void setVmComparator(Comparator<Vm> comparator)

setVmDestructionDelayFunction

public DatacenterBroker setVmDestructionDelayFunction(Function<Vm, Double> function)

setVmMapper

public void setVmMapper(Function<Cloudlet, Vm> vmMapper)

submitCloudlet

public void submitCloudlet(Cloudlet cloudlet)

submitCloudletList

public void submitCloudletList(List<? extends Cloudlet> list)

submitCloudletList

public void submitCloudletList(List<? extends Cloudlet> list, double submissionDelay)

submitCloudletList

public void submitCloudletList(List<? extends Cloudlet> list, Vm vm)

submitCloudletList

public void submitCloudletList(List<? extends Cloudlet> list, Vm vm, double submissionDelay)

submitVm

public void submitVm(Vm vm)

submitVmList

public void submitVmList(List<? extends Vm> list)

submitVmList

public void submitVmList(List<? extends Vm> list, double submissionDelay)