PowerVmSelectionPolicy

public abstract class PowerVmSelectionPolicy

An abstract VM selection policy used to select VMs from 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:

Author:Anton Beloglazov

Methods

getMigratableVms

protected List<Vm> getMigratableVms(Host host)

Gets the list of migratable VMs from a given host.

Parameters:
  • host – the host to get VMs to migrate from
Returns:

the list of migratable VMs

getVmToMigrate

public abstract 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:

the vm to migrate or Vm.NULL if there is not Vm to migrate