Package oshi.driver.mac
Class ThreadInfo.ThreadStats
- java.lang.Object
-
- oshi.driver.mac.ThreadInfo.ThreadStats
-
- Enclosing class:
- ThreadInfo
@Immutable public static class ThreadInfo.ThreadStats extends java.lang.Object
Class to encapsulate mach thread info
-
-
Field Summary
Fields Modifier and Type Field Description private int
priority
private OSProcess.State
state
private long
systemTime
private int
threadId
private long
upTime
private long
userTime
-
Constructor Summary
Constructors Constructor Description ThreadStats(int tid, double cpu, char state, long sTime, long uTime, int pri)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getPriority()
OSProcess.State
getState()
long
getSystemTime()
int
getThreadId()
long
getUpTime()
long
getUserTime()
-
-
-
Field Detail
-
threadId
private final int threadId
-
userTime
private final long userTime
-
systemTime
private final long systemTime
-
upTime
private final long upTime
-
state
private final OSProcess.State state
-
priority
private final int priority
-
-
Method Detail
-
getThreadId
public int getThreadId()
- Returns:
- the threadId
-
getUserTime
public long getUserTime()
- Returns:
- the userTime
-
getSystemTime
public long getSystemTime()
- Returns:
- the systemTime
-
getUpTime
public long getUpTime()
- Returns:
- the upTime
-
getState
public OSProcess.State getState()
- Returns:
- the state
-
getPriority
public int getPriority()
- Returns:
- the priority
-
-