Interface CloudletResourceAllocationFailEventInfo

All Superinterfaces:
CloudletEventInfo, EventInfo

public interface CloudletResourceAllocationFailEventInfo extends CloudletEventInfo
An interface that represents data to be passed to EventListener objects that are registered to be notified when a CloudletScheduler is not able to allocated the amount of resource a Cloudlet is requesting due to lack of available capacity.
Since:
CloudSim Plus 5.4.3
Author:
Manoel Campos da Silva Filho
  • Method Details

    • getResourceClass

      Class<? extends ResourceManageable> getResourceClass()
      The class of the resource the Cloudlet is requesting.
      Returns:
    • getRequestedAmount

      long getRequestedAmount()
      The amount of resources which is being requested and which is not currently available. The unit depends on the type of the getResourceClass() resource}.
      Returns:
    • getAvailableAmount

      long getAvailableAmount()
      The amount of resource amount that was available before allocating for the Cloudlet. The unit depends on the type of the getResourceClass() resource}.
      Returns:
    • getListener

      Description copied from interface: EventInfo
      Gets the listener that was notified about the event.
      Specified by:
      getListener in interface EventInfo
      Returns:
    • of

      static 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.
      Parameters:
      listener - the listener to be notified about the event
      cloudlet - the Cloudlet requesting the resource
      resourceClass - the class of the resource the Cloudlet is requesting
      requestedAmount - the requested resource amount (the unit depends on the resource requested)
      availableAmount - the amount of resource amount that was available before allocating for the Cloudlet (the unit depends on the resource requested)
      time - the time the event happened
      Returns: