Package org.cloudsimplus.traces.google
Enum GoogleTaskEventsTraceReader.FieldIndex
java.lang.Object
java.lang.Enum<GoogleTaskEventsTraceReader.FieldIndex>
org.cloudsimplus.traces.google.GoogleTaskEventsTraceReader.FieldIndex
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<GoogleTaskEventsTraceReader.FieldIndex>
,java.lang.constant.Constable
,TraceField<GoogleTaskEventsTraceReader>
- Enclosing class:
- GoogleTaskEventsTraceReader
public static enum GoogleTaskEventsTraceReader.FieldIndex extends java.lang.Enum<GoogleTaskEventsTraceReader.FieldIndex> implements TraceField<GoogleTaskEventsTraceReader>
The index of each field in the trace file.
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description 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.EVENT_TYPE
5: The index of the field containing the type of event.JOB_ID
2: The index of the field containing the id of the job this task belongs to.MACHINE_ID
4: The index of the field containing the machineID.MISSING_INFO
1: When it seems Google Cluster is missing an event record, it's synthesized a replacement.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).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).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).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).SCHEDULING_CLASS
7: All jobs and tasks have a scheduling class that roughly represents how latency-sensitive it is.TASK_INDEX
3: The index of the field containing the task index within the job.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).USERNAME
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 static GoogleTaskEventsTraceReader.FieldIndex
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static GoogleTaskEventsTraceReader.FieldIndex[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
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
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 toGoogleTaskEventsTraceReader.MissingInfo
values.When there is no info missing, the field is empty in the trace. In this case, -1 is returned instead.
-
JOB_ID
2: The index of the field containing the id of the job this task belongs to. -
TASK_INDEX
3: The index of the field containing the task index within the job. -
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
5: The index of the field containing the type of event. The possible values for this field are the ordinal values of the enumTaskEventType
. -
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 correspondingDatacenterBroker
is created. -
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 not 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
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
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
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
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
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
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-