Package oshi.software.os.linux
Enum LinuxOSThread.ThreadPidStat
- java.lang.Object
-
- java.lang.Enum<LinuxOSThread.ThreadPidStat>
-
- oshi.software.os.linux.LinuxOSThread.ThreadPidStat
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<LinuxOSThread.ThreadPidStat>
- Enclosing class:
- LinuxOSThread
private static enum LinuxOSThread.ThreadPidStat extends java.lang.Enum<LinuxOSThread.ThreadPidStat>
Enum used to update attributes. The order field represents the 1-indexed numeric order of the stat in /proc/pid/task/tid/stat per the man file.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description KERNEL_TIME
MAJOR_FAULT
MINOR_FAULTS
PPID
PRIORITY
RSS
START_CODE
START_TIME
THREAD_COUNT
USER_TIME
VSZ
-
Field Summary
Fields Modifier and Type Field Description private int
order
-
Constructor Summary
Constructors Modifier Constructor Description private
ThreadPidStat(int order)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getOrder()
static LinuxOSThread.ThreadPidStat
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static LinuxOSThread.ThreadPidStat[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PPID
public static final LinuxOSThread.ThreadPidStat PPID
-
MINOR_FAULTS
public static final LinuxOSThread.ThreadPidStat MINOR_FAULTS
-
MAJOR_FAULT
public static final LinuxOSThread.ThreadPidStat MAJOR_FAULT
-
USER_TIME
public static final LinuxOSThread.ThreadPidStat USER_TIME
-
KERNEL_TIME
public static final LinuxOSThread.ThreadPidStat KERNEL_TIME
-
PRIORITY
public static final LinuxOSThread.ThreadPidStat PRIORITY
-
THREAD_COUNT
public static final LinuxOSThread.ThreadPidStat THREAD_COUNT
-
START_TIME
public static final LinuxOSThread.ThreadPidStat START_TIME
-
VSZ
public static final LinuxOSThread.ThreadPidStat VSZ
-
RSS
public static final LinuxOSThread.ThreadPidStat RSS
-
START_CODE
public static final LinuxOSThread.ThreadPidStat START_CODE
-
-
Method Detail
-
values
public static LinuxOSThread.ThreadPidStat[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (LinuxOSThread.ThreadPidStat c : LinuxOSThread.ThreadPidStat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LinuxOSThread.ThreadPidStat valueOf(java.lang.String name)
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
-
getOrder
public int getOrder()
-
-