Class PowerVmSelectionPolicyRandomSelection
- java.lang.Object
-
- org.cloudbus.cloudsim.selectionpolicies.power.PowerVmSelectionPolicy
-
- org.cloudbus.cloudsim.selectionpolicies.power.PowerVmSelectionPolicyRandomSelection
-
public class PowerVmSelectionPolicyRandomSelection extends PowerVmSelectionPolicy
A VM selection policy that randomly select VMs to migrate from a host.
If you are using any algorithms, policies or workload included in the power package please cite the following paper:
- Since:
- CloudSim Toolkit 3.0
- Author:
- Anton Beloglazov
-
-
Constructor Summary
Constructors Constructor Description PowerVmSelectionPolicyRandomSelection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Vm
getVmToMigrate(Host host)
Gets a VM to migrate from a given host.
-
-
-
Method Detail
-
getVmToMigrate
public Vm getVmToMigrate(Host host)
Description copied from class:PowerVmSelectionPolicy
Gets a VM to migrate from a given host.- Specified by:
getVmToMigrate
in classPowerVmSelectionPolicy
- Parameters:
host
- the host to get a Vm to migrate from- Returns:
- the vm to migrate or
Vm.NULL
if there is not Vm to migrate
-
-