Package org.cloudsimplus.listeners
Interface VmHostEventInfo
- All Superinterfaces:
EventInfo
,HostEventInfo
,VmEventInfo
An interface that represents data to be passed
to
EventListener
objects that are registered to be notified
when some events happen for a given Vm
that is related to
some Host
.
It can be used to notify Listeners when a Host is Vm.addOnHostAllocationListener(EventListener)
allocated} to or
Vm.addOnHostDeallocationListener(EventListener)
deallocated} from a given Vm,
when a Vm has its Vm.addOnUpdateProcessingListener(EventListener)
processing updated by its Host},
etc.
- Since:
- CloudSim Plus 1.0
- Author:
- Manoel Campos da Silva Filho
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic VmHostEventInfo
of
(EventListener<VmHostEventInfo> listener, Vm vm) Gets a VmHostEventInfo instance from the given parameters.static VmHostEventInfo
of
(EventListener<VmHostEventInfo> listener, Vm vm, Host host) Gets a VmHostEventInfo instance from the given parameters.Methods inherited from interface org.cloudsimplus.listeners.EventInfo
getListener, getTime
Methods inherited from interface org.cloudsimplus.listeners.HostEventInfo
getHost
Methods inherited from interface org.cloudsimplus.listeners.VmEventInfo
getVm
-
Method Details
-
of
Gets a VmHostEventInfo instance from the given parameters. TheHost
attribute is defined as theHost
where theVm
is running and theEventInfo.getTime()
is the current simulation time.- Parameters:
listener
- the listener to be notified about the eventvm
-Vm
that fired the event
-
of
Gets a VmHostEventInfo instance from the given parameters. TheEventInfo.getTime()
is the current simulation time.- Parameters:
listener
- the listener to be notified about the eventvm
-Vm
that fired the eventhost
-Host
theVm
is related to. Such a Host 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.addOnHostAllocationListener(EventListener)
OnHostAllocation} orVm.addOnHostDeallocationListener(EventListener)
OnHostDeallocation}
-