Class WindowsOSProcessJNA
java.lang.Object
oshi.software.common.AbstractOSProcess
oshi.software.common.os.windows.WindowsOSProcess
oshi.software.os.windows.WindowsOSProcessJNA
- All Implemented Interfaces:
oshi.software.os.OSProcess
@ThreadSafe
public class WindowsOSProcessJNA
extends oshi.software.common.os.windows.WindowsOSProcess
JNA-based Windows OS process implementation.
-
Nested Class Summary
Nested classes/interfaces inherited from interface oshi.software.os.OSProcess
oshi.software.os.OSProcess.State -
Field Summary
Fields inherited from class oshi.software.common.os.windows.WindowsOSProcess
MAX_WINDOWS_HANDLES, USE_BATCH_COMMANDLINE, USE_PROCSTATE_SUSPENDED -
Constructor Summary
ConstructorsConstructorDescriptionWindowsOSProcessJNA(int pid, WindowsOperatingSystemJNA os, Map<Integer, oshi.driver.common.windows.registry.ProcessPerfCounterBlock> processMap, Map<Integer, oshi.driver.common.windows.registry.WtsInfo> processWtsMap, Map<Integer, oshi.driver.common.windows.registry.ThreadPerfCounterBlock> threadMap) -
Method Summary
Modifier and TypeMethodDescriptionprotected oshi.software.os.OSThreadcreateOSThread(int pid, int tid, String procName, oshi.driver.common.windows.registry.ThreadPerfCounterBlock pcb) longprotected StringqueryMatchingThreads(Set<Integer> pids) booleanprotected booleanupdateAttributes(oshi.driver.common.windows.registry.ProcessPerfCounterBlock pcb, oshi.driver.common.windows.registry.WtsInfo wts) Methods inherited from class oshi.software.common.os.windows.WindowsOSProcess
defaultCwdCommandlineEnvironment, defaultPair, getArguments, getBitness, getBytesRead, getBytesWritten, getCommandLine, getCurrentWorkingDirectory, getCwdCmdEnv, getEnvironmentVariables, getGroup, getGroupID, getHardOpenFileLimit, getKernelTime, getMinorFaults, getName, getOpenFiles, getOs, getParentProcessID, getPath, getPriority, getPrivateResidentMemory, getResidentMemory, getResidentSetSize, getSoftOpenFileLimit, getStartTime, getState, getThreadCount, getThreadDetails, getUpTime, getUser, getUserID, getUserTime, getVirtualSize, setBitness, setName, setPath, setState, setTcbMethods inherited from class oshi.software.common.AbstractOSProcess
getProcessCpuLoadBetweenTicks, getProcessCpuLoadCumulative, getProcessID, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface oshi.software.os.OSProcess
getContextSwitches, getMajorFaults
-
Constructor Details
-
WindowsOSProcessJNA
public WindowsOSProcessJNA(int pid, WindowsOperatingSystemJNA os, Map<Integer, oshi.driver.common.windows.registry.ProcessPerfCounterBlock> processMap, Map<Integer, oshi.driver.common.windows.registry.WtsInfo> processWtsMap, Map<Integer, oshi.driver.common.windows.registry.ThreadPerfCounterBlock> threadMap)
-
-
Method Details
-
getAffinityMask
public long getAffinityMask() -
updateAttributes
public boolean updateAttributes() -
updateAttributes
protected boolean updateAttributes(oshi.driver.common.windows.registry.ProcessPerfCounterBlock pcb, oshi.driver.common.windows.registry.WtsInfo wts) - Overrides:
updateAttributesin classoshi.software.common.os.windows.WindowsOSProcess
-
createOSThread
protected oshi.software.os.OSThread createOSThread(int pid, int tid, String procName, oshi.driver.common.windows.registry.ThreadPerfCounterBlock pcb) - Specified by:
createOSThreadin classoshi.software.common.os.windows.WindowsOSProcess
-
queryMatchingThreads
-
queryCommandLine
- Specified by:
queryCommandLinein classoshi.software.common.os.windows.WindowsOSProcess
-
queryArguments
-
queryUserInfo
-
queryGroupInfo
-
queryCwdCommandlineEnvironment
-