Uses of Interface
org.cloudbus.cloudsim.vms.Vm
Package | Description |
---|---|
org.cloudbus.cloudsim.allocationpolicies |
Provides classes that implement policies for a
Datacenter
to select a Host to place or migrate a VM, based on some criteria defined by each class. |
org.cloudbus.cloudsim.allocationpolicies.migration |
Provides
VmAllocationPolicy implementations
that enables VM migration. |
org.cloudbus.cloudsim.brokers |
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. |
org.cloudbus.cloudsim.cloudlets | |
org.cloudbus.cloudsim.cloudlets.network |
Provides network-enabled
Cloudlet implementations. |
org.cloudbus.cloudsim.core |
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. |
org.cloudbus.cloudsim.datacenters |
Provides
Datacenter implementations,
that represents a physical Cloud Datacenter and contains a set of
Host that together provide the basic cloud infrastructure. |
org.cloudbus.cloudsim.hosts |
Provides
Host implementations
that represent a Physical Machine (PM) is used to run Vm
from different cloud customers
(represented by a DatacenterBroker ). |
org.cloudbus.cloudsim.hosts.network |
Provides network-enabled
Host implementations. |
org.cloudbus.cloudsim.network |
Provides classes to define network assets, such
as different kinds of
AbstractSwitch
and also the NetworkTopology
that can be specified in some standard file format and read
using a implementation of TopologyReader . |
org.cloudbus.cloudsim.network.switches |
Provides classes that implement the
Switch interface
to allow creating Network Switches that compose a network topology. |
org.cloudbus.cloudsim.provisioners |
Provides
ResourceProvisioner implementations
that define policies used by a Host
to manage the allocation of some resource for its VMs, such as
Ram ,
Bandwidth or Pe . |
org.cloudbus.cloudsim.resources |
Provides classes that represent different physical and logical
Resource used by simulation
objects such as Hosts and VMs. |
org.cloudbus.cloudsim.schedulers.cloudlet |
Provides
CloudletScheduler
implementations that are used to schedule the execution of multiple
Cloudlet inside a given
Vm . |
org.cloudbus.cloudsim.schedulers.cloudlet.network |
Provides
CloudletTaskScheduler implementations
to perform network packet dispatching by a regular
CloudletScheduler . |
org.cloudbus.cloudsim.schedulers.vm |
Provides
VmScheduler
implementations that are used to schedule the execution of multiple
Vm inside a given
Host . |
org.cloudbus.cloudsim.selectionpolicies |
Provides
VmSelectionPolicy
implementations that define policies to be used by a Host
to select a Vm to migrate from a list of VMs. |
org.cloudbus.cloudsim.vms |
Provides implementations of Virtual Machines (
Vm )
which are a software package that emulate the architecture of a physical machine. |
org.cloudbus.cloudsim.vms.network |
Provides network-enabled
Vm implementations. |
org.cloudsimplus.autoscaling |
Provides classes to enable horizontal and vertical scaling
of VMs in order to, respectively, adapt resource requirements to current workload
and to balance load across different VMs.
|
org.cloudsimplus.builders |
Provides
Builder classes that
implement the Builder Design Pattern
to allow instantiating multiple simulation objects more easily. |
org.cloudsimplus.faultinjection |
Provides classes to inject random faults during simulation runtime.
|
org.cloudsimplus.heuristics |
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.
|
org.cloudsimplus.listeners |
Provides
EventListener
implementations to enable event notifications during simulation execution. |
org.cloudsimplus.testbeds |
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.
|
-
Uses of Vm in org.cloudbus.cloudsim.allocationpolicies
Methods in org.cloudbus.cloudsim.allocationpolicies with type parameters of type Vm Modifier and Type Method Description <T extends Vm>
List<T>VmAllocationPolicy. allocateHostForVm(Collection<T> vmCollection)
<T extends Vm>
List<T>VmAllocationPolicyAbstract. allocateHostForVm(Collection<T> vmCollection)
Methods in org.cloudbus.cloudsim.allocationpolicies that return types with arguments of type Vm Modifier and Type Method Description Map<Vm,Host>
VmAllocationPolicy. getOptimizedAllocationMap(List<? extends Vm> vmList)
Gets a map of optimized allocation for VMs according to current utilization and Hosts under and overloaded conditions.Map<Vm,Host>
VmAllocationPolicyAbstract. getOptimizedAllocationMap(List<? extends Vm> vmList)
Gets a map of optimized allocation for VMs according to current utilization and Hosts under and overloaded conditions.Methods in org.cloudbus.cloudsim.allocationpolicies with parameters of type Vm Modifier and Type Method Description boolean
VmAllocationPolicy. allocateHostForVm(Vm vm)
boolean
VmAllocationPolicy. allocateHostForVm(Vm vm, Host host)
boolean
VmAllocationPolicyAbstract. allocateHostForVm(Vm vm)
Allocates the host with less PEs in use for a given VM.boolean
VmAllocationPolicyAbstract. allocateHostForVm(Vm vm, Host host)
void
VmAllocationPolicy. deallocateHostForVm(Vm vm)
Releases the host used by a VM.void
VmAllocationPolicyAbstract. deallocateHostForVm(Vm vm)
protected abstract Optional<Host>
VmAllocationPolicyAbstract. defaultFindHostForVm(Vm vm)
Provides the default implementation of the policy to find a suitable Host for a given VM.protected Optional<Host>
VmAllocationPolicyBestFit. defaultFindHostForVm(Vm vm)
Gets the first suitable host from theVmAllocationPolicyAbstract.getHostList()
that has the most number of PEs in use (i.e.protected Optional<Host>
VmAllocationPolicyFirstFit. defaultFindHostForVm(Vm vm)
protected Optional<Host>
VmAllocationPolicyRandom. defaultFindHostForVm(Vm vm)
protected Optional<Host>
VmAllocationPolicyRoundRobin. defaultFindHostForVm(Vm vm)
protected Optional<Host>
VmAllocationPolicySimple. defaultFindHostForVm(Vm vm)
Gets the first suitable host from theVmAllocationPolicyAbstract.getHostList()
that has the fewest number of used PEs (i.e, higher free PEs).protected Optional<Host>
VmAllocationPolicyWorstFit. defaultFindHostForVm(Vm vm)
Gets the first suitable host from theVmAllocationPolicyAbstract.getHostList()
that has the least number of PEs in use (i.e.Optional<Host>
VmAllocationPolicy. findHostForVm(Vm vm)
Finds a suitable host that has enough resources to place a given VM.Optional<Host>
VmAllocationPolicyAbstract. findHostForVm(Vm vm)
Method parameters in org.cloudbus.cloudsim.allocationpolicies with type arguments of type Vm Modifier and Type Method Description Map<Vm,Host>
VmAllocationPolicy. getOptimizedAllocationMap(List<? extends Vm> vmList)
Gets a map of optimized allocation for VMs according to current utilization and Hosts under and overloaded conditions.Map<Vm,Host>
VmAllocationPolicyAbstract. getOptimizedAllocationMap(List<? extends Vm> vmList)
Gets a map of optimized allocation for VMs according to current utilization and Hosts under and overloaded conditions.void
VmAllocationPolicy. setFindHostForVmFunction(BiFunction<VmAllocationPolicy,Vm,Optional<Host>> findHostForVmFunction)
Sets aBiFunction
that selects a Host for a given Vm.void
VmAllocationPolicyAbstract. setFindHostForVmFunction(BiFunction<VmAllocationPolicy,Vm,Optional<Host>> findHostForVmFunction)
Sets aBiFunction
that selects a Host for a given Vm.Constructor parameters in org.cloudbus.cloudsim.allocationpolicies with type arguments of type Vm Constructor Description VmAllocationPolicyAbstract(BiFunction<VmAllocationPolicy,Vm,Optional<Host>> findHostForVmFunction)
Creates a VmAllocationPolicy, changing theBiFunction
to select a Host for a Vm.VmAllocationPolicySimple(BiFunction<VmAllocationPolicy,Vm,Optional<Host>> findHostForVmFunction)
Instantiates a VmAllocationPolicySimple, changing theFunction
to select a Host for a Vm in order to define a different policy. -
Uses of Vm in org.cloudbus.cloudsim.allocationpolicies.migration
Methods in org.cloudbus.cloudsim.allocationpolicies.migration that return types with arguments of type Vm Modifier and Type Method Description Map<Vm,Host>
VmAllocationPolicyMigrationAbstract. getOptimizedAllocationMap(List<? extends Vm> vmList)
protected List<? extends Vm>
VmAllocationPolicyMigrationAbstract. getVmsToMigrateFromUnderUtilizedHost(Host host)
Gets the VMs to migrate from under utilized host.Methods in org.cloudbus.cloudsim.allocationpolicies.migration with parameters of type Vm Modifier and Type Method Description protected Optional<Host>
VmAllocationPolicyMigrationAbstract. defaultFindHostForVm(Vm vm)
protected Optional<Host>
VmAllocationPolicyMigrationAbstract. findHostForVmInternal(Vm vm, Stream<Host> hostStream)
Applies additional filters to the Hosts Stream and performs the actual Host selection.protected Optional<Host>
VmAllocationPolicyMigrationBestFitStaticThreshold. findHostForVmInternal(Vm vm, Stream<Host> hostStream)
Gets the Host having the least available MIPS capacity (max used MIPS).protected Optional<Host>
VmAllocationPolicyMigrationWorstFitStaticThreshold. findHostForVmInternal(Vm vm, Stream<Host> hostStream)
Gets the Host having the most available MIPS capacity (min used MIPS).protected double
VmAllocationPolicyMigrationAbstract. getMaxUtilizationAfterAllocation(Host host, Vm vm)
Gets the max power consumption of a host after placement of a candidate VM.protected double
VmAllocationPolicyMigrationAbstract. getPowerAfterAllocation(Host host, Vm vm)
Gets the power consumption of a host after the supposed placement of a candidate VM.protected double
VmAllocationPolicyMigrationAbstract. getPowerDifferenceAfterAllocation(Host host, Vm vm)
Gets the power consumption different after the supposed placement of a VM into a given Host and the original Host power consumption.Method parameters in org.cloudbus.cloudsim.allocationpolicies.migration with type arguments of type Vm Modifier and Type Method Description Map<Vm,Host>
VmAllocationPolicyMigrationAbstract. getOptimizedAllocationMap(List<? extends Vm> vmList)
Constructor parameters in org.cloudbus.cloudsim.allocationpolicies.migration with type arguments of type Vm Constructor Description VmAllocationPolicyMigrationAbstract(VmSelectionPolicy vmSelectionPolicy, BiFunction<VmAllocationPolicy,Vm,Optional<Host>> findHostForVmFunction)
Creates a new VmAllocationPolicy, changing theFunction
to select a Host for a Vm.VmAllocationPolicyMigrationBestFitStaticThreshold(VmSelectionPolicy vmSelectionPolicy, double overUtilizationThreshold, BiFunction<VmAllocationPolicy,Vm,Optional<Host>> findHostForVmFunction)
Creates a new VmAllocationPolicy, changing theFunction
to select a Host for a Vm.VmAllocationPolicyMigrationStaticThreshold(VmSelectionPolicy vmSelectionPolicy, double overUtilizationThreshold, BiFunction<VmAllocationPolicy,Vm,Optional<Host>> findHostForVmFunction)
Creates a VmAllocationPolicyMigrationStaticThreshold, changing theFunction
to select a Host for a Vm.VmAllocationPolicyMigrationWorstFitStaticThreshold(VmSelectionPolicy vmSelectionPolicy, double overUtilizationThreshold, BiFunction<VmAllocationPolicy,Vm,Optional<Host>> findHostForVmFunction)
Creates a new VmAllocationPolicy, changing theFunction
to select a Host for a Vm. -
Uses of Vm in org.cloudbus.cloudsim.brokers
Methods in org.cloudbus.cloudsim.brokers with type parameters of type Vm Modifier and Type Method Description <T extends Vm>
List<T>DatacenterBroker. getVmCreatedList()
Gets the list of all VMs created so far, independently if they are running yet or were already destroyed.<T extends Vm>
List<T>DatacenterBrokerAbstract. getVmCreatedList()
<T extends Vm>
List<T>DatacenterBroker. getVmExecList()
Gets the list of VMs in execution, if they are running Cloudlets or not.<T extends Vm>
List<T>DatacenterBrokerAbstract. getVmExecList()
<T extends Vm>
List<T>DatacenterBroker. getVmFailedList()
Gets a List of VMs submitted to the broker that have failed to be created inside some Datacenter due to lack of suitable Hosts.<T extends Vm>
List<T>DatacenterBrokerAbstract. getVmFailedList()
<T extends Vm>
List<T>DatacenterBroker. getVmWaitingList()
Gets a List of VMs submitted to the broker that are waiting to be created inside some Datacenter yet.<T extends Vm>
List<T>DatacenterBrokerAbstract. getVmWaitingList()
Methods in org.cloudbus.cloudsim.brokers that return Vm Modifier and Type Method Description protected abstract Vm
DatacenterBrokerAbstract. defaultVmMapper(Cloudlet cloudlet)
The default policy used to select a VM to execute a given Cloudlet.Vm
DatacenterBrokerBestFit. defaultVmMapper(Cloudlet cloudlet)
Selects the VM with the lowest number of PEs that is able to run a given Cloudlet.Vm
DatacenterBrokerFirstFit. defaultVmMapper(Cloudlet cloudlet)
Selects the first VM with the lowest number of PEs that is able to run a given Cloudlet.Vm
DatacenterBrokerHeuristic. defaultVmMapper(Cloudlet cloudlet)
protected Vm
DatacenterBrokerSimple. defaultVmMapper(Cloudlet cloudlet)
The default policy used to select a VM to execute a given Cloudlet.protected Vm
DatacenterBrokerAbstract. getVmFromCreatedList(int vmIndex)
Gets a Vm at a given index from thelist of created VMs
.Vm
DatacenterBroker. getWaitingVm(int index)
Gets a VM from the waiting list.Vm
DatacenterBrokerAbstract. getWaitingVm(int index)
Methods in org.cloudbus.cloudsim.brokers that return types with arguments of type Vm Modifier and Type Method Description Function<Vm,Double>
DatacenterBroker. getVmDestructionDelayFunction()
Gets aFunction
which defines when an idle VM should be destroyed.Function<Vm,Double>
DatacenterBrokerAbstract. getVmDestructionDelayFunction()
Methods in org.cloudbus.cloudsim.brokers with parameters of type Vm Modifier and Type Method Description boolean
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 Datacenter
DatacenterBrokerAbstract. closestDatacenterMapper(Datacenter lastDatacenter, Vm vm)
The policy used to select the closest Datacenter to run eachwaiting VM
, according to their timezone offset.protected abstract Datacenter
DatacenterBrokerAbstract. defaultDatacenterMapper(Datacenter lastDatacenter, Vm vm)
The default policy used to select a Datacenter to runwaiting VMs
.protected Datacenter
DatacenterBrokerSimple. defaultDatacenterMapper(Datacenter lastDatacenter, Vm vm)
The default policy used to select a Datacenter to runwaiting VMs
.List<Cloudlet>
DatacenterBroker. destroyVm(Vm vm)
Destroys the passed VM.List<Cloudlet>
DatacenterBrokerAbstract. destroyVm(Vm vm)
protected Datacenter
DatacenterBrokerAbstract. getDatacenter(Vm vm)
Gets the Datacenter where a VM is placed.DatacenterBroker
DatacenterBroker. requestIdleVmDestruction(Vm vm)
Checks if a VM is idle VM and request it to be destroyed at the time defined by theDatacenterBroker.getVmDestructionDelayFunction()
.DatacenterBroker
DatacenterBrokerAbstract. requestIdleVmDestruction(Vm vm)
DatacenterBroker
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
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.DatacenterBroker
DatacenterBrokerAbstract. submitCloudletList(List<? extends Cloudlet> list, Vm vm)
DatacenterBroker
DatacenterBrokerAbstract. submitCloudletList(List<? extends Cloudlet> list, Vm vm, double submissionDelay)
DatacenterBroker
DatacenterBroker. submitVm(Vm vm)
DatacenterBroker
DatacenterBrokerAbstract. submitVm(Vm vm)
Method parameters in org.cloudbus.cloudsim.brokers with type arguments of type Vm Modifier and Type Method Description DatacenterBroker
DatacenterBroker. setDatacenterMapper(BiFunction<Datacenter,Vm,Datacenter> datacenterMapper)
Sets theBiFunction
that selects and returns a Datacenter to place submitted VMs.DatacenterBroker
DatacenterBrokerAbstract. setDatacenterMapper(BiFunction<Datacenter,Vm,Datacenter> datacenterMapper)
DatacenterBroker
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.DatacenterBroker
DatacenterBrokerAbstract. setVmComparator(Comparator<Vm> comparator)
DatacenterBroker
DatacenterBroker. setVmDestructionDelayFunction(Function<Vm,Double> function)
Sets aFunction
to define the delay after which an idle VM should be destroyed.DatacenterBroker
DatacenterBrokerAbstract. setVmDestructionDelayFunction(Function<Vm,Double> function)
DatacenterBroker
DatacenterBroker. setVmMapper(Function<Cloudlet,Vm> vmMapper)
Sets aFunction
that maps a given Cloudlet to a Vm.DatacenterBroker
DatacenterBrokerAbstract. setVmMapper(Function<Cloudlet,Vm> vmMapper)
DatacenterBroker
DatacenterBroker. submitVmList(List<? extends Vm> list)
Submits a list ofVm
orVmGroup
that their creation inside a Host will be requested to someDatacenter
.DatacenterBroker
DatacenterBroker. submitVmList(List<? extends Vm> list, double submissionDelay)
DatacenterBroker
DatacenterBrokerAbstract. submitVmList(List<? extends Vm> list)
Submits a list ofVm
orVmGroup
that their creation inside a Host will be requested to someDatacenter
.DatacenterBroker
DatacenterBrokerAbstract. submitVmList(List<? extends Vm> list, double submissionDelay)
-
Uses of Vm in org.cloudbus.cloudsim.cloudlets
-
Uses of Vm in org.cloudbus.cloudsim.cloudlets.network
Methods in org.cloudbus.cloudsim.cloudlets.network that return Vm Modifier and Type Method Description Vm
CloudletReceiveTask. getSourceVm()
Gets the Vm where it is expected to receive packets from.Constructors in org.cloudbus.cloudsim.cloudlets.network with parameters of type Vm Constructor Description CloudletReceiveTask(int id, Vm sourceVm)
Creates a new task. -
Uses of Vm in org.cloudbus.cloudsim.core
Methods in org.cloudbus.cloudsim.core with parameters of type Vm Modifier and Type Method Description default double
Machine. getExpectedRelativeCpuUtilization(Vm vm, double vmCpuUtilizationPercent)
Computes what would be the relative percentage of the CPU the VM is using from a Machine's total MIPS Capacity, considering that the VM's CPU load is at a given percentage.default double
Machine. getRelativeBwUtilization(Vm vm)
Computes the relative percentage of the BW a VM is using from a Machine's total Capacity for the current simulation time.default double
Machine. getRelativeCpuUtilization(Vm vm)
Computes the current relative percentage of the CPU the VM is using from the Machine's total MIPS Capacity.default double
Machine. getRelativeMipsCapacityPercent(Vm vm)
Gets the percentage of the MIPS capacity a VM represents from the total Machine's MIPS capacity.default double
Machine. getRelativeRamUtilization(Vm vm)
Computes the relative percentage of the RAM a VM is using from a Machine's total Capacity for the current simulation time. -
Uses of Vm in org.cloudbus.cloudsim.datacenters
Methods in org.cloudbus.cloudsim.datacenters with parameters of type Vm Modifier and Type Method Description static Datacenter
TimeZoned. closestDatacenter(Vm vm, List<Datacenter> datacenters)
Selects theDatacenter
closest to a givenVm
, based on their timezone.void
Datacenter. requestVmMigration(Vm sourceVm)
void
Datacenter. requestVmMigration(Vm sourceVm, Host targetHost)
void
DatacenterSimple. requestVmMigration(Vm sourceVm)
void
DatacenterSimple. requestVmMigration(Vm sourceVm, Host targetHost)
-
Uses of Vm in org.cloudbus.cloudsim.hosts
Methods in org.cloudbus.cloudsim.hosts with type parameters of type Vm Modifier and Type Method Description <T extends Vm>
List<T>Host. getVmCreatedList()
Gets a read-only list of all VMs which have been created into the host during the entire simulation.<T extends Vm>
List<T>HostSimple. getVmCreatedList()
<T extends Vm>
List<T>Host. getVmList()
Gets a read-only list of VMs currently assigned to the host.<T extends Vm>
List<T>HostSimple. getVmList()
<T extends Vm>
Set<T>Host. getVmsMigratingIn()
Gets the list of VMs migrating into this host.<T extends Vm>
Set<T>HostSimple. getVmsMigratingIn()
Methods in org.cloudbus.cloudsim.hosts that return types with arguments of type Vm Modifier and Type Method Description List<Vm>
Host. getFinishedVms()
Gets the List of VMs that have finished executing.List<Vm>
HostSimple. getFinishedVms()
List<Vm>
Host. getMigratableVms()
Gets the list of migratable VMs from a given host.List<Vm>
HostSimple. getMigratableVms()
Set<Vm>
Host. getVmsMigratingOut()
Gets a read-only list of VMs migrating out from the Host.Set<Vm>
HostSimple. getVmsMigratingOut()
Methods in org.cloudbus.cloudsim.hosts with parameters of type Vm Modifier and Type Method Description boolean
Host. addMigratingInVm(Vm vm)
Try to add a VM migrating into the current host if there is enough resources for it.boolean
HostSimple. addMigratingInVm(Vm vm)
boolean
Host. addVmMigratingOut(Vm vm)
Adds aVm
to the list of VMs migrating out from the Host.boolean
HostSimple. addVmMigratingOut(Vm vm)
protected void
HostSimple. addVmToCreatedList(Vm vm)
protected void
HostSimple. addVmToList(Vm vm)
boolean
Host. createTemporaryVm(Vm vm)
Try to allocate resources to a new temporary VM in the Host.boolean
HostSimple. createTemporaryVm(Vm vm)
boolean
Host. createVm(Vm vm)
Try to allocate resources to a new VM in the Host.boolean
HostSimple. createVm(Vm vm)
protected void
HostSimple. deallocateResourcesOfVm(Vm vm)
Deallocate all resources that a VM was using.void
Host. destroyTemporaryVm(Vm vm)
Destroys a temporary VM created into the Host to book resources.void
HostSimple. destroyTemporaryVm(Vm vm)
void
Host. destroyVm(Vm vm)
Destroys a VM running in the host and removes it from theHost.getVmList()
.void
HostSimple. destroyVm(Vm vm)
protected List<Double>
HostSimple. getAllocatedMipsForVm(Vm vm)
Gets the MIPS share of each Pe that is allocated to a given VM.HostSuitability
Host. getSuitabilityFor(Vm vm)
Checks if the host is suitable for a Vm (if it has enough resources to attend the Vm) and the Host is not failed, providing fine-grained information about each individual Host's resource suitability.HostSuitability
HostSimple. getSuitabilityFor(Vm vm)
double
Host. getTotalAllocatedMipsForVm(Vm vm)
Gets the total allocated MIPS for a VM along all its PEs.double
HostSimple. getTotalAllocatedMipsForVm(Vm vm)
boolean
Host. isSuitableForVm(Vm vm)
Checks if the host is suitable for a Vm (if it has enough resources to attend the Vm) and the Host is not failed.boolean
HostSimple. isSuitableForVm(Vm vm)
void
Host. removeMigratingInVm(Vm vm)
Removes a VM migrating into this Host from the migrating-in list, so that the VM can be actually placed into the Host and the migration process finished.void
HostSimple. removeMigratingInVm(Vm vm)
boolean
Host. removeVmMigratingOut(Vm vm)
Adds aVm
to the list of VMs migrating out from the Host.boolean
HostSimple. removeVmMigratingOut(Vm vm)
-
Uses of Vm in org.cloudbus.cloudsim.hosts.network
Methods in org.cloudbus.cloudsim.hosts.network with parameters of type Vm Modifier and Type Method Description boolean
NetworkHost. createVm(Vm vm)
Try to allocate resources to a new VM in the Host. -
Uses of Vm in org.cloudbus.cloudsim.network
Methods in org.cloudbus.cloudsim.network that return Vm Modifier and Type Method Description Vm
VmPacket. getDestination()
Gets the id of the VM that has to receive the packet.Vm
VmPacket. getSource()
Gets the VM sending the packet.Methods in org.cloudbus.cloudsim.network with parameters of type Vm Modifier and Type Method Description void
VmPacket. setDestination(Vm destinationVmId)
Sets the id of the VM that has to receive the packet.void
VmPacket. setSource(Vm sourceVmId)
Sets the id of the VM sending the packet. -
Uses of Vm in org.cloudbus.cloudsim.network.switches
Methods in org.cloudbus.cloudsim.network.switches with parameters of type Vm Modifier and Type Method Description protected NetworkHost
AbstractSwitch. getVmHost(Vm vm)
Gets the Host where a VM is placed. -
Uses of Vm in org.cloudbus.cloudsim.provisioners
Methods in org.cloudbus.cloudsim.provisioners that return types with arguments of type Vm Modifier and Type Method Description protected Map<Vm,Long>
ResourceProvisionerAbstract. getResourceAllocationMap()
Gets the VM resource allocation map, where each key is a VM and each value is the amount of resource allocated to that VM.Methods in org.cloudbus.cloudsim.provisioners with parameters of type Vm Modifier and Type Method Description boolean
PeProvisioner. allocateResourceForVm(Vm vm, long mipsCapacity)
Allocates an amount of MIPS from the physical Pe to a new virtual PE for a given VM.default boolean
ResourceProvisioner. allocateResourceForVm(Vm vm, double newTotalVmResource)
Allocates an amount of the physical resource for a VM, changing the current capacity of the virtual resource to the given amount.boolean
ResourceProvisioner. allocateResourceForVm(Vm vm, long newTotalVmResourceCapacity)
Allocates an amount of the physical resource for a VM, changing the current capacity of the virtual resource to the given amount.boolean
ResourceProvisionerSimple. allocateResourceForVm(Vm vm, double newTotalVmResource)
boolean
ResourceProvisionerSimple. allocateResourceForVm(Vm vm, long newTotalVmResourceCapacity)
boolean
PeProvisioner. deallocateResourceForVm(Vm vm)
Releases the virtual Pe allocated to a given VM.boolean
ResourceProvisioner. deallocateResourceForVm(Vm vm)
Releases all the allocated amount of the resource used by a VM.boolean
ResourceProvisionerSimple. deallocateResourceForVm(Vm vm)
protected abstract long
ResourceProvisionerAbstract. deallocateResourceForVmAndSetAllocationMapEntryToZero(Vm vm)
Deallocate the resource for the given VM, without removing the VM fro the allocation map.protected long
ResourceProvisionerSimple. deallocateResourceForVmAndSetAllocationMapEntryToZero(Vm vm)
long
PeProvisioner. getAllocatedResourceForVm(Vm vm)
Gets the amount of allocated MIPS from the physical Pe to a virtual PE of a VM.long
ResourceProvisioner. getAllocatedResourceForVm(Vm vm)
Gets the amount of resource allocated to a given VM from the physical resourcelong
ResourceProvisionerAbstract. getAllocatedResourceForVm(Vm vm)
boolean
ResourceProvisioner. isResourceAllocatedToVm(Vm vm)
Checks if the resource the provisioner manages is allocated to a given Vm.boolean
ResourceProvisionerAbstract. isResourceAllocatedToVm(Vm vm)
boolean
ResourceProvisioner. isSuitableForVm(Vm vm, long newVmTotalAllocatedResource)
Checks if it is possible to change the current allocated resource for a given VM to a new amount, depending on the available physical resource remaining.boolean
ResourceProvisionerSimple. isSuitableForVm(Vm vm, long newVmTotalAllocatedResource)
-
Uses of Vm in org.cloudbus.cloudsim.resources
Methods in org.cloudbus.cloudsim.resources that return Vm Modifier and Type Method Description Vm
Processor. getVm()
Gets theVm
the processor belongs to.Constructors in org.cloudbus.cloudsim.resources with parameters of type Vm Constructor Description Processor(Vm vm, double pesMips, long numberOfPes)
Instantiates a Processor for a given VM. -
Uses of Vm in org.cloudbus.cloudsim.schedulers.cloudlet
-
Uses of Vm in org.cloudbus.cloudsim.schedulers.cloudlet.network
Methods in org.cloudbus.cloudsim.schedulers.cloudlet.network that return Vm Modifier and Type Method Description Vm
CloudletTaskScheduler. getVm()
Gets the Vm that the CloudletTaskScheduler will sent packets from or receive packets to.Vm
CloudletTaskSchedulerSimple. getVm()
Methods in org.cloudbus.cloudsim.schedulers.cloudlet.network with parameters of type Vm Modifier and Type Method Description void
CloudletTaskScheduler. setVm(Vm vm)
Sets the Vm that the CloudletTaskScheduler will sent packets from or receive packets to.void
CloudletTaskSchedulerSimple. setVm(Vm vm)
-
Uses of Vm in org.cloudbus.cloudsim.schedulers.vm
Methods in org.cloudbus.cloudsim.schedulers.vm that return types with arguments of type Vm Modifier and Type Method Description protected Map<Vm,List<Double>>
VmSchedulerAbstract. getAllocatedMipsMap()
Gets a map of MIPS allocated to each VM, were each key is a VM and each value is the List of currently allocated MIPS from the respective physical PEs which are being used by such a VM.protected Map<Vm,List<Double>>
VmSchedulerAbstract. getRequestedMipsMap()
Gets a map of MIPS requested by each VM, where each key is a VM and each value is a list of MIPS requested by that VM.Methods in org.cloudbus.cloudsim.schedulers.vm with parameters of type Vm Modifier and Type Method Description protected void
VmSchedulerTimeShared. allocateMipsShareForVm(Vm vm, List<Double> requestedMipsReduced)
Performs the allocation of a MIPS List to a given VM.protected void
VmSchedulerTimeSharedOverSubscription. allocateMipsShareForVm(Vm vm, List<Double> requestedMipsReduced)
boolean
VmScheduler. allocatePesForVm(Vm vm)
Requests the allocation of PEs for a VM, according to the number of PEs and MIPS defined by VM attributes.boolean
VmScheduler. allocatePesForVm(Vm vm, List<Double> requestedMips)
Requests the allocation of PEs for a VM.boolean
VmSchedulerAbstract. allocatePesForVm(Vm vm)
boolean
VmSchedulerAbstract. allocatePesForVm(Vm vm, List<Double> requestedMips)
protected abstract boolean
VmSchedulerAbstract. allocatePesForVmInternal(Vm vm, List<Double> mipsShareRequested)
boolean
VmSchedulerSpaceShared. allocatePesForVmInternal(Vm vm, List<Double> requestedMips)
boolean
VmSchedulerTimeShared. allocatePesForVmInternal(Vm vm, List<Double> requestedMips)
void
VmScheduler. deallocatePesFromVm(Vm vm)
Releases all PEs allocated to a VM.void
VmScheduler. deallocatePesFromVm(Vm vm, int pesToRemove)
Releases a given number of PEs from a VM.void
VmSchedulerAbstract. deallocatePesFromVm(Vm vm)
void
VmSchedulerAbstract. deallocatePesFromVm(Vm vm, int pesToRemove)
protected abstract void
VmSchedulerAbstract. deallocatePesFromVmInternal(Vm vm, int pesToRemove)
protected void
VmSchedulerSpaceShared. deallocatePesFromVmInternal(Vm vm, int pesToRemove)
protected void
VmSchedulerTimeShared. deallocatePesFromVmInternal(Vm vm, int pesToRemove)
List<Double>
VmScheduler. getAllocatedMips(Vm vm)
Gets the MIPS share of each host's Pe that is allocated to a given VM.List<Double>
VmSchedulerAbstract. getAllocatedMips(Vm vm)
protected List<Double>
VmSchedulerAbstract. getMipsShareRequestedReduced(Vm vm, List<Double> mipsShareRequested)
Gets an adjusted List of MIPS requested by a VM, reducing every MIPS which is higher than thecapacity of each physical PE
to that value.protected List<Double>
VmSchedulerTimeShared. getMipsShareToAllocate(Vm vm, List<Double> requestedMips)
Gets the actual MIPS that will be allocated to each vPE (Virtual PE), considering the VM migration status.List<Double>
VmScheduler. getRequestedMips(Vm vm)
Gets the List of MIPS requested by a VM.List<Double>
VmSchedulerAbstract. getRequestedMips(Vm vm)
double
VmScheduler. getTotalAllocatedMipsForVm(Vm vm)
Gets the actual total allocated MIPS for a VM along all its allocated PEs.double
VmSchedulerAbstract. getTotalAllocatedMipsForVm(Vm vm)
boolean
VmScheduler. isSuitableForVm(Vm vm)
Checks if the PM using this scheduler has enough MIPS capacity to host a given VM.boolean
VmScheduler. isSuitableForVm(Vm vm, List<Double> requestedMips)
Checks if a list of MIPS requested by a VM is allowed to be allocated or not.boolean
VmSchedulerAbstract. isSuitableForVm(Vm vm)
boolean
VmSchedulerAbstract. isSuitableForVm(Vm vm, List<Double> requestedMips)
protected abstract boolean
VmSchedulerAbstract. isSuitableForVmInternal(Vm vm, List<Double> requestedMips)
protected boolean
VmSchedulerSpaceShared. isSuitableForVmInternal(Vm vm, List<Double> requestedMips)
protected boolean
VmSchedulerTimeShared. isSuitableForVmInternal(Vm vm, List<Double> requestedMips)
The non-emptiness of the list is ensured by theVmSchedulerAbstract.isSuitableForVm(Vm, List)
method.protected boolean
VmSchedulerTimeSharedOverSubscription. isSuitableForVmInternal(Vm vm, List<Double> requestedMips)
Checks if a list of MIPS requested by a VM is allowed to be allocated or not.protected double
VmSchedulerAbstract. percentOfMipsToRequest(Vm vm)
Gets the percentage of the MIPS requested by a VM that will be in fact requested to the Host, according to the VM migration status: VM is migrating out of this Host: the MIPS requested by VM will be reduced according to theCPU migration overhead
.protected void
VmSchedulerAbstract. putAllocatedMipsMap(Vm vm, List<Double> requestedMips)
protected <T> int
VmSchedulerAbstract. removePesFromMap(Vm vm, Map<Vm,List<T>> map, int pesToRemove)
Remove a given number of PEs from a givenVm -> List<PE>
Map, where each PE in the List associated to each Vm may be an actualPe
object or just its capacity in MIPS (Double).Method parameters in org.cloudbus.cloudsim.schedulers.vm with type arguments of type Vm Modifier and Type Method Description protected <T> int
VmSchedulerAbstract. removePesFromMap(Vm vm, Map<Vm,List<T>> map, int pesToRemove)
Remove a given number of PEs from a givenVm -> List<PE>
Map, where each PE in the List associated to each Vm may be an actualPe
object or just its capacity in MIPS (Double). -
Uses of Vm in org.cloudbus.cloudsim.selectionpolicies
Methods in org.cloudbus.cloudsim.selectionpolicies that return Vm Modifier and Type Method Description Vm
VmSelectionPolicy. getVmToMigrate(Host host)
Gets a VM to migrate from a given host.Vm
VmSelectionPolicyMinimumMigrationTime. getVmToMigrate(Host host)
Vm
VmSelectionPolicyMinimumUtilization. getVmToMigrate(Host host)
Vm
VmSelectionPolicyRandomSelection. getVmToMigrate(Host host)
-
Uses of Vm in org.cloudbus.cloudsim.vms
Classes in org.cloudbus.cloudsim.vms that implement Vm Modifier and Type Class Description class
VmGroup
Represents a List of VMs that form a group, so that should be placed together at the same, according to resource availability.class
VmSimple
Implements the basic features of a Virtual Machine (VM) that runs inside aHost
that may be shared among other VMs.Fields in org.cloudbus.cloudsim.vms declared as Vm Modifier and Type Field Description static Vm
Vm. NULL
An attribute that implements the Null Object Design Pattern forVm
objects.Methods in org.cloudbus.cloudsim.vms that return Vm Modifier and Type Method Description Vm
VmSimple. addExpectedFreePesNumber(long pesToAdd)
Adds a given number of expected free PEs to the total number of expected free PEs.Vm
Vm. addOnCreationFailureListener(EventListener<VmDatacenterEventInfo> listener)
Adds a listener object that will be notified when the Vm fail in being placed for lack of aHost
with enough resources in a specificDatacenter
.Vm
VmSimple. addOnCreationFailureListener(EventListener<VmDatacenterEventInfo> listener)
Vm
Vm. addOnHostAllocationListener(EventListener<VmHostEventInfo> listener)
Adds a listener object that will be notified when aHost
is allocated to the Vm, that is, when the Vm is placed into a given Host.Vm
VmSimple. addOnHostAllocationListener(EventListener<VmHostEventInfo> listener)
Vm
Vm. addOnHostDeallocationListener(EventListener<VmHostEventInfo> listener)
Adds a listener object that will be notified when the Vm is moved/removed from aHost
.Vm
VmSimple. addOnHostDeallocationListener(EventListener<VmHostEventInfo> listener)
Vm
Vm. addOnMigrationFinishListener(EventListener<VmHostEventInfo> listener)
Adds a listener object that will be notified when a VM finishes migrating to a targetHost
.Vm
VmSimple. addOnMigrationFinishListener(EventListener<VmHostEventInfo> listener)
Vm
Vm. addOnMigrationStartListener(EventListener<VmHostEventInfo> listener)
Adds a listener object that will be notified when a VM starts migrating to a targetHost
.Vm
VmSimple. addOnMigrationStartListener(EventListener<VmHostEventInfo> listener)
Vm
Vm. addOnUpdateProcessingListener(EventListener<VmHostEventInfo> listener)
Adds a listener object that will be notified every time when the processing of the Vm is updated in itsHost
.Vm
VmSimple. addOnUpdateProcessingListener(EventListener<VmHostEventInfo> listener)
Vm
VmCost. getVm()
Gets the VM for which the total monetary cost will be computed.Vm
VmSimple. removeExpectedFreePesNumber(long pesToRemove)
Adds a given number of expected free PEs to the total number of expected free PEs.Vm
Vm. setBw(long bwCapacity)
Sets the bandwidth capacity (in Megabits/s)Vm
VmSimple. setBw(long bwCapacity)
Vm
Vm. setBwVerticalScaling(VerticalVmScaling bwVerticalScaling)
Sets aVerticalVmScaling
that will check if the Vm'sBandwidth
is under or overloaded, based on some conditions defined byPredicate
s given to the VerticalVmScaling, and then request the Bandwidth up or down scaling.Vm
VmSimple. setBwVerticalScaling(VerticalVmScaling bwVerticalScaling)
Vm
Vm. setCloudletScheduler(CloudletScheduler cloudletScheduler)
Sets the Cloudlet scheduler the Vm uses to schedule cloudlets execution.Vm
VmSimple. setCloudletScheduler(CloudletScheduler cloudletScheduler)
Vm
Vm. setDescription(String description)
Sets the VM description, which is an optional text which one can use to provide details about this of this VM.Vm
VmSimple. setDescription(String description)
Vm
VmSimple. setFreePesNumber(long freePesNumber)
Sets the current number of free PEs.Vm
Vm. setHorizontalScaling(HorizontalVmScaling horizontalScaling)
Sets aHorizontalVmScaling
that will check if the Vm is overloaded, based on some conditions defined by aPredicate
given to the HorizontalVmScaling, and then request the creation of new VMs to horizontally scale the Vm.Vm
VmSimple. setHorizontalScaling(HorizontalVmScaling horizontalScaling)
Vm
Vm. setPeVerticalScaling(VerticalVmScaling peVerticalScaling)
Sets aVerticalVmScaling
that will check if the Vm'sPe
is under or overloaded, based on some conditions defined byPredicate
s given to the VerticalVmScaling, and then request the Pe up or down scaling.Vm
VmSimple. setPeVerticalScaling(VerticalVmScaling peVerticalScaling)
Vm
Vm. setRam(long ramCapacity)
Sets RAM capacity in Megabytes.Vm
VmSimple. setRam(long ramCapacity)
Vm
Vm. setRamVerticalScaling(VerticalVmScaling ramVerticalScaling)
Sets aVerticalVmScaling
that will check if the Vm'sRam
is under or overloaded, based on some conditions defined byPredicate
s given to the VerticalVmScaling, and then request the RAM up or down scaling.Vm
VmSimple. setRamVerticalScaling(VerticalVmScaling ramVerticalScaling)
Vm
Vm. setSize(long size)
Sets the storage size (capacity) of the VM image in Megabytes.Vm
VmSimple. setSize(long size)
Vm
Vm. setStartTime(double startTime)
Sets the time the VM was created into some Host for the first time.Vm
VmSimple. setStartTime(double startTime)
Vm
Vm. setStopTime(double stopTime)
Sets the time the VM was destroyed into the last Host it executed (in seconds).Vm
VmSimple. setStopTime(double stopTime)
Vm
Vm. setTimeZone(double timeZone)
Sets the time zone offset, a value between [-12 and 12], in which the VM is expected to be placed (if there is aDatacenter
with enough capacity available at that timezone).Vm
VmGroup. setTimeZone(double timeZone)
Vm
VmSimple. setTimeZone(double timeZone)
Methods in org.cloudbus.cloudsim.vms that return types with arguments of type Vm Modifier and Type Method Description List<Vm>
VmGroup. getVmList()
Gets the List of VMs belonging to this group.Methods in org.cloudbus.cloudsim.vms with parameters of type Vm Modifier and Type Method Description int
VmSimple. compareTo(Vm o)
Compare this Vm with another one based onVmSimple.getTotalMipsCapacity()
.Constructors in org.cloudbus.cloudsim.vms with parameters of type Vm Constructor Description VmCost(Vm vm)
Creates a VmCost object to compute the monetary cost to run a given VM.VmResourceStats(Vm machine, Function<Vm,Double> resourceUtilizationFunction)
Creates a VmResourceStats to collect resource utilization statistics for a VM.VmSimple(Vm sourceVm)
A copy constructor that creates a VM based on the configuration of another one.Constructor parameters in org.cloudbus.cloudsim.vms with type arguments of type Vm Constructor Description VmGroup(long id, List<Vm> vmList, double timeZone)
Creates a VmGroup for a List of VMs to be placed at the datacenter closest to a given timezone.VmGroup(List<Vm> vmList)
Creates a VmGroup for a List of VMs.VmGroup(List<Vm> vmList, double timeZone)
Creates a VmGroup for a List of VMs to be placed at the datacenter closest to a given timezone.VmResourceStats(Vm machine, Function<Vm,Double> resourceUtilizationFunction)
Creates a VmResourceStats to collect resource utilization statistics for a VM. -
Uses of Vm in org.cloudbus.cloudsim.vms.network
Classes in org.cloudbus.cloudsim.vms.network that implement Vm Modifier and Type Class Description class
NetworkVm
NetworkVm class extendsVmSimple
to support simulation of networked datacenters. -
Uses of Vm in org.cloudsimplus.autoscaling
Fields in org.cloudsimplus.autoscaling with type parameters of type Vm Modifier and Type Field Description static Predicate<Vm>
HorizontalVmScaling. FALSE_PREDICATE
Methods in org.cloudsimplus.autoscaling that return Vm Modifier and Type Method Description Vm
VmScaling. getVm()
Gets theVm
that this Load Balancer is linked to.Vm
VmScalingAbstract. getVm()
Methods in org.cloudsimplus.autoscaling that return types with arguments of type Vm Modifier and Type Method Description Function<Vm,Double>
VerticalVmScaling. getLowerThresholdFunction()
Function<Vm,Double>
VerticalVmScalingSimple. getLowerThresholdFunction()
Predicate<Vm>
HorizontalVmScaling. getOverloadPredicate()
Gets aPredicate
that defines whenVm
is overloaded or not, that will make the Vm'sDatacenterBroker
to up scale the VM.Predicate<Vm>
HorizontalVmScalingSimple. getOverloadPredicate()
Function<Vm,Double>
VerticalVmScaling. getResourceUsageThresholdFunction()
Gets the lower or upper resource utilization thresholdFunction
, depending if the Vm resource is under or overloaded, respectively.Function<Vm,Double>
VerticalVmScalingSimple. getResourceUsageThresholdFunction()
Function<Vm,Double>
VerticalVmScaling. getUpperThresholdFunction()
Function<Vm,Double>
VerticalVmScalingSimple. getUpperThresholdFunction()
Supplier<Vm>
HorizontalVmScaling. getVmSupplier()
Gets aSupplier
that will be used to create VMs when the Load Balancer detects that the current Broker's VMs are overloaded.Supplier<Vm>
HorizontalVmScalingSimple. getVmSupplier()
Methods in org.cloudsimplus.autoscaling with parameters of type Vm Modifier and Type Method Description VmScaling
VmScaling. setVm(Vm vm)
Sets aVm
to this Load Balancer.VmScaling
VmScalingAbstract. setVm(Vm vm)
Method parameters in org.cloudsimplus.autoscaling with type arguments of type Vm Modifier and Type Method Description VerticalVmScaling
VerticalVmScaling. setLowerThresholdFunction(Function<Vm,Double> lowerThresholdFunction)
VerticalVmScaling
VerticalVmScalingSimple. setLowerThresholdFunction(Function<Vm,Double> lowerThresholdFunction)
VmScaling
HorizontalVmScaling. setOverloadPredicate(Predicate<Vm> predicate)
Sets aPredicate
that defines when theVm
is overloaded or not, making theDatacenterBroker
to up scale the VM.VmScaling
HorizontalVmScalingSimple. setOverloadPredicate(Predicate<Vm> predicate)
VerticalVmScaling
VerticalVmScaling. setUpperThresholdFunction(Function<Vm,Double> upperThresholdFunction)
VerticalVmScaling
VerticalVmScalingSimple. setUpperThresholdFunction(Function<Vm,Double> upperThresholdFunction)
HorizontalVmScaling
HorizontalVmScaling. setVmSupplier(Supplier<Vm> supplier)
Sets aSupplier
that will be used to create VMs when the Load Balancer detects that Broker's VMs are overloaded.HorizontalVmScaling
HorizontalVmScalingSimple. setVmSupplier(Supplier<Vm> supplier)
-
Uses of Vm in org.cloudsimplus.builders
Methods in org.cloudsimplus.builders that return Vm Modifier and Type Method Description Vm
SimulationScenarioBuilder. getFirstVmFromFirstBroker()
Vm
VmBuilder. getVmById(int id)
Vm
SimulationScenarioBuilder. getVmFromBroker(int vmIndex, int brokerIndex)
Methods in org.cloudsimplus.builders that return types with arguments of type Vm Modifier and Type Method Description List<Vm>
VmBuilder. getVms()
Methods in org.cloudsimplus.builders with parameters of type Vm Modifier and Type Method Description CloudletBuilder
CloudletBuilder. setVm(Vm defaultVm)
Method parameters in org.cloudsimplus.builders with type arguments of type Vm Modifier and Type Method Description VmBuilder
VmBuilder. setVmCreationFunction(BiFunction<Double,Long,Vm> vmCreationFunction)
Sets aBiFunction
used to create VMs. -
Uses of Vm in org.cloudsimplus.faultinjection
Methods in org.cloudsimplus.faultinjection that return types with arguments of type Vm Modifier and Type Method Description Map.Entry<Vm,List<Cloudlet>>
VmCloner. clone(Vm sourceVm)
Clones a givenVm
using the Vm Cloner Function and their Cloudlets using the Cloudlets Cloner Function, binding the cloned Cloudlets to the cloned Vm.Map.Entry<Vm,List<Cloudlet>>
VmClonerSimple. clone(Vm sourceVm)
Methods in org.cloudsimplus.faultinjection with parameters of type Vm Modifier and Type Method Description Map.Entry<Vm,List<Cloudlet>>
VmCloner. clone(Vm sourceVm)
Clones a givenVm
using the Vm Cloner Function and their Cloudlets using the Cloudlets Cloner Function, binding the cloned Cloudlets to the cloned Vm.Map.Entry<Vm,List<Cloudlet>>
VmClonerSimple. clone(Vm sourceVm)
Method parameters in org.cloudsimplus.faultinjection with type arguments of type Vm Modifier and Type Method Description VmCloner
VmCloner. setCloudletsClonerFunction(Function<Vm,List<Cloudlet>> cloudletsClonerFunction)
VmCloner
VmClonerSimple. setCloudletsClonerFunction(Function<Vm,List<Cloudlet>> cloudletsClonerFunction)
VmCloner
VmCloner. setVmClonerFunction(UnaryOperator<Vm> vmClonerFunction)
Sets theUnaryOperator
to be used to cloneVm
s.VmCloner
VmClonerSimple. setVmClonerFunction(UnaryOperator<Vm> vmClonerFunction)
Constructor parameters in org.cloudsimplus.faultinjection with type arguments of type Vm Constructor Description VmClonerSimple(UnaryOperator<Vm> vmClonerFunction, Function<Vm,List<Cloudlet>> cloudletsClonerFunction)
Creates aVm
cloner which makes the maximum of 1 Vm clone.VmClonerSimple(UnaryOperator<Vm> vmClonerFunction, Function<Vm,List<Cloudlet>> cloudletsClonerFunction)
Creates aVm
cloner which makes the maximum of 1 Vm clone. -
Uses of Vm in org.cloudsimplus.heuristics
Methods in org.cloudsimplus.heuristics that return types with arguments of type Vm Modifier and Type Method Description Heuristic<HeuristicSolution<Map<Cloudlet,Vm>>>
CloudletToVmMappingSolution. getHeuristic()
protected List<Map.Entry<Cloudlet,Vm>>
CloudletToVmMappingSolution. getRandomMapEntries()
Try to get 2 randomly selected entries from theCloudletToVmMappingSolution.cloudletVmMap
.Map<Cloudlet,Vm>
CloudletToVmMappingSolution. getResult()
List<Vm>
CloudletToVmMappingHeuristic. getVmList()
List<Vm>
CloudletToVmMappingSimulatedAnnealing. getVmList()
Methods in org.cloudsimplus.heuristics with parameters of type Vm Modifier and Type Method Description void
CloudletToVmMappingSolution. bindCloudletToVm(Cloudlet cloudlet, Vm vm)
Binds a cloudlet to be executed by a given Vm.double
CloudletToVmMappingSolution. getVmCost(Vm vm, List<Cloudlet> cloudlets)
Computes the cost of all Cloudlets hosted by a given Vm.Method parameters in org.cloudsimplus.heuristics with type arguments of type Vm Modifier and Type Method Description double
CloudletToVmMappingSolution. getVmCost(Map.Entry<Vm,List<Map.Entry<Cloudlet,Vm>>> entry)
Computes the cost of all Cloudlets hosted by a given Vm.double
CloudletToVmMappingSolution. getVmCost(Map.Entry<Vm,List<Map.Entry<Cloudlet,Vm>>> entry)
Computes the cost of all Cloudlets hosted by a given Vm.void
CloudletToVmMappingHeuristic. setVmList(List<Vm> vmList)
Sets the list of available VMs to host Cloudlets.void
CloudletToVmMappingSimulatedAnnealing. setVmList(List<Vm> vmList)
protected 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 Vm in org.cloudsimplus.listeners
Methods in org.cloudsimplus.listeners that return Vm Modifier and Type Method Description Vm
DatacenterVmMigrationEventInfo. getVm()
Gets the VM that started a migration process.Vm
VmEventInfo. getVm()
Gets theVm
for which the event happened.Methods in org.cloudsimplus.listeners with parameters of type Vm Modifier and Type Method Description 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, Vm vm)
Gets a CloudletVmEventInfo instance from the given parameters.static DatacenterVmMigrationEventInfo
DatacenterVmMigrationEventInfo. of(EventListener<DatacenterVmMigrationEventInfo> listener, Vm vm, boolean migrated)
Gets a VmDatacenterEventInfo instance from the given parameters.static VmDatacenterEventInfo
VmDatacenterEventInfo. of(EventListener<? extends EventInfo> listener, Vm vm)
Gets a VmDatacenterEventInfo instance from the given parameters.static VmDatacenterEventInfo
VmDatacenterEventInfo. of(EventListener<? extends EventInfo> listener, Vm vm, Datacenter datacenter)
Gets a VmDatacenterEventInfo instance from the given parameters.static VmHostEventInfo
VmHostEventInfo. of(EventListener<VmHostEventInfo> listener, Vm vm)
Gets a VmHostEventInfo instance from the given parameters.static VmHostEventInfo
VmHostEventInfo. of(EventListener<VmHostEventInfo> listener, Vm vm, Host host)
Gets a VmHostEventInfo instance from the given parameters. -
Uses of Vm in org.cloudsimplus.testbeds
Methods in org.cloudsimplus.testbeds that return Vm Modifier and Type Method Description protected abstract Vm
Experiment. createVm(DatacenterBroker broker, int id)
Methods in org.cloudsimplus.testbeds that return types with arguments of type Vm Modifier and Type Method Description protected List<Vm>
Experiment. createVms(DatacenterBroker broker)
Creates the Vms to be used by the experiment.List<Vm>
Experiment. getVmList()