CloudletVmEventInfo

public interface CloudletVmEventInfo extends CloudletEventInfo, 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 Cloudlet running inside a Vm.

Author:Manoel Campos da Silva Filho

See also: Cloudlet.addOnUpdateProcessingListener(EventListener), Cloudlet.addOnFinishListener(EventListener)

Methods

of

static CloudletVmEventInfo of(EventListener<? extends EventInfo> listener, Cloudlet cloudlet, Vm vm)

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

Parameters:

of

static CloudletVmEventInfo of(EventListener<? extends EventInfo> listener, double time, Cloudlet cloudlet)

Gets a CloudletVmEventInfo instance from the given parameters. The Vm attribute is defined as the Vm where the Cloudlet is running.

Parameters:
  • time – the time the event happened
  • cloudlet – the Cloudlet that fired the event

See also: .of(EventListener,Cloudlet,Vm)

of

static CloudletVmEventInfo of(EventListener<? extends EventInfo> listener, Cloudlet cloudlet)

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

Parameters:
  • cloudlet – the Cloudlet that fired the event

See also: .of(EventListener,Cloudlet,Vm)

of

static CloudletVmEventInfo of(EventListener<? extends EventInfo> listener, double time, Cloudlet cloudlet, Vm vm)

Gets a CloudletVmEventInfo instance from the given parameters.

Parameters:
  • listener – the listener to be notified about the event
  • time – the time the event happened
  • cloudlet – the Cloudlet that fired the event
  • vm – the Vm where the Cloudlet is or was running into, depending on the fired event, such as the OnUpdateCloudletProcessing or OnCloudletFinish