Enum Class TaskEventField

java.lang.Object
java.lang.Enum<TaskEventField>
org.cloudsimplus.traces.google.TaskEventField
All Implemented Interfaces:
Serializable, Comparable<TaskEventField>, Constable, TraceField<GoogleTaskEventsTraceReader>

public enum TaskEventField extends Enum<TaskEventField> implements TraceField<GoogleTaskEventsTraceReader>
The index of each field in a Google Task Events trace file.
Since:
CloudSim Plus 4.0.0
Author:
Manoel Campos da Silva Filho
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    12: If the different-machine constraint​ field is present, and true (1), it indicates that a task must be scheduled to execute on a different machine than any other currently running task in the job.
    5: The index of the field containing the type of event.
    2: The index of the field containing the id of the job this task belongs to.
    4: The index of the field containing the machineID.
    1: When it seems Google Cluster is missing an event record, it's synthesized a replacement.
    8: Each task has a priority, a​ small integer that is mapped here into a sorted set of values, with 0 as the lowest priority (least important).
    9: The index of the field containing the maximum number of CPU cores the task is permitted to use (in percentage from 0 to 1).
    11: The index of the field containing the maximum amount of local disk space the task is permitted to use (in percentage from 0 to 1).
    10: The index of the field containing the maximum amount of RAM the task is permitted to use (in percentage from 0 to 1).
    7: All jobs and tasks have a scheduling class ​that roughly represents how latency-sensitive it is.
    3: The index of the field containing the task index within the job.
    0: The index of the field containing the time the event happened (stored in microsecond but converted to seconds when read from the file).
    6: The index of the field containing the hashed username provided as an opaque base64-encoded string that can be tested for equality.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this class with the specified name.
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.cloudsimplus.traces.google.TraceField

    getValue
  • Enum Constant Details

    • TIMESTAMP

      public static final TaskEventField TIMESTAMP
      0: The index of the field containing the time the event happened (stored in microsecond but converted to seconds when read from the file).
    • MISSING_INFO

      public static final TaskEventField MISSING_INFO
      1: When it seems Google Cluster is missing an event record, it's synthesized a replacement. Similarly, we look for a record of every job or task that is active at the end of the trace time window, and synthesize a missing record if we don't find one. Synthesized records have a number (called the "missing info" field) to represent why they were added to the trace, according to MissingInfo values.

      When there is no info missing, the field is empty in the trace. In this case, -1 is returned instead.

    • JOB_ID

      public static final TaskEventField JOB_ID
      2: The index of the field containing the id of the job this task belongs to.
    • TASK_INDEX

      public static final TaskEventField TASK_INDEX
      3: The index of the field containing the task index within the job.
    • MACHINE_ID

      public static final TaskEventField MACHINE_ID
      4: The index of the field containing the machineID. If the field is present, indicates the machine onto which the task was scheduled, otherwise, the reader will return -1 as default value.
    • EVENT_TYPE

      public static final TaskEventField EVENT_TYPE
      5: The index of the field containing the type of event. The possible values for this field are the ordinal values of the enum TaskEventType.
    • USERNAME

      public static final TaskEventField USERNAME
      6: The index of the field containing the hashed username provided as an opaque base64-encoded string that can be tested for equality. For each distinct username, a corresponding DatacenterBroker is created.
    • SCHEDULING_CLASS

      public static final TaskEventField SCHEDULING_CLASS
      7: All jobs and tasks have a scheduling class ​that roughly represents how latency-sensitive it is. The scheduling class is represented by a single number, with 3 representing a more latency-sensitive task (e.g., serving revenue-generating user requests) and 0 representing a non-production task (e.g., development, non-business-critical analyses, etc.). Note that scheduling class is n​ot a priority, although more latency-sensitive tasks tend to have higher task priorities. Scheduling class affects machine-local policy for resource access. Priority determines whether a task is scheduled on a machine.

      WARNING: Currently, this field is totally ignored by CloudSim Plus.

    • PRIORITY

      public static final TaskEventField PRIORITY
      8: Each task has a priority, a​ small integer that is mapped here into a sorted set of values, with 0 as the lowest priority (least important). Tasks with larger priority numbers generally get preference for resources over tasks with smaller priority numbers.

      There are some special priority ranges:

      • "free" priorities: these are the lowest priorities. Resources requested at these priorities incur little internal charging.
      • "production" priorities: these are the highest priorities. The cluster scheduler attempts to prevent latency-sensitive tasks at these priorities from being evicted due to over-allocation of machine resources.
      • "monitoring" priorities: these priorities are intended for jobs which monitor the health of other, lower-priority jobs

    • RESOURCE_REQUEST_FOR_CPU_CORES

      public static final TaskEventField RESOURCE_REQUEST_FOR_CPU_CORES
      9: The index of the field containing the maximum number of CPU cores the task is permitted to use (in percentage from 0 to 1).

      When there is no value for the field, 0 is returned instead.

    • RESOURCE_REQUEST_FOR_RAM

      public static final TaskEventField RESOURCE_REQUEST_FOR_RAM
      10: The index of the field containing the maximum amount of RAM the task is permitted to use (in percentage from 0 to 1).

      When there is no value for the field, 0 is returned instead.

    • RESOURCE_REQUEST_FOR_LOCAL_DISK_SPACE

      public static final TaskEventField RESOURCE_REQUEST_FOR_LOCAL_DISK_SPACE
      11: The index of the field containing the maximum amount of local disk space the task is permitted to use (in percentage from 0 to 1).

      When there is no value for the field, 0 is returned instead.

    • DIFFERENT_MACHINE_CONSTRAINT

      public static final TaskEventField DIFFERENT_MACHINE_CONSTRAINT
      12: If the different-machine constraint​ field is present, and true (1), it indicates that a task must be scheduled to execute on a different machine than any other currently running task in the job. It is a special type of constraint.

      When there is no value for the field, -1 is returned instead.

  • Method Details

    • values

      public static TaskEventField[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static TaskEventField valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null