Package org.cloudsimplus.traces.google
Enum GoogleMachineEventsTraceReader.FieldIndex
java.lang.Object
java.lang.Enum<GoogleMachineEventsTraceReader.FieldIndex>
org.cloudsimplus.traces.google.GoogleMachineEventsTraceReader.FieldIndex
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<GoogleMachineEventsTraceReader.FieldIndex>
,java.lang.constant.Constable
,TraceField<GoogleMachineEventsTraceReader>
- Enclosing class:
- GoogleMachineEventsTraceReader
public static enum GoogleMachineEventsTraceReader.FieldIndex extends java.lang.Enum<GoogleMachineEventsTraceReader.FieldIndex> implements TraceField<GoogleMachineEventsTraceReader>
The index of each field in the trace file.
-
Nested Class Summary
-
Enum Constant Summary
Enum Constants Enum Constant Description CPU_CAPACITY
4: The index of the CPU capacity field in the trace, that represents a percentage (between 0 and 1) of theGoogleMachineEventsTraceReader.getMaxCpuCores()
.EVENT_TYPE
2: The index of the field containing the type of event.MACHINE_ID
1: The index of the field containing the machine ID.PLATFORM_ID
3: The platform ID is an opaque string representing the micro-architecture and chipset version of the machine.RAM_CAPACITY
5: The index of the RAM capacity field in the trace, that represents a percentage (between 0 and 1) of theGoogleMachineEventsTraceReader.getMaxRamCapacity()
()}.TIMESTAMP
0: The index of the field containing the time the event happened (in microsecond). -
Method Summary
Modifier and Type Method Description static GoogleMachineEventsTraceReader.FieldIndex
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static GoogleMachineEventsTraceReader.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 (in microsecond). -
MACHINE_ID
1: The index of the field containing the machine ID. -
EVENT_TYPE
2: The index of the field containing the type of event. The possible values for this field are the ordinal values of the enumMachineEventType
. -
PLATFORM_ID
3: The platform ID is an opaque string representing the micro-architecture and chipset version of the machine. -
CPU_CAPACITY
4: The index of the CPU capacity field in the trace, that represents a percentage (between 0 and 1) of theGoogleMachineEventsTraceReader.getMaxCpuCores()
. -
RAM_CAPACITY
5: The index of the RAM capacity field in the trace, that represents a percentage (between 0 and 1) of theGoogleMachineEventsTraceReader.getMaxRamCapacity()
()}.
-
-
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
-