Uses of Interface
org.cloudbus.cloudsim.cloudlets.Cloudlet
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 network-enabled
Cloudlet
implementations.Provides
Datacenter
implementations,
that represents a physical Cloud Datacenter and contains a set of
Host
that together provide the basic cloud infrastructure.Provides
CloudletScheduler
implementations that are used to schedule the execution of multiple
Cloudlet
inside a given
Vm
.Provides
CloudletTaskScheduler
implementations
to perform network packet dispatching by a regular
CloudletScheduler
.Provides general purpose, helper classes used internally by CloudSim Plus.
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
Table
classes
that are used to format simulation results in different and structured ways such as
ASCII, CSV or HTML tables.Provides classes to inject random faults during simulation runtime.
Provides a set of interfaces and classes to develop heuristics to
find sub-optimal solutions for problems, considering some
utility function that has to be minimized or maximized.
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 Cloudlet in org.cloudbus.cloudsim.brokers
Modifier and TypeMethodDescriptionDatacenterBroker.getCloudletFinishedList()
Gets a copy of the list of cloudlets that have finished executing, to avoid the original list to be changed.DatacenterBrokerAbstract.getCloudletFinishedList()
DatacenterBroker.getCloudletWaitingList()
Gets the list of cloudlets submitted to the broker that are waiting to be created inside some Vm yet.DatacenterBrokerAbstract.getCloudletWaitingList()
Modifier and TypeMethodDescriptionDestroys the passed VM.DatacenterBroker.getCloudletCreatedList()
Gets a read-only list of cloudlets created inside some Vm.DatacenterBrokerAbstract.getCloudletCreatedList()
DatacenterBroker.getCloudletSubmittedList()
DatacenterBrokerAbstract.getCloudletSubmittedList()
Modifier and TypeMethodDescriptionboolean
DatacenterBroker.bindCloudletToVm
(Cloudlet cloudlet, Vm vm) Specifies that an already submitted cloudlet, which is in thewaiting list
, must run in a specific virtual machine.boolean
DatacenterBrokerAbstract.bindCloudletToVm
(Cloudlet cloudlet, Vm vm) protected abstract Vm
DatacenterBrokerAbstract.defaultVmMapper
(Cloudlet cloudlet) The default policy used to select a VM to execute a given Cloudlet.DatacenterBrokerBestFit.defaultVmMapper
(Cloudlet cloudlet) Selects the VM with the lowest number of PEs that is able to run a given Cloudlet.DatacenterBrokerFirstFit.defaultVmMapper
(Cloudlet cloudlet) Selects the first VM with the lowest number of PEs that is able to run a given Cloudlet.DatacenterBrokerHeuristic.defaultVmMapper
(Cloudlet cloudlet) protected Vm
DatacenterBrokerSimple.defaultVmMapper
(Cloudlet cloudlet) The default policy used to select a VM to execute a given Cloudlet.DatacenterBroker.submitCloudlet
(Cloudlet cloudlet) Submits a singleCloudlet
to the broker.DatacenterBrokerAbstract.submitCloudlet
(Cloudlet cloudlet) Modifier and TypeMethodDescriptionvoid
DatacenterBroker.setCloudletComparator
(Comparator<Cloudlet> comparator) Sets aComparator
that will be used to sort every list of submitted Cloudlets before mapping each Cloudlet to a Vm.void
DatacenterBrokerAbstract.setCloudletComparator
(Comparator<Cloudlet> comparator) Sets aComparator
that will be used to sort every list of submitted Cloudlets before mapping each Cloudlet to a Vm.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.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) -
Uses of Cloudlet in org.cloudbus.cloudsim.cloudlets
Modifier and TypeClassDescriptionclass
An abstract class forCloudlet
implementations.class
Cloudlet implements the basic features of an application/job/task to be executed by aVm
on behalf of a given user.Modifier and TypeFieldDescriptionstatic final Cloudlet
Cloudlet.NULL
An attribute that implements the Null Object Design Pattern forCloudlet
objects.Modifier and TypeMethodDescriptionCloudlet.addOnFinishListener
(EventListener<CloudletVmEventInfo> listener) Adds a Listener object that will be notified when a cloudlet finishes its execution at a givenVm
.CloudletAbstract.addOnFinishListener
(EventListener<CloudletVmEventInfo> listener) Cloudlet.addOnStartListener
(EventListener<CloudletVmEventInfo> listener) Adds a Listener object that will be notified when the Cloudlet starts executing in someVm
.CloudletAbstract.addOnStartListener
(EventListener<CloudletVmEventInfo> listener) Cloudlet.addOnUpdateProcessingListener
(EventListener<CloudletVmEventInfo> listener) Adds a Listener object that will be notified every time the processing of the Cloudlet is updated in itsVm
.CloudletAbstract.addOnUpdateProcessingListener
(EventListener<CloudletVmEventInfo> listener) CloudletExecution.getCloudlet()
Gets the Cloudlet for which the execution information is related to.Cloudlet.reset()
Resets the state of the Cloudlet.final Cloudlet
CloudletAbstract.reset()
Cloudlet.setFileSize
(long fileSize) Sets the input file size of this Cloudlet before execution (in bytes).final Cloudlet
CloudletAbstract.setFileSize
(long fileSize) Cloudlet.setLength
(long length) Sets the execution length of this Cloudlet (in Million Instructions (MI)) that will be executed in each defined PE.final Cloudlet
CloudletAbstract.setLength
(long length) Cloudlet.setNumberOfPes
(long numberOfPes) Sets the number of PEs required to run this Cloudlet.final Cloudlet
CloudletAbstract.setNumberOfPes
(long numberOfPes) Cloudlet.setOutputSize
(long outputSize) Sets the output file size of this Cloudlet after execution (in bytes).final Cloudlet
CloudletAbstract.setOutputSize
(long outputSize) Cloudlet.setPriority
(int priority) Sets thepriority
of this Cloudlet for scheduling inside a Vm.CloudletAbstract.setPriority
(int priority) Cloudlet.setSizes
(long size) Sets the input and output file sizes of this Cloudlet to the same value (in bytes).CloudletAbstract.setSizes
(long size) Cloudlet.setUtilizationModel
(UtilizationModel utilizationModel) Sets the same utilization model for defining the usage of Bandwidth, CPU and RAM.CloudletAbstract.setUtilizationModel
(UtilizationModel utilizationModel) Cloudlet.setUtilizationModelBw
(UtilizationModel utilizationModelBw) Sets theutilization model of bw
.final Cloudlet
CloudletAbstract.setUtilizationModelBw
(UtilizationModel utilizationModelBw) Cloudlet.setUtilizationModelCpu
(UtilizationModel utilizationModelCpu) Sets theutilization model of cpu
.final Cloudlet
CloudletAbstract.setUtilizationModelCpu
(UtilizationModel utilizationModelCpu) Cloudlet.setUtilizationModelRam
(UtilizationModel utilizationModelRam) Sets theutilization model of ram
.final Cloudlet
CloudletAbstract.setUtilizationModelRam
(UtilizationModel utilizationModelRam) Sets the id ofVm
that is planned to execute the cloudlet.Modifier and TypeMethodDescriptionint
Compare this Cloudlet with another one based onCloudletAbstract.getLength()
.ModifierConstructorDescriptionCloudletExecution
(Cloudlet cloudlet) Instantiates a CloudletExecutionInfo object upon the arrival of a Cloudlet inside a Datacenter. -
Uses of Cloudlet in org.cloudbus.cloudsim.cloudlets.network
Modifier and TypeClassDescriptionclass
NetworkCloudlet to support simulation of complex applications. -
Uses of Cloudlet in org.cloudbus.cloudsim.datacenters
Modifier and TypeMethodDescriptionprotected boolean
DatacenterSimple.processCloudletCancel
(Cloudlet cloudlet) Processes a Cloudlet cancel request.protected boolean
DatacenterSimple.processCloudletPause
(Cloudlet cloudlet, boolean ack) Processes a Cloudlet pause request.protected boolean
DatacenterSimple.processCloudletResume
(Cloudlet cloudlet, boolean ack) Processes a Cloudlet resume request. -
Uses of Cloudlet in org.cloudbus.cloudsim.schedulers.cloudlet
Modifier and TypeMethodDescriptionCloudletScheduler.getCloudletSubmittedList()
Gets the list of all Cloudlets submitted for a VM so far.CloudletSchedulerAbstract.getCloudletSubmittedList()
Modifier and TypeMethodDescriptionCloudletScheduler.cloudletCancel
(Cloudlet cloudlet) Cancels execution of a cloudlet.CloudletSchedulerAbstract.cloudletCancel
(Cloudlet cloudlet) CloudletScheduler.cloudletFail
(Cloudlet cloudlet) Sets a cloudlet as failed.CloudletSchedulerAbstract.cloudletFail
(Cloudlet cloudlet) Modifier and TypeMethodDescriptionCloudletScheduler.getCloudletList()
Gets a read-only List of all cloudlets which are either waiting or executing on the VM.CloudletSchedulerAbstract.getCloudletList()
CloudletSchedulerAbstract.getCloudletReturnedList()
Gets a read-only list of Cloudlets that finished executing and were returned the their broker.Modifier and TypeMethodDescriptionvoid
CloudletScheduler.addCloudletToReturnedList
(Cloudlet cloudlet) Adds a Cloudlet to the list of finished Cloudlets that have been returned to itsDatacenterBroker
.void
CloudletSchedulerAbstract.addCloudletToReturnedList
(Cloudlet cloudlet) CloudletScheduler.cloudletCancel
(Cloudlet cloudlet) Cancels execution of a cloudlet.CloudletSchedulerAbstract.cloudletCancel
(Cloudlet cloudlet) CloudletScheduler.cloudletFail
(Cloudlet cloudlet) Sets a cloudlet as failed.CloudletSchedulerAbstract.cloudletFail
(Cloudlet cloudlet) boolean
CloudletScheduler.cloudletPause
(Cloudlet cloudlet) Pauses execution of a cloudlet.boolean
CloudletSchedulerAbstract.cloudletPause
(Cloudlet cloudlet) boolean
CloudletScheduler.cloudletReady
(Cloudlet cloudlet) Sets the status of a Cloudlet toCloudlet.Status.READY
so that it can start executing as soon as possible.boolean
CloudletSchedulerAbstract.cloudletReady
(Cloudlet cloudlet) double
CloudletScheduler.cloudletResume
(Cloudlet cloudlet) Resumes execution of a paused cloudlet.double
CloudletSchedulerSpaceShared.cloudletResume
(Cloudlet cloudlet) double
CloudletSchedulerTimeShared.cloudletResume
(Cloudlet cloudlet) double
CloudletScheduler.cloudletSubmit
(Cloudlet cloudlet) Receives an cloudlet to be executed in the VM managed by this scheduler.double
CloudletScheduler.cloudletSubmit
(Cloudlet cloudlet, double fileTransferTime) Receives a cloudlet to be executed in the VM managed by this scheduler.final double
CloudletSchedulerAbstract.cloudletSubmit
(Cloudlet cloudlet) final double
CloudletSchedulerAbstract.cloudletSubmit
(Cloudlet cloudlet, double fileTransferTime) protected Optional<CloudletExecution>
CloudletSchedulerAbstract.findCloudletInList
(Cloudlet cloudlet, List<CloudletExecution> list) Search for a Cloudlet into a given list. -
Uses of Cloudlet in org.cloudbus.cloudsim.schedulers.cloudlet.network
Modifier and TypeMethodDescriptionboolean
CloudletTaskScheduler.isTimeToUpdateCloudletProcessing
(Cloudlet cloudlet) Checks if it's time to update the execution of a given Cloudlet.boolean
CloudletTaskSchedulerSimple.isTimeToUpdateCloudletProcessing
(Cloudlet cloudlet) void
CloudletTaskScheduler.processCloudletTasks
(Cloudlet cloudlet, long partialFinishedMI) Process Cloudlet's tasks, such as tasks to send packets from or received by a Cloudlet inside a VM.void
CloudletTaskSchedulerSimple.processCloudletTasks
(Cloudlet cloudlet, long partialFinishedMI) -
Uses of Cloudlet in org.cloudbus.cloudsim.util
Modifier and TypeMethodDescriptionSwfWorkloadFileReader.generateWorkload()
Generates a list of jobs (Cloudlets
) to be executed, if it wasn't generated yet.Modifier and TypeMethodDescriptionSwfWorkloadFileReader.setPredicate
(Predicate<Cloudlet> predicate) -
Uses of Cloudlet in org.cloudbus.cloudsim.vms
Modifier and TypeMethodDescriptionboolean
Vm.isSuitableForCloudlet
(Cloudlet cloudlet) Checks if the VM has enough capacity to run a Cloudlet.boolean
VmSimple.isSuitableForCloudlet
(Cloudlet cloudlet) -
Uses of Cloudlet in org.cloudsimplus.builders
Modifier and TypeMethodDescriptionvoid
CloudletBuilder.setCloudletCreationFunction
(BiFunction<Long, Integer, Cloudlet> cloudletCreationFunction) Sets aBiFunction
used to create Cloudlets. -
Uses of Cloudlet in org.cloudsimplus.builders.tables
ModifierConstructorDescriptionCloudletsTableBuilder
(List<? extends Cloudlet> list) Instantiates a builder to print the list of Cloudlets using the a defaultMarkdownTable
.CloudletsTableBuilder
(List<? extends Cloudlet> list, Table table) Instantiates a builder to print the list of Cloudlets using the givenTable
. -
Uses of Cloudlet in org.cloudsimplus.faultinjection
Modifier and TypeMethodDescriptionClones a givenVm
using the Vm Cloner Function and their Cloudlets using the Cloudlets Cloner Function, binding the cloned Cloudlets to the cloned Vm.Modifier and TypeMethodDescriptionVmCloner.setCloudletsClonerFunction
(Function<Vm, List<Cloudlet>> cloudletsClonerFunction) final VmCloner
VmClonerSimple.setCloudletsClonerFunction
(Function<Vm, List<Cloudlet>> cloudletsClonerFunction) ModifierConstructorDescriptionVmClonerSimple
(UnaryOperator<Vm> vmClonerFunction, Function<Vm, List<Cloudlet>> cloudletsClonerFunction) Creates aVm
cloner which makes the maximum of 1 Vm clone. -
Uses of Cloudlet in org.cloudsimplus.heuristics
Modifier and TypeMethodDescriptionCloudletToVmMappingHeuristic.getCloudletList()
CloudletToVmMappingSimulatedAnnealing.getCloudletList()
CloudletToVmMappingSolution.getHeuristic()
CloudletToVmMappingSolution.getRandomMapEntries()
Try to get 2 randomly selected entries from theCloudletToVmMappingSolution.cloudletVmMap
.CloudletToVmMappingSolution.getResult()
Modifier and TypeMethodDescriptionvoid
CloudletToVmMappingSolution.bindCloudletToVm
(Cloudlet cloudlet, Vm vm) Binds a cloudlet to be executed by a given Vm.Modifier and TypeMethodDescriptiondouble
Computes the cost of all Cloudlets hosted by a given Vm.double
Computes the cost of all Cloudlets hosted by a given Vm.void
CloudletToVmMappingHeuristic.setCloudletList
(List<Cloudlet> cloudletList) Sets the list of Cloudlets to be mapped toavailable Vm's
.void
CloudletToVmMappingSimulatedAnnealing.setCloudletList
(List<Cloudlet> cloudletList) protected final boolean
CloudletToVmMappingSolution.swapVmsOfTwoMapEntries
(List<Map.Entry<Cloudlet, Vm>> entries) Swap the Vm's of 2 randomly selected cloudlets in theCloudletToVmMappingSolution.cloudletVmMap
in order to provide a neighbor solution. -
Uses of Cloudlet in org.cloudsimplus.listeners
Modifier and TypeMethodDescriptionCloudletEventInfo.getCloudlet()
Gets theCloudlet
for which the event happened.Modifier and TypeMethodDescriptionCloudletResourceAllocationFailEventInfo.of
(EventListener<CloudletResourceAllocationFailEventInfo> listener, Cloudlet cloudlet, Class<? extends ResourceManageable> resourceClass, long requestedAmount, long availableAmount, double time) Gets a EventInfo instance from the given parameters.static CloudletVmEventInfo
CloudletVmEventInfo.of
(EventListener<? extends EventInfo> listener, double time, Cloudlet cloudlet) Gets a CloudletVmEventInfo instance from the given parameters.static CloudletVmEventInfo
CloudletVmEventInfo.of
(EventListener<? extends EventInfo> listener, double time, Cloudlet cloudlet, Vm vm) Gets a CloudletVmEventInfo instance from the given parameters.static CloudletVmEventInfo
CloudletVmEventInfo.of
(EventListener<? extends EventInfo> listener, Cloudlet cloudlet) Gets a CloudletVmEventInfo instance from the given parameters.static CloudletVmEventInfo
CloudletVmEventInfo.of
(EventListener<? extends EventInfo> listener, Cloudlet cloudlet, Vm vm) Gets a CloudletVmEventInfo instance from the given parameters. -
Uses of Cloudlet in org.cloudsimplus.testbeds
Modifier and TypeMethodDescriptionprotected abstract Cloudlet
Experiment.createCloudlet
(DatacenterBroker broker) Modifier and TypeMethodDescriptionExperiment.createCloudlets
(DatacenterBroker broker) Creates a list of Cloudlets to be used by the experiment.Experiment.getCloudletList()
-
Uses of Cloudlet in org.cloudsimplus.traces.google
Modifier and TypeFieldDescriptionprotected final Map<Cloudlet,
List<CloudSimEvent>> GoogleTaskEventsTraceReader.cloudletEvents
List of messages to send to theDatacenterBroker
that owns each created Cloudlet.Modifier and TypeMethodDescriptionprotected Cloudlet
GoogleTaskEventsTraceReader.createCloudlet
(TaskEvent taskEvent) Modifier and TypeMethodDescriptionGoogleTaskEventsTraceReader.getCloudletCreationFunction()
final Collection<Cloudlet>
GoogleTaskEventsTraceReader.process()
Process thetrace file
creating a Set ofCloudlet
s described in the file.GoogleTaskUsageTraceReader.process()
Processtrace file
requests to change resource usage ofCloudlet
s as described in the file.Modifier and TypeMethodDescriptionstatic GoogleTaskEventsTraceReader
GoogleTaskEventsTraceReader.getInstance
(CloudSim simulation, String filePath, Function<TaskEvent, Cloudlet> cloudletCreationFunction) Gets aGoogleTaskEventsTraceReader
instance to read a "task events" trace file inside the application's resource directory.void
GoogleTaskEventsTraceReader.setCloudletCreationFunction
(Function<TaskEvent, Cloudlet> cloudletCreationFunction) ModifierConstructorDescriptionprotected
GoogleTaskEventsTraceReader
(CloudSim simulation, String filePath, InputStream reader, Function<TaskEvent, Cloudlet> cloudletCreationFunction) Instantiates aGoogleTaskEventsTraceReader
to read a "task events" from a given InputStream.GoogleTaskEventsTraceReader
(CloudSim simulation, String filePath, Function<TaskEvent, Cloudlet> cloudletCreationFunction) Instantiates aGoogleTaskEventsTraceReader
to read a "task events" file.