Interface VmSelectionPolicy

All Known Implementing Classes:
VmSelectionPolicyMinimumMigrationTime, VmSelectionPolicyMinimumUtilization, VmSelectionPolicyRandomSelection

public interface VmSelectionPolicy
An interface to be used to implement VM selection policies for a list of migratable VMs. The selection is defined by sub-classes.
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
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final VmSelectionPolicy
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets a VM to migrate from a given host.
  • Field Details

  • Method Details

    • getVmToMigrate

      Optional<Vm> getVmToMigrate(Host host)
      Gets a VM to migrate from a given host.
      Parameters:
      host - the host to get a Vm to migrate from
      Returns:
      a Optional containing the selected vm to migrate; or empty Optional if there is not Vm to migrate