VmDatacenterEventInfo

public interface VmDatacenterEventInfo extends VmEventInfo, DatacenterEventInfo

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.

Author:Manoel Campos da Silva Filho

See also: Vm.addOnCreationFailureListener(EventListener)

Methods

of

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

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

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

of

static VmDatacenterEventInfo of(EventListener<? extends EventInfo> listener, Vm vm, Datacenter datacenter)

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

Parameters:
  • listener – the listener to be notified about the event
  • vm – the Vm that fired the event
  • datacenterDatacenter that the Vm 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 the Vm.addOnCreationFailureListener(EventListener) OnVmCreationFailure}