Package org.cloudsimplus.listeners
Interface VmDatacenterEventInfo
- All Superinterfaces:
DatacenterEventInfo
,EventInfo
,VmEventInfo
- All Known Implementing Classes:
DatacenterVmMigrationEventInfo
An interface that represent data to be passed
to
EventListener
objects that are registered to be notified
when some events happen for a given Vm
running inside a Datacenter
.- Since:
- CloudSim Plus 1.0
- Author:
- Manoel Campos da Silva Filho
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic VmDatacenterEventInfo
of
(EventListener<VmDatacenterEventInfo> listener, Vm vm) Gets a VmDatacenterEventInfo instance from the given parameters.static VmDatacenterEventInfo
of
(EventListener<VmDatacenterEventInfo> listener, Vm vm, Datacenter datacenter) 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
Methods inherited from interface org.cloudsimplus.listeners.VmEventInfo
getVm
-
Method Details
-
of
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
-
of
static VmDatacenterEventInfo of(EventListener<VmDatacenterEventInfo> listener, Vm vm, Datacenter datacenter) Gets a VmDatacenterEventInfo instance from the given parameters. TheEventInfo.getTime()
is the current simulation time.- Parameters:
listener
- the listener to be notified about the eventvm
- theVm
that fired the eventdatacenter
-Datacenter
that theVm
is related to. Such a Datacenter can be that one where the Vm is or was placed, or where the Vm was tried to be be created, depending on the fired event, such as theVm.addOnCreationFailureListener(EventListener)
OnVmCreationFailure}
-