Package org.cloudsimplus.listeners
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 Summary
Modifier and Type Method Description Vm
getVm()
Gets the VM that started a migration process.boolean
isMigrationSuccessful()
Indicates if the VM was successfully migrated or not.static DatacenterVmMigrationEventInfo
of(EventListener<DatacenterVmMigrationEventInfo> listener, Vm vm, boolean migrated)
Gets a VmDatacenterEventInfo instance from the given parameters.Methods inherited from interface org.cloudsimplus.listeners.DatacenterEventInfo
getDatacenter
Methods inherited from interface org.cloudsimplus.listeners.EventInfo
getListener, getTime
-
Method Details
-
getVm
Vm getVm()Gets the VM that started a migration process.- Specified by:
getVm
in interfaceVmEventInfo
- Returns:
-
isMigrationSuccessful
boolean isMigrationSuccessful()Indicates if the VM was successfully migrated or not.- Returns:
-
of
static DatacenterVmMigrationEventInfo of(EventListener<DatacenterVmMigrationEventInfo> listener, Vm vm, boolean migrated)Gets a VmDatacenterEventInfo instance from the given parameters. TheDatacenter
attribute is defined as theDatacenter
where theVm
is running and theEventInfo.getTime()
is the current simulation time..- Parameters:
listener
- the listener to be notified about the eventvm
- theVm
that fired the event
-