Uses of Interface
org.cloudsimplus.listeners.EventListener
Package | Description |
---|---|
org.cloudbus.cloudsim.brokers |
Provides
DatacenterBroker classes that act on behalf of a cloud customer,
attending his/her requests for creation and destruction of
Cloudlets and
VMs , assigning such Cloudlets to specific VMs. |
org.cloudbus.cloudsim.cloudlets | |
org.cloudbus.cloudsim.core |
Provides core classes used just internally by CloudSim Plus,
except the
CloudSim class that is the
start point and main class used to run simulations. |
org.cloudbus.cloudsim.core.events |
Provides classes used by the core message passing mechanisms.
|
org.cloudbus.cloudsim.datacenters |
Provides
Datacenter implementations,
that represents a physical Cloud Datacenter and contains a set of
Host that together provide the basic cloud infrastructure. |
org.cloudbus.cloudsim.hosts |
Provides
Host implementations
that represent a Physical Machine (PM) is used to run Vm
from different cloud customers
(represented by a DatacenterBroker ). |
org.cloudbus.cloudsim.schedulers.cloudlet |
Provides
CloudletScheduler
implementations that are used to schedule the execution of multiple
Cloudlet inside a given
Vm . |
org.cloudbus.cloudsim.vms |
Provides implementations of Virtual Machines (
Vm )
which are a software package that emulate the architecture of a physical machine. |
org.cloudsimplus.builders |
Provides
Builder classes that
implement the Builder Design Pattern
to allow instantiating multiple simulation objects more easily. |
org.cloudsimplus.listeners |
Provides
EventListener
implementations to enable event notifications during simulation execution. |
-
Uses of EventListener in org.cloudbus.cloudsim.brokers
Methods in org.cloudbus.cloudsim.brokers with parameters of type EventListener Modifier and Type Method Description DatacenterBroker
DatacenterBroker. addOnVmsCreatedListener(EventListener<DatacenterBrokerEventInfo> listener)
Adds anEventListener
that will be notified every time VMs in the waiting list are all created (placed) in some Host.DatacenterBroker
DatacenterBrokerAbstract. addOnVmsCreatedListener(EventListener<DatacenterBrokerEventInfo> listener)
DatacenterBroker
DatacenterBroker. removeOnVmsCreatedListener(EventListener<? extends EventInfo> listener)
Removes anEventListener
to stop it to be notified when VMs in the waiting list are all created.DatacenterBroker
DatacenterBrokerAbstract. removeOnVmsCreatedListener(EventListener<? extends EventInfo> listener)
-
Uses of EventListener in org.cloudbus.cloudsim.cloudlets
Methods in org.cloudbus.cloudsim.cloudlets with parameters of type EventListener Modifier and Type Method Description Cloudlet
Cloudlet. addOnFinishListener(EventListener<CloudletVmEventInfo> listener)
Adds a Listener object that will be notified when a cloudlet finishes its execution at a givenVm
.Cloudlet
CloudletAbstract. addOnFinishListener(EventListener<CloudletVmEventInfo> listener)
Cloudlet
Cloudlet. addOnStartListener(EventListener<CloudletVmEventInfo> listener)
Adds a Listener object that will be notified when the Cloudlet starts executing in someVm
.Cloudlet
CloudletAbstract. addOnStartListener(EventListener<CloudletVmEventInfo> listener)
Cloudlet
Cloudlet. addOnUpdateProcessingListener(EventListener<CloudletVmEventInfo> listener)
Adds a Listener object that will be notified every time the processing of the Cloudlet is updated in itsVm
.Cloudlet
CloudletAbstract. addOnUpdateProcessingListener(EventListener<CloudletVmEventInfo> listener)
boolean
Cloudlet. removeOnFinishListener(EventListener<CloudletVmEventInfo> listener)
Removes a listener from the onCloudletFinishEventListener Listboolean
CloudletAbstract. removeOnFinishListener(EventListener<CloudletVmEventInfo> listener)
boolean
Cloudlet. removeOnStartListener(EventListener<CloudletVmEventInfo> listener)
Removes a listener from the onStartListener List.boolean
CloudletAbstract. removeOnStartListener(EventListener<CloudletVmEventInfo> listener)
boolean
Cloudlet. removeOnUpdateProcessingListener(EventListener<CloudletVmEventInfo> listener)
Removes a listener from the onUpdateCloudletProcessingListener List.boolean
CloudletAbstract. removeOnUpdateProcessingListener(EventListener<CloudletVmEventInfo> listener)
-
Uses of EventListener in org.cloudbus.cloudsim.core
Methods in org.cloudbus.cloudsim.core with parameters of type EventListener Modifier and Type Method Description Simulation
CloudSim. addOnClockTickListener(EventListener<EventInfo> listener)
Simulation
Simulation. addOnClockTickListener(EventListener<EventInfo> listener)
Adds aEventListener
object that will be notified every time when the simulation clock advances.Simulation
CloudSim. addOnEventProcessingListener(EventListener<SimEvent> listener)
Simulation
Simulation. addOnEventProcessingListener(EventListener<SimEvent> listener)
Adds aEventListener
object that will be notified when any event is processed by CloudSim.Simulation
CloudSim. addOnSimulationPauseListener(EventListener<EventInfo> listener)
Simulation
Simulation. addOnSimulationPauseListener(EventListener<EventInfo> listener)
Adds anEventListener
object that will be notified when the simulation is paused.Simulation
CloudSim. addOnSimulationStartListener(EventListener<EventInfo> listener)
Simulation
Simulation. addOnSimulationStartListener(EventListener<EventInfo> listener)
boolean
CloudSim. removeOnClockTickListener(EventListener<? extends EventInfo> listener)
boolean
Simulation. removeOnClockTickListener(EventListener<? extends EventInfo> listener)
Removes a listener from the onClockTickListener List.boolean
CloudSim. removeOnEventProcessingListener(EventListener<SimEvent> listener)
boolean
Simulation. removeOnEventProcessingListener(EventListener<SimEvent> listener)
Removes a listener from the onEventProcessingListener List.boolean
CloudSim. removeOnSimulationPauseListener(EventListener<EventInfo> listener)
boolean
Simulation. removeOnSimulationPauseListener(EventListener<EventInfo> listener)
Removes a listener from the onSimulationPausedListener List. -
Uses of EventListener in org.cloudbus.cloudsim.core.events
Methods in org.cloudbus.cloudsim.core.events that return EventListener Modifier and Type Method Description EventListener<? extends EventInfo>
CloudSimEvent. getListener()
-
Uses of EventListener in org.cloudbus.cloudsim.datacenters
Methods in org.cloudbus.cloudsim.datacenters with parameters of type EventListener Modifier and Type Method Description Datacenter
Datacenter. addOnHostAvailableListener(EventListener<HostEventInfo> listener)
Adds aEventListener
object that will be notified every time a new Host is available for the Datacenter during simulation runtime.Datacenter
DatacenterSimple. addOnHostAvailableListener(EventListener<HostEventInfo> listener)
Datacenter
Datacenter. addOnVmMigrationFinishListener(EventListener<DatacenterVmMigrationEventInfo> listener)
Adds aEventListener
object that will be notified every time a VM migration is finished either successfully or not.Datacenter
DatacenterSimple. addOnVmMigrationFinishListener(EventListener<DatacenterVmMigrationEventInfo> listener)
-
Uses of EventListener in org.cloudbus.cloudsim.hosts
Methods in org.cloudbus.cloudsim.hosts with parameters of type EventListener Modifier and Type Method Description Host
Host. addOnShutdownListener(EventListener<HostEventInfo> listener)
Adds a listener object that will be notified every time the host is powered off.Host
HostSimple. addOnShutdownListener(EventListener<HostEventInfo> listener)
Host
Host. addOnStartupListener(EventListener<HostEventInfo> listener)
Adds a listener object that will be notified every time the host is powered on.Host
HostSimple. addOnStartupListener(EventListener<HostEventInfo> listener)
Host
Host. addOnUpdateProcessingListener(EventListener<HostUpdatesVmsProcessingEventInfo> listener)
Adds a listener object that will be notified every time the host updates the processing of all itsVMs
.Host
HostSimple. addOnUpdateProcessingListener(EventListener<HostUpdatesVmsProcessingEventInfo> listener)
boolean
Host. removeOnShutdownListener(EventListener<HostEventInfo> listener)
Removes a Listener object from the registered List.boolean
HostSimple. removeOnShutdownListener(EventListener<HostEventInfo> listener)
boolean
Host. removeOnStartupListener(EventListener<HostEventInfo> listener)
Removes a Listener object from the registered List.boolean
HostSimple. removeOnStartupListener(EventListener<HostEventInfo> listener)
boolean
Host. removeOnUpdateProcessingListener(EventListener<HostUpdatesVmsProcessingEventInfo> listener)
Removes a Listener object from the registered List.boolean
HostSimple. removeOnUpdateProcessingListener(EventListener<HostUpdatesVmsProcessingEventInfo> listener)
-
Uses of EventListener in org.cloudbus.cloudsim.schedulers.cloudlet
Methods in org.cloudbus.cloudsim.schedulers.cloudlet with parameters of type EventListener Modifier and Type Method Description CloudletScheduler
CloudletScheduler. addOnCloudletResourceAllocationFail(EventListener<CloudletResourceAllocationFailEventInfo> listener)
Adds a listener object that will be notified every time aCloudletScheduler
is not able to allocated the amount of resource aCloudlet
is requesting due to lack of available capacity.CloudletScheduler
CloudletSchedulerAbstract. addOnCloudletResourceAllocationFail(EventListener<CloudletResourceAllocationFailEventInfo> listener)
boolean
CloudletScheduler. removeOnCloudletResourceAllocationFail(EventListener<CloudletResourceAllocationFailEventInfo> listener)
Removes a Listener object from the registered List.boolean
CloudletSchedulerAbstract. removeOnCloudletResourceAllocationFail(EventListener<CloudletResourceAllocationFailEventInfo> listener)
-
Uses of EventListener in org.cloudbus.cloudsim.vms
Methods in org.cloudbus.cloudsim.vms with parameters of type EventListener Modifier and Type Method Description Vm
Vm. addOnCreationFailureListener(EventListener<VmDatacenterEventInfo> listener)
Adds a listener object that will be notified when the Vm fail in being placed for lack of aHost
with enough resources in a specificDatacenter
.Vm
VmSimple. addOnCreationFailureListener(EventListener<VmDatacenterEventInfo> listener)
Vm
Vm. addOnHostAllocationListener(EventListener<VmHostEventInfo> listener)
Adds a listener object that will be notified when aHost
is allocated to the Vm, that is, when the Vm is placed into a given Host.Vm
VmSimple. addOnHostAllocationListener(EventListener<VmHostEventInfo> listener)
Vm
Vm. addOnHostDeallocationListener(EventListener<VmHostEventInfo> listener)
Adds a listener object that will be notified when the Vm is moved/removed from aHost
.Vm
VmSimple. addOnHostDeallocationListener(EventListener<VmHostEventInfo> listener)
Vm
Vm. addOnMigrationFinishListener(EventListener<VmHostEventInfo> listener)
Adds a listener object that will be notified when a VM finishes migrating to a targetHost
.Vm
VmSimple. addOnMigrationFinishListener(EventListener<VmHostEventInfo> listener)
Vm
Vm. addOnMigrationStartListener(EventListener<VmHostEventInfo> listener)
Adds a listener object that will be notified when a VM starts migrating to a targetHost
.Vm
VmSimple. addOnMigrationStartListener(EventListener<VmHostEventInfo> listener)
Vm
Vm. addOnUpdateProcessingListener(EventListener<VmHostEventInfo> listener)
Adds a listener object that will be notified every time when the processing of the Vm is updated in itsHost
.Vm
VmSimple. addOnUpdateProcessingListener(EventListener<VmHostEventInfo> listener)
boolean
Vm. removeOnCreationFailureListener(EventListener<VmDatacenterEventInfo> listener)
Removes a listener from the onVmCreationFailureListener List.boolean
VmSimple. removeOnCreationFailureListener(EventListener<VmDatacenterEventInfo> listener)
boolean
Vm. removeOnHostAllocationListener(EventListener<VmHostEventInfo> listener)
Removes a listener from the onHostAllocationListener List.boolean
VmSimple. removeOnHostAllocationListener(EventListener<VmHostEventInfo> listener)
boolean
Vm. removeOnHostDeallocationListener(EventListener<VmHostEventInfo> listener)
Removes a listener from the onHostDeallocationListener List.boolean
VmSimple. removeOnHostDeallocationListener(EventListener<VmHostEventInfo> listener)
boolean
Vm. removeOnMigrationFinishListener(EventListener<VmHostEventInfo> listener)
Removes a listener from the onMigrationFinishListener List.boolean
VmSimple. removeOnMigrationFinishListener(EventListener<VmHostEventInfo> listener)
boolean
Vm. removeOnMigrationStartListener(EventListener<VmHostEventInfo> listener)
Removes a listener from the onMigrationStartListener List.boolean
VmSimple. removeOnMigrationStartListener(EventListener<VmHostEventInfo> listener)
boolean
Vm. removeOnUpdateProcessingListener(EventListener<VmHostEventInfo> listener)
Removes a listener from the onUpdateVmProcessingListener List.boolean
VmSimple. removeOnUpdateProcessingListener(EventListener<VmHostEventInfo> listener)
-
Uses of EventListener in org.cloudsimplus.builders
Methods in org.cloudsimplus.builders with parameters of type EventListener Modifier and Type Method Description CloudletBuilder
CloudletBuilder. setOnCloudletFinishEventListener(EventListener<CloudletVmEventInfo> defaultOnCloudletFinishEventListener)
VmBuilder
VmBuilder. setOnHostAllocationListener(EventListener<VmHostEventInfo> listener)
VmBuilder
VmBuilder. setOnHostDeallocationListener(EventListener<VmHostEventInfo> listener)
VmBuilder
VmBuilder. setOnUpdateVmProcessingListener(EventListener<VmHostEventInfo> listener)
HostBuilder
HostBuilder. setOnUpdateVmsProcessingListener(EventListener<HostUpdatesVmsProcessingEventInfo> listener)
VmBuilder
VmBuilder. setOnVmCreationFailureListener(EventListener<VmDatacenterEventInfo> listener)
-
Uses of EventListener in org.cloudsimplus.listeners
Fields in org.cloudsimplus.listeners declared as EventListener Modifier and Type Field Description static EventListener
EventListener. NULL
A implementation of Null Object pattern that makes nothing (it doesn't perform any operation on each existing method).Methods in org.cloudsimplus.listeners that return EventListener Modifier and Type Method Description EventListener<CloudletResourceAllocationFailEventInfo>
CloudletResourceAllocationFailEventInfo. getListener()
<T extends EventInfo>
EventListener<T>EventInfo. getListener()
Gets the listener that was notified about the event.Methods in org.cloudsimplus.listeners with parameters of type EventListener Modifier and Type Method Description static CloudletResourceAllocationFailEventInfo
CloudletResourceAllocationFailEventInfo. of(EventListener<CloudletResourceAllocationFailEventInfo> listener, Cloudlet cloudlet, Class<? extends ResourceManageable> resourceClass, long requestedAmount, long availableAmount, double time)
Gets a EventInfo instance from the given parameters.static CloudletVmEventInfo
CloudletVmEventInfo. of(EventListener<? extends EventInfo> listener, double time, Cloudlet cloudlet)
Gets a CloudletVmEventInfo instance from the given parameters.static CloudletVmEventInfo
CloudletVmEventInfo. of(EventListener<? extends EventInfo> listener, double time, Cloudlet cloudlet, Vm vm)
Gets a CloudletVmEventInfo instance from the given parameters.static CloudletVmEventInfo
CloudletVmEventInfo. of(EventListener<? extends EventInfo> listener, Cloudlet cloudlet)
Gets a CloudletVmEventInfo instance from the given parameters.static CloudletVmEventInfo
CloudletVmEventInfo. of(EventListener<? extends EventInfo> listener, Cloudlet cloudlet, Vm vm)
Gets a CloudletVmEventInfo instance from the given parameters.static DatacenterBrokerEventInfo
DatacenterBrokerEventInfo. of(EventListener<? extends EventInfo> listener, DatacenterBroker broker)
Gets aDatacenterBrokerEventInfo
instance from the given parameters.static DatacenterVmMigrationEventInfo
DatacenterVmMigrationEventInfo. of(EventListener<DatacenterVmMigrationEventInfo> listener, Vm vm, boolean migrated)
Gets a VmDatacenterEventInfo instance from the given parameters.static EventInfo
EventInfo. of(EventListener<EventInfo> listener, double time)
Gets a EventInfo instance from the given parameters.static HostEventInfo
HostEventInfo. of(EventListener<? extends EventInfo> listener, Host host, double time)
Gets a EventInfo instance from the given parameters.static HostUpdatesVmsProcessingEventInfo
HostUpdatesVmsProcessingEventInfo. of(EventListener<? extends EventInfo> listener, Host host, double nextCloudletCompletionTime)
Gets aHostUpdatesVmsProcessingEventInfo
instance from the given parameters.static VmDatacenterEventInfo
VmDatacenterEventInfo. of(EventListener<? extends EventInfo> listener, Vm vm)
Gets a VmDatacenterEventInfo instance from the given parameters.static VmDatacenterEventInfo
VmDatacenterEventInfo. of(EventListener<? extends EventInfo> listener, Vm vm, Datacenter datacenter)
Gets a VmDatacenterEventInfo instance from the given parameters.static VmHostEventInfo
VmHostEventInfo. of(EventListener<VmHostEventInfo> listener, Vm vm)
Gets a VmHostEventInfo instance from the given parameters.static VmHostEventInfo
VmHostEventInfo. of(EventListener<VmHostEventInfo> listener, Vm vm, Host host)
Gets a VmHostEventInfo instance from the given parameters.