CloudletDatacenterExecution

final class CloudletDatacenterExecution

Internal class that keeps track of Cloudlet’s movement in different Datacenters. Each time a cloudlet is run on a given Datacenter, the cloudlet’s execution history on each Datacenter is registered at CloudletAbstract.getLastExecutionInDatacenterInfo()

Fields

NULL

static final CloudletDatacenterExecution NULL

Constructors

CloudletDatacenterExecution

CloudletDatacenterExecution()

A default package-level constructor.

Methods

addFinishedSoFar

void addFinishedSoFar(long partialFinishedMI)

Adds the partial length of this Cloudlet that has executed so far in this Datacenter (in MI).

Parameters:
  • partialFinishedMI – the partial executed length of this Cloudlet (in MI) from the last time span (the last time the Cloudlet execution was updated)

getActualCpuTime

double getActualCpuTime()

The total time the Cloudlet spent being executed in a Datacenter.

getArrivalTime

double getArrivalTime()

Cloudlet’s submission (arrival) time to a Datacenter or Cloudlet.NOT_ASSIGNED if the Cloudlet was not assigned to a Datacenter yet.

getCostPerSec

double getCostPerSec()

Cost per second a Datacenter charge to execute this Cloudlet.

getDatacenter

Datacenter getDatacenter()

a Datacenter where the Cloudlet will be executed

getFinishedSoFar

long getFinishedSoFar()

Cloudlet’s length finished so far (in MI).

getWallClockTime

double getWallClockTime()

Gets the time this Cloudlet resides in a Datacenter (from arrival time until departure time, that may include waiting time).

Returns:the wall-clock time

See also: Elapsed real time (wall-clock time)

setActualCpuTime

void setActualCpuTime(double actualCpuTime)

setArrivalTime

void setArrivalTime(double arrivalTime)

setCostPerSec

void setCostPerSec(double costPerSec)

setDatacenter

void setDatacenter(Datacenter datacenter)

setWallClockTime

void setWallClockTime(double wallClockTime)

Sets the time this Cloudlet resides in a Datacenter (from arrival time until departure time, that may include waiting time).

Parameters:
  • wallClockTime – the wall-clock time to set

See also: Elapsed real time (wall-clock time)