CloudletSimple

public class CloudletSimple extends CloudletAbstract

Cloudlet implements the basic features of an application/job/task to be executed by a Vm on behalf of a given user. It stores, despite all the information encapsulated in the Cloudlet, the ID of the VM running it.

Author:Rodrigo N. Calheiros, Anton Beloglazov

See also: DatacenterBroker

Constructors

CloudletSimple

public CloudletSimple(long length, int pesNumber, UtilizationModel utilizationModel)

Creates a Cloudlet with no priority or id. The id is defined when the Cloudlet is submitted to a DatacenterBroker. The file size and output size is defined as 1.

Parameters:
  • length – the length or size (in MI) of this cloudlet to be executed in a VM (check out setLength(long))
  • pesNumber – number of PEs that Cloudlet will require
  • utilizationModel – a UtilizationModel to define how the Cloudlet uses CPU, RAM and BW. To define an independent utilization model for each resource, call the respective setters.

See also: .setUtilizationModelCpu(UtilizationModel), .setUtilizationModelRam(UtilizationModel), .setUtilizationModelBw(UtilizationModel)

CloudletSimple

public CloudletSimple(long length, int pesNumber)

Creates a Cloudlet with no priority or id. The id is defined when the Cloudlet is submitted to a DatacenterBroker. The file size and output size is defined as 1.

NOTE: By default, the Cloudlet will use a UtilizationModelFull to define CPU utilization and a UtilizationModel.NULL for RAM and BW. To change the default values, use the respective setters.

Parameters:
  • length – the length or size (in MI) of this cloudlet to be executed in a VM (check out setLength(long))
  • pesNumber – number of PEs that Cloudlet will require

CloudletSimple

public CloudletSimple(long length, long pesNumber)

Creates a Cloudlet with no priority or id. The id is defined when the Cloudlet is submitted to a DatacenterBroker. The file size and output size is defined as 1.

NOTE: By default, the Cloudlet will use a UtilizationModelFull to define CPU utilization and a UtilizationModel.NULL for RAM and BW. To change the default values, use the respective setters.

Parameters:
  • length – the length or size (in MI) of this cloudlet to be executed in a VM (check out setLength(long))
  • pesNumber – number of PEs that Cloudlet will require

CloudletSimple

public CloudletSimple(long id, long length, long pesNumber)

Creates a Cloudlet with no priority, file size and output size equal to 1.

NOTE: By default, the Cloudlet will use a UtilizationModelFull to define CPU utilization and a UtilizationModel.NULL for RAM and BW. To change the default values, use the respective setters.

Parameters:
  • id – the unique ID of this cloudlet
  • length – the length or size (in MI) of this cloudlet to be executed in a VM (check out setLength(long))
  • pesNumber – the pes number

Methods

compareTo

public int compareTo(Cloudlet o)

Compare this Cloudlet with another one based on getLength().

Parameters:
  • o – the Cloudlet to compare to
Returns:

{@inheritDoc}

toString

public String toString()