Package org.cloudsimplus.traces.google
Class TaskUsage
java.lang.Object
org.cloudsimplus.traces.google.TaskUsage
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.- Since:
- CloudSim Plus 4.0.0
- Author:
- Manoel Campos da Silva Filho
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondouble
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.double
Gets the canonical memory usage, i.e., the number of user accessible pages, including page cache but excluding some pages marked as stale.double
Gets the end time of the measurement period (converted to seconds).long
getJobId()
Gets the id of the job this task belongs to.long
Gets the machineID that indicates the machine onto which the task was scheduled.double
Gets the maximum CPU usage observed over the measurement interval.double
Gets the maximum disk IO time observed over the measurement interval.double
Gets the maximum memory usage, i.e., the maximum value of the canonical memory usage measurement observed over the measurement interval.double
Gets the mean CPU usage rate (in percentage from 0 to 1).double
Gets the mean disk I/O time.double
Gets the mean local disk space used.double
Gets the start time of the measurement period (converted to seconds).long
Gets the task index within the job.long
An unique ID to be used to identify Cloudlets.
-
Constructor Details
-
TaskUsage
-
-
Method Details
-
getStartTime
public double getStartTime()Gets the start time of the measurement period (converted to seconds).- Returns:
- See Also:
-
getEndTime
public double getEndTime()Gets the end time of the measurement period (converted to seconds).- Returns:
- See Also:
-
getMeanCpuUsageRate
public double getMeanCpuUsageRate()Gets the mean CPU usage rate (in percentage from 0 to 1).- Returns:
- See Also:
-
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.- Returns:
- See Also:
-
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.- Returns:
- See Also:
-
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.- Returns:
- See Also:
-
getMeanDiskIoTime
public double getMeanDiskIoTime()Gets the mean disk I/O time.- Returns:
- See Also:
-
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 notincluded. Additionally, most disk space used by distributed, persistent storage (e.g. GFS, Colossus) is not accounted for in this trace.- Returns:
- See Also:
-
getMaximumCpuUsage
public double getMaximumCpuUsage()Gets the maximum CPU usage observed over the measurement interval.- Returns:
- See Also:
-
getMaximumDiskIoTime
public double getMaximumDiskIoTime()Gets the maximum disk IO time observed over the measurement interval.- Returns:
- See Also:
-
getJobId
public long getJobId()Gets the id of the job this task belongs to.- Returns:
-
getTaskIndex
public long getTaskIndex()Gets the task index within the job.- Returns:
-
getUniqueTaskId
public long getUniqueTaskId()An unique ID to be used to identify Cloudlets. The ID is composed of theJob ID
, concatenated with theTask Index
.- Returns:
-
getMachineId
public long getMachineId()Gets the machineID that indicates the machine onto which the task was scheduled. If the field is empty, -1 is returned instead.- Returns:
-