DatacenterBrokerNull

final class DatacenterBrokerNull implements DatacenterBroker

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)

addOneTimeOnVmsCreatedListener

public DatacenterBroker addOneTimeOnVmsCreatedListener(EventListener<DatacenterBrokerEventInfo> listener)

bindCloudletToVm

public boolean bindCloudletToVm(Cloudlet cloudlet, Vm vm)

compareTo

public int compareTo(SimEntity entity)

defaultVmMapper

public Vm defaultVmMapper(Cloudlet cloudlet)

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()

getId

public long getId()

getName

public String getName()

getSimulation

public Simulation getSimulation()

getState

public State getState()

getVmCreatedList

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

getVmDestructionDelayFunction

public Function<Vm, Double> getVmDestructionDelayFunction()

getVmExecList

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

getVmWaitingList

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

getWaitingVm

public Vm getWaitingVm(int index)

isAlive

public boolean isAlive()

isFinished

public boolean isFinished()

isStarted

public boolean isStarted()

isThereWaitingCloudlets

public boolean isThereWaitingCloudlets()

processEvent

public void processEvent(SimEvent evt)

run

public void run()

schedule

public boolean schedule(SimEvent evt)

schedule

public boolean schedule(double delay, int tag, Object data)

schedule

public boolean schedule(SimEntity dest, double delay, int tag, Object data)

schedule

public boolean schedule(SimEntity dest, double delay, int tag)

setCloudletComparator

public void setCloudletComparator(Comparator<Cloudlet> comparator)

setDatacenterSupplier

public void setDatacenterSupplier(Supplier<Datacenter> datacenterSupplier)

setFallbackDatacenterSupplier

public void setFallbackDatacenterSupplier(Supplier<Datacenter> fallbackDatacenterSupplier)

setName

public SimEntity setName(String newName)

setSimulation

public SimEntity setSimulation(Simulation simulation)

setState

public SimEntity setState(State state)

setVmComparator

public void setVmComparator(Comparator<Vm> comparator)

setVmDestructionDelayFunction

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

setVmMapper

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

shutdownEntity

public void shutdownEntity()

start

public void start()

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)