Interface VmAllocationPolicyMigration

All Superinterfaces:
VmAllocationPolicy
All Known Subinterfaces:
VmAllocationPolicyMigrationDynamicUpperThreshold
All Known Implementing Classes:
VmAllocationPolicyMigrationAbstract, VmAllocationPolicyMigrationBestFitStaticThreshold, VmAllocationPolicyMigrationDynamicUpperThresholdFirstFit, VmAllocationPolicyMigrationFirstFitStaticThreshold, VmAllocationPolicyMigrationStaticThreshold, VmAllocationPolicyMigrationWorstFitStaticThreshold

public interface VmAllocationPolicyMigration extends VmAllocationPolicy
An interface to be implemented by a VM allocation policy that detects Host under and over CPU utilization.
Since:
CloudSim Plus 1.0
Author:
Anton Beloglazov, Manoel Campos da Silva Filho
  • Field Details

  • Method Details

    • isHostUnderloaded

      boolean isHostUnderloaded(Host host)
      Checks if host is currently under utilized, according the conditions defined by the Allocation Policy.
      Parameters:
      host - the host
      Returns:
      true, if the host is under utilized; false otherwise
    • isHostOverloaded

      boolean isHostOverloaded(Host host)
      Checks if host is currently over utilized, according the conditions defined by the Allocation Policy.
      Parameters:
      host - the host to check
      Returns:
      true, if the host is over utilized; false otherwise
    • getOverUtilizationThreshold

      double getOverUtilizationThreshold(Host host)
      Gets the host CPU utilization threshold to detect over utilization. It is a percentage value from 0 to 1. Whether it is a static or dynamically defined threshold depends on each implementing class.
      Parameters:
      host - the host to get the over utilization threshold
      Returns:
      the over utilization threshold
    • setVmSelectionPolicy

      void setVmSelectionPolicy(VmSelectionPolicy vmSelectionPolicy)
      Sets the the policy that defines how VMs are selected for migration.
      Parameters:
      vmSelectionPolicy - the new vm selection policy
    • getVmSelectionPolicy

      VmSelectionPolicy getVmSelectionPolicy()
      Gets the the policy that defines how VMs are selected for migration.
      Returns:
      the VmSelectionPolicy.
    • getUnderUtilizationThreshold

      double getUnderUtilizationThreshold()
      Gets the percentage of total CPU utilization to indicate that a host is under used and its VMs have to be migrated.
      Returns:
      the under utilization threshold (in scale is from 0 to 1, where 1 is 100%)
    • setUnderUtilizationThreshold

      void setUnderUtilizationThreshold(double underUtilizationThreshold)
      Sets the percentage of total CPU utilization to indicate that a host is under used and its VMs have to be migrated.
      Parameters:
      underUtilizationThreshold - the under utilization threshold (in scale is from 0 to 1, where 1 is 100%)
    • areHostsUnderloaded

      boolean areHostsUnderloaded()
      Checks if there are some Hosts underloaded.
      Returns:
    • areHostsOverloaded

      boolean areHostsOverloaded()
      Checks if there are some Hosts overloaded.
      Returns:
    • areHostsUnderOrOverloaded

      default boolean areHostsUnderOrOverloaded()
      Checks if there are some Hosts either under or overloaded.
      Returns: