Uses of Interface
org.cloudbus.cloudsim.brokers.DatacenterBroker
Package
Description
Provides
DatacenterBroker
classes that act on behalf of a cloud customer,
attending his/her requests for creation and destruction of
Cloudlets
and
VMs
, assigning such Cloudlets to specific VMs.Provides core classes used just internally by CloudSim Plus,
except the
CloudSim
class that is the
start point and main class used to run simulations.Provides implementations of Virtual Machines (
Vm
)
which are a software package that emulate the architecture of a physical machine.Provides
Builder
classes that
implement the Builder Design Pattern
to allow instantiating multiple simulation objects more easily.Provides classes to inject random faults during simulation runtime.
Provides
EventListener
implementations to enable event notifications during simulation execution.Provides base classes to enable implementing testbeds in a repeatable manner,
allowing a researcher to execute several simulation runs
for a given experiment and collect statistical data using a scientific approach.
Provides classes to process trace files from Google
Cluster Data that create objects such as Hosts and Cloudlets from such
files.
-
Uses of DatacenterBroker in org.cloudbus.cloudsim.brokers
Modifier and TypeClassDescriptionclass
An abstract class for implementingDatacenterBroker
s.class
A implementation ofDatacenterBroker
that uses a Best Fit mapping between submitted cloudlets and Vm's, trying to place a Cloudlet at the best suitable Vm which can be found (according to the required Cloudlet's PEs).class
A implementation ofDatacenterBroker
that uses a First Fit mapping between submitted cloudlets and Vm's, trying to place a Cloudlet at the first suitable Vm which can be found (according to the required Cloudlet's PEs).class
A simple implementation ofDatacenterBroker
that uses some heuristic to get a suboptimal mapping among submitted cloudlets and Vm's.class
A simple implementation ofDatacenterBroker
that try to host customer's VMs at the first Datacenter found.Modifier and TypeFieldDescriptionstatic final DatacenterBroker
DatacenterBroker.NULL
An attribute that implements the Null Object Design Pattern forDatacenterBroker
objects.Modifier and TypeMethodDescriptionDatacenterBroker.addOnVmsCreatedListener
(EventListener<DatacenterBrokerEventInfo> listener) Adds anEventListener
that will be notified every time VMs in the waiting list are all created (placed) in some Host.DatacenterBrokerAbstract.addOnVmsCreatedListener
(EventListener<DatacenterBrokerEventInfo> listener) DatacenterBroker.removeOnVmsCreatedListener
(EventListener<? extends EventInfo> listener) Removes anEventListener
to stop it to be notified when VMs in the waiting list are all created.DatacenterBrokerAbstract.removeOnVmsCreatedListener
(EventListener<? extends EventInfo> listener) DatacenterBroker.requestIdleVmDestruction
(Vm vm) Checks if a VM is idle VM and request it to be destroyed at the time defined by thegetVmDestructionDelayFunction()
.DatacenterBrokerAbstract.requestIdleVmDestruction
(Vm vm) DatacenterBroker.setDatacenterMapper
(BiFunction<Datacenter, Vm, Datacenter> datacenterMapper) Sets theBiFunction
that selects and returns a Datacenter to place submitted VMs.final DatacenterBroker
DatacenterBrokerAbstract.setDatacenterMapper
(BiFunction<Datacenter, Vm, Datacenter> datacenterMapper) DatacenterBroker.setSelectClosestDatacenter
(boolean select) Defines if the broker has to try selecting the closestDatacenter
to placeVm
s, based on their timezone.final DatacenterBroker
DatacenterBrokerAbstract.setSelectClosestDatacenter
(boolean select) DatacenterBroker.setShutdownWhenIdle
(boolean shutdownWhenIdle) Indicates if the broker must be shut down after becoming idle.DatacenterBrokerAbstract.setShutdownWhenIdle
(boolean shutdownWhenIdle) DatacenterBroker.setVmComparator
(Comparator<Vm> comparator) Sets aComparator
that will be used to sort every list of submitted VMs before requesting the creation of such VMs in some Datacenter.DatacenterBrokerAbstract.setVmComparator
(Comparator<Vm> comparator) Sets aComparator
that will be used to sort every list of submitted VMs before requesting the creation of such VMs in some Datacenter.DatacenterBroker.setVmDestructionDelay
(double delay) Sets the delay after which an idle VM should be destroyed.DatacenterBrokerAbstract.setVmDestructionDelay
(double delay) DatacenterBroker.setVmDestructionDelayFunction
(Function<Vm, Double> function) Sets aFunction
to define the delay after which an idle VM should be destroyed.DatacenterBrokerAbstract.setVmDestructionDelayFunction
(Function<Vm, Double> function) Sets aFunction
to define the delay after which an idle VM should be destroyed.DatacenterBroker.setVmMapper
(Function<Cloudlet, Vm> vmMapper) Sets aFunction
that maps a given Cloudlet to a Vm.final DatacenterBroker
DatacenterBrokerAbstract.setVmMapper
(Function<Cloudlet, Vm> vmMapper) DatacenterBroker.submitCloudlet
(Cloudlet cloudlet) Submits a singleCloudlet
to the broker.DatacenterBrokerAbstract.submitCloudlet
(Cloudlet cloudlet) DatacenterBroker.submitCloudletList
(List<? extends Cloudlet> list) Sends a list of cloudlets to the broker so that it requests their creation inside some VM, following the submission delay specified in each cloudlet (if any).DatacenterBroker.submitCloudletList
(List<? extends Cloudlet> list, double submissionDelay) Sends a list of cloudlets to the broker so that it requests their creation inside some VM just after a given delay.DatacenterBroker.submitCloudletList
(List<? extends Cloudlet> list, Vm vm) Sends a list of cloudlets to the broker so that it requests their creation inside a specific VM, following the submission delay specified in each cloudlet (if any).DatacenterBroker.submitCloudletList
(List<? extends Cloudlet> list, Vm vm, double submissionDelay) Sends a list of cloudlets to the broker so that it requests their creation inside a specific VM just after a given delay.DatacenterBrokerAbstract.submitCloudletList
(List<? extends Cloudlet> list) Sends a list of cloudlets to the broker so that it requests their creation inside some VM, following the submission delay specified in each cloudlet (if any).DatacenterBrokerAbstract.submitCloudletList
(List<? extends Cloudlet> list, double submissionDelay) DatacenterBrokerAbstract.submitCloudletList
(List<? extends Cloudlet> list, Vm vm) DatacenterBrokerAbstract.submitCloudletList
(List<? extends Cloudlet> list, Vm vm, double submissionDelay) DatacenterBroker.submitVmList
(List<? extends Vm> list) Submits a list ofVm
orVmGroup
that their creation inside a Host will be requested to someDatacenter
.DatacenterBroker.submitVmList
(List<? extends Vm> list, double submissionDelay) DatacenterBrokerAbstract.submitVmList
(List<? extends Vm> list) Submits a list ofVm
orVmGroup
that their creation inside a Host will be requested to someDatacenter
.DatacenterBrokerAbstract.submitVmList
(List<? extends Vm> list, double submissionDelay) -
Uses of DatacenterBroker in org.cloudbus.cloudsim.cloudlets
Modifier and TypeMethodDescriptionCloudlet.getBroker()
Gets theDatacenterBroker
that represents the owner of this Cloudlet.Modifier and TypeMethodDescriptionvoid
Cloudlet.setBroker
(DatacenterBroker broker) Sets aDatacenterBroker
that represents the owner of this Cloudlet. -
Uses of DatacenterBroker in org.cloudbus.cloudsim.core
Modifier and TypeMethodDescriptionCustomerEntity.getBroker()
Gets theDatacenterBroker
that represents the owner of this object.CustomerEntityAbstract.getBroker()
Modifier and TypeMethodDescriptionvoid
CustomerEntity.setBroker
(DatacenterBroker broker) Sets aDatacenterBroker
that represents the owner of this object.final void
CustomerEntityAbstract.setBroker
(DatacenterBroker broker) -
Uses of DatacenterBroker in org.cloudbus.cloudsim.vms
Modifier and TypeMethodDescriptionVm.getBroker()
Gets theDatacenterBroker
that represents the owner of this Vm.Modifier and TypeMethodDescriptionvoid
Vm.setBroker
(DatacenterBroker broker) Sets aDatacenterBroker
that represents the owner of this Vm. -
Uses of DatacenterBroker in org.cloudsimplus.builders
Modifier and TypeMethodDescriptionBrokerBuilder.findBroker
(int id) BrokerBuilderDecorator.findBroker
(int id) BrokerBuilderInterface.findBroker
(int id) BrokerBuilder.get
(int index) BrokerBuilderDecorator.get
(int index) BrokerBuilderInterface.get
(int index) BrokerBuilderDecorator.getBroker()
Modifier and TypeMethodDescriptionBrokerBuilder.getBrokers()
BrokerBuilderDecorator.getBrokers()
BrokerBuilderInterface.getBrokers()
Modifier and TypeMethodDescriptionBrokerBuilder.create
(Consumer<DatacenterBroker> brokerConsumer) BrokerBuilderDecorator.create
(Consumer<DatacenterBroker> brokerConsumer) BrokerBuilderInterface.create
(Consumer<DatacenterBroker> brokerConsumer) Creates a broker -
Uses of DatacenterBroker in org.cloudsimplus.faultinjection
Modifier and TypeMethodDescriptionvoid
HostFaultInjection.addVmCloner
(DatacenterBroker broker, VmCloner cloner) double
HostFaultInjection.availability
(DatacenterBroker broker) Gets the availability for a given broker as a percentage value between 0 and 1, based on VMs' downtime (the times VMs took to be repaired).long
HostFaultInjection.getTotalFaultsNumber
(DatacenterBroker broker) Gets the total number of Host faults which affected all VMs from a given broker or VMs from all existing brokers.double
HostFaultInjection.meanTimeBetweenVmFaultsInMinutes
(DatacenterBroker broker) Computes the current Mean Time Between host Failures (MTBF) in minutes, which affected VMs from a given broker.double
HostFaultInjection.meanTimeToRepairVmFaultsInMinutes
(DatacenterBroker broker) Computes the current Mean Time To Repair Failures of VMs in minutes (MTTR) belonging to given broker. -
Uses of DatacenterBroker in org.cloudsimplus.listeners
Modifier and TypeMethodDescriptionDatacenterBrokerEventInfo.getDatacenterBroker()
Gets theDatacenterBroker
for which the event happened.Modifier and TypeMethodDescriptionstatic DatacenterBrokerEventInfo
DatacenterBrokerEventInfo.of
(EventListener<? extends EventInfo> listener, DatacenterBroker broker) Gets aDatacenterBrokerEventInfo
instance from the given parameters. -
Uses of DatacenterBroker in org.cloudsimplus.testbeds
Modifier and TypeMethodDescriptionprotected abstract DatacenterBroker
Experiment.createBroker()
Creates a DatacenterBroker.Modifier and TypeMethodDescriptionExperiment.getBrokerList()
Gets the list of created DatacenterBrokers.protected Function<DatacenterBroker,
Integer> Experiment.getVmsByBrokerFunction()
Gets aFunction
that receives aDatacenterBroker
and returns the number of Vms to create for that broker.Modifier and TypeMethodDescriptionprotected void
Experiment.createAndSubmitCloudletsInternal
(DatacenterBroker broker) Creates all the Cloudlets required by the experiment and submits them to a Broker.protected abstract Cloudlet
Experiment.createCloudlet
(DatacenterBroker broker) Experiment.createCloudlets
(DatacenterBroker broker) Creates a list of Cloudlets to be used by the experiment.protected abstract Vm
Experiment.createVm
(DatacenterBroker broker, int id) Experiment.createVms
(DatacenterBroker broker) Creates the Vms to be used by the experiment.Modifier and TypeMethodDescriptionfinal void
Experiment.setVmsByBrokerFunction
(Function<DatacenterBroker, Integer> vmsByBrokerFunction) Sets aFunction
that receives aDatacenterBroker
and returns the number of Vms to create for that broker. -
Uses of DatacenterBroker in org.cloudsimplus.traces.google
Modifier and TypeMethodDescriptionBrokerManager.getBrokers()
Gets the List of brokers created according to the username from the trace file, representing a customer.Modifier and TypeMethodDescriptionvoid
BrokerManager.setDefaultBroker
(DatacenterBroker broker) Defines a default broker to will be used for all created Cloudlets.Modifier and TypeMethodDescriptionstatic GoogleTaskUsageTraceReader
GoogleTaskUsageTraceReader.getInstance
(List<DatacenterBroker> brokers, String filePath) Gets aGoogleTaskUsageTraceReader
instance to read a "task usage" trace file inside the application's resource directory.ModifierConstructorDescriptionGoogleTaskUsageTraceReader
(List<DatacenterBroker> brokers, String filePath) Instantiates aGoogleTaskUsageTraceReader
to read a "task usage" trace file.