CloudletExecutionTask

public class CloudletExecutionTask extends CloudletTask

A processing task that can be executed by a NetworkCloudlet in a single org.cloudbus.cloudsim.resources.Pe. The tasks currently just execute in a sequential manner.

Please refer to following publication for more details:

Author:Saurabh Kumar Garg, Manoel Campos da Silva Filho

Constructors

CloudletExecutionTask

public CloudletExecutionTask(int id, long executionLength)

Creates a new task.

Parameters:
  • id – task id
  • executionLength – the execution length of the task (in MI)

Methods

getLength

public long getLength()

Gets the execution length of the task (in MI).

getTotalExecutedLength

public long getTotalExecutedLength()

Gets the length of this CloudletTask that has been executed so far (in MI).

process

public boolean process(long partialFinishedMI)

Sets a given number of MI to the total MI executed so far by the cloudlet.

Parameters:
  • partialFinishedMI – the partial executed length of this Cloudlet (in MI)
Returns:

{@inheritDoc}

setLength

public void setLength(long length)

Sets the execution length of the task (in MI).

Parameters:
  • length – the length to set