VmHostEventInfo

public interface VmHostEventInfo extends VmEventInfo, HostEventInfo

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.

Author:Manoel Campos da Silva Filho

See also: Vm.addOnHostAllocationListener(EventListener), Vm.addOnHostDeallocationListener(EventListener), Vm.addOnUpdateProcessingListener(EventListener)

Methods

of

static VmHostEventInfo of(EventListener<? extends EventInfo> listener, Vm vm)

Gets a VmHostEventInfo instance from the given parameters. The Host attribute is defined as the Host where the Vm is running and the getTime() is the current simulation time.

Parameters:
  • listener – the listener to be notified about the event
  • vmVm that fired the event

of

static VmHostEventInfo of(EventListener<? extends EventInfo> listener, Vm vm, Host host)

Gets a VmHostEventInfo instance from the given parameters. The getTime() is the current simulation time.

Parameters: