Package oshi.driver.windows.registry
Class ThreadPerformanceData.PerfCounterBlock
- java.lang.Object
-
- oshi.driver.windows.registry.ThreadPerformanceData.PerfCounterBlock
-
- Enclosing class:
- ThreadPerformanceData
@Immutable public static class ThreadPerformanceData.PerfCounterBlock extends java.lang.Object
Class to encapsulate data from the registry performance counter block
-
-
Field Summary
Fields Modifier and Type Field Description private int
contextSwitches
private long
kernelTime
private java.lang.String
name
private int
owningProcessID
private int
priority
private long
startAddress
private long
startTime
private int
threadID
private int
threadState
private int
threadWaitReason
private long
userTime
-
Constructor Summary
Constructors Constructor Description PerfCounterBlock(java.lang.String name, int threadID, int owningProcessID, long startTime, long userTime, long kernelTime, int priority, int threadState, int threadWaitReason, long startAddress, int contextSwitches)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getContextSwitches()
long
getKernelTime()
java.lang.String
getName()
int
getOwningProcessID()
int
getPriority()
long
getStartAddress()
long
getStartTime()
int
getThreadID()
int
getThreadState()
int
getThreadWaitReason()
long
getUserTime()
-
-
-
Field Detail
-
name
private final java.lang.String name
-
threadID
private final int threadID
-
owningProcessID
private final int owningProcessID
-
startTime
private final long startTime
-
userTime
private final long userTime
-
kernelTime
private final long kernelTime
-
priority
private final int priority
-
threadState
private final int threadState
-
threadWaitReason
private final int threadWaitReason
-
startAddress
private final long startAddress
-
contextSwitches
private final int contextSwitches
-
-
Method Detail
-
getName
public java.lang.String getName()
- Returns:
- the name
-
getThreadID
public int getThreadID()
- Returns:
- the threadID
-
getOwningProcessID
public int getOwningProcessID()
- Returns:
- the owningProcessID
-
getStartTime
public long getStartTime()
- Returns:
- the startTime
-
getUserTime
public long getUserTime()
- Returns:
- the userTime
-
getKernelTime
public long getKernelTime()
- Returns:
- the kernelTime
-
getPriority
public int getPriority()
- Returns:
- the priority
-
getThreadState
public int getThreadState()
- Returns:
- the threadState
-
getThreadWaitReason
public int getThreadWaitReason()
- Returns:
- the threadWaitReason
-
getStartAddress
public long getStartAddress()
- Returns:
- the startMemoryAddress
-
getContextSwitches
public int getContextSwitches()
- Returns:
- the contextSwitches
-
-