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)¶ 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
- length – the length or size (in MI) of this cloudlet to be executed in a VM (check out
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.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
- length – the length or size (in MI) of this cloudlet to be executed in a VM (check out
CloudletSimple¶
-
public
CloudletSimple
(long id, long length, long pesNumber)¶ Creates a Cloudlet with no priority and file size and output size equal to 1. To change these 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: