Interface DatacenterVmMigrationEventInfo

All Superinterfaces:
DatacenterEventInfo, EventInfo, VmDatacenterEventInfo, VmEventInfo

public interface DatacenterVmMigrationEventInfo
extends VmDatacenterEventInfo
An interface that represent data to be passed to EventListener objects that are registered to be notified when a VM migration is successful or not.
Since:
CloudSim Plus 6.0.3
Author:
Manoel Campos da Silva Filho
  • Method Details

    • getVm

      Vm getVm()
      Gets the VM that started a migration process.
      Specified by:
      getVm in interface VmEventInfo
      Returns:
    • isMigrationSuccessful

      boolean isMigrationSuccessful()
      Indicates if the VM was successfully migrated or not.
      Returns:
    • getHostSuitability

      HostSuitability getHostSuitability()
      Gets information about the suitability of the Host for the given VM.
      Returns:
    • of

      Gets a VmDatacenterEventInfo instance from the given parameters. The Datacenter attribute is defined as the Datacenter where the Vm is running and the EventInfo.getTime() is the current simulation time..
      Parameters:
      listener - the listener to be notified about the event
      vm - the Vm that fired the event
      suitability - information about the suitability of the Host for the given VM.