TaskUsage

public final class TaskUsage extends TaskData

A data class to store the attributes representing the resource usage of a Cloudlet, according to the data read from a line inside a “task usage” trace file. Instance of this class are created by the GoogleTaskUsageTraceReader and provided to the user’s simulation.

Author:Manoel Campos da Silva Filho

Methods

getAssignedMemoryUsage

public double getAssignedMemoryUsage()

Gets the assigned memory usage, i.e., memory usage based on the memory actually assigned (but not necessarily used) to the container where the task was running inside the Google Cluster.

See also: GoogleTaskUsageTraceReader.FieldIndex.ASSIGNED_MEMORY_USAGE

getCanonicalMemoryUsage

public double getCanonicalMemoryUsage()

Gets the canonical memory usage, i.e., the number of user accessible pages, including page cache but excluding some pages marked as stale.

See also: GoogleTaskUsageTraceReader.FieldIndex.CANONICAL_MEMORY_USAGE

getEndTime

public double getEndTime()

Gets the end time​ of the measurement period (converted to seconds).

See also: GoogleTaskUsageTraceReader.FieldIndex.END_TIME

getMaximumCpuUsage

public double getMaximumCpuUsage()

Gets the maximum CPU usage observed over the measurement interval.

See also: GoogleTaskUsageTraceReader.FieldIndex.MAXIMUM_CPU_USAGE

getMaximumDiskIoTime

public double getMaximumDiskIoTime()

Gets the maximum disk IO time observed over the measurement interval.

See also: GoogleTaskUsageTraceReader.FieldIndex.MAXIMUM_DISK_IO_TIME

getMaximumMemoryUsage

public double getMaximumMemoryUsage()

Gets the maximum memory usage, i.e., the maximum value of the canonical memory usage measurement observed over the measurement interval. This value is not available for some tasks.

See also: GoogleTaskUsageTraceReader.FieldIndex.MAXIMUM_MEMORY_USAGE

getMeanCpuUsageRate

public double getMeanCpuUsageRate()

Gets the mean CPU usage rate (in percentage from 0 to 1).

See also: GoogleTaskUsageTraceReader.FieldIndex.MEAN_CPU_USAGE_RATE

getMeanDiskIoTime

public double getMeanDiskIoTime()

Gets the mean disk I/O time.

See also: GoogleTaskUsageTraceReader.FieldIndex.MEAN_DISK_IO_TIME

getMeanLocalDiskSpaceUsed

public double getMeanLocalDiskSpaceUsed()

Gets the mean local disk space used. Represents runtime local disk capacity usage. Disk usage required for binaries and other read-only, pre-staged runtime files is ​not​included. Additionally, most disk space used by distributed, persistent storage (e.g. GFS, Colossus) is not accounted for in this trace.

See also: GoogleTaskUsageTraceReader.FieldIndex.MEAN_LOCAL_DISK_SPACE_USED

getStartTime

public double getStartTime()

Gets the start time​ of the measurement period (converted to seconds).

See also: GoogleTaskUsageTraceReader.FieldIndex.START_TIME

setAssignedMemoryUsage

TaskUsage setAssignedMemoryUsage(double assignedMemoryUsage)

setCanonicalMemoryUsage

TaskUsage setCanonicalMemoryUsage(double canonicalMemoryUsage)

setEndTime

TaskUsage setEndTime(double endTime)

setMaximumCpuUsage

TaskUsage setMaximumCpuUsage(double maximumCpuUsage)

setMaximumDiskIoTime

TaskUsage setMaximumDiskIoTime(double maximumDiskIoTime)

setMaximumMemoryUsage

TaskUsage setMaximumMemoryUsage(double maximumMemoryUsage)

setMeanCpuUsageRate

TaskUsage setMeanCpuUsageRate(double meanCpuUsageRate)

setMeanDiskIoTime

TaskUsage setMeanDiskIoTime(double meanDiskIoTime)

setMeanLocalDiskSpaceUsed

TaskUsage setMeanLocalDiskSpaceUsed(double meanLocalDiskSpaceUsed)

setStartTime

protected TaskUsage setStartTime(double startTime)