Uses of Interface
oshi.software.os.OSProcess
Package
Description
Provides abstract classes for common code
[oshi-core API] Provides cross-platform implementation to retrieve OS, FileSystem, and Process information
Provides information about Software and OS on Linux
Provides information about Software and OS on macOS
Provides information about Software and OS on AIX
Provides information about Software and OS on FreeBSD
Provides information about Software and OS on OpenBSD
Provides information about Software and OS on Solaris
Provides information about Software and OS on Windows
-
Uses of OSProcess in oshi.software.common
Modifier and TypeClassDescriptionclass
A process is an instance of a computer program that is being executed.Modifier and TypeMethodDescriptionAbstractOperatingSystem.getChildProcesses
(int parentPid, Predicate<OSProcess> filter, Comparator<OSProcess> sort, int limit) AbstractOperatingSystem.getDescendantProcesses
(int parentPid, Predicate<OSProcess> filter, Comparator<OSProcess> sort, int limit) AbstractOperatingSystem.getProcesses
(Predicate<OSProcess> filter, Comparator<OSProcess> sort, int limit) AbstractOperatingSystem.queryAllProcesses()
AbstractOperatingSystem.queryChildProcesses
(int parentPid) AbstractOperatingSystem.queryDescendantProcesses
(int parentPid) Modifier and TypeMethodDescriptiondouble
AbstractOSProcess.getProcessCpuLoadBetweenTicks
(OSProcess priorSnapshot) Modifier and TypeMethodDescriptionAbstractOperatingSystem.getChildProcesses
(int parentPid, Predicate<OSProcess> filter, Comparator<OSProcess> sort, int limit) AbstractOperatingSystem.getChildProcesses
(int parentPid, Predicate<OSProcess> filter, Comparator<OSProcess> sort, int limit) AbstractOperatingSystem.getChildrenOrDescendants
(Collection<OSProcess> allProcs, int parentPid, boolean allDescendants) Utility method for subclasses to take a full process list as input and return the children or descendants of a particular process.AbstractOperatingSystem.getDescendantProcesses
(int parentPid, Predicate<OSProcess> filter, Comparator<OSProcess> sort, int limit) AbstractOperatingSystem.getDescendantProcesses
(int parentPid, Predicate<OSProcess> filter, Comparator<OSProcess> sort, int limit) AbstractOperatingSystem.getProcesses
(Predicate<OSProcess> filter, Comparator<OSProcess> sort, int limit) AbstractOperatingSystem.getProcesses
(Predicate<OSProcess> filter, Comparator<OSProcess> sort, int limit) -
Uses of OSProcess in oshi.software.os
Modifier and TypeFieldDescriptionOperatingSystem.ProcessFiltering.ALL_PROCESSES
No filtering.OperatingSystem.ProcessFiltering.BITNESS_32
Only include 32-bit processes.OperatingSystem.ProcessFiltering.BITNESS_64
Only incude 64-bit processes.static final Comparator<OSProcess>
OperatingSystem.ProcessSorting.CPU_DESC
Sort by decreasing cumulative CPU percentagestatic final Comparator<OSProcess>
OperatingSystem.ProcessSorting.NAME_ASC
Sort by Process Name (case insensitive)OperatingSystem.ProcessFiltering.NO_PARENT
Exclude child processes.static final Comparator<OSProcess>
OperatingSystem.ProcessSorting.NO_SORTING
No sortingstatic final Comparator<OSProcess>
OperatingSystem.ProcessSorting.PARENTPID_ASC
Sort by Parent Process Idstatic final Comparator<OSProcess>
OperatingSystem.ProcessSorting.PID_ASC
Sort by Process Idstatic final Comparator<OSProcess>
OperatingSystem.ProcessSorting.RSS_DESC
Sort by decreasing Resident Set Size (RSS)static final Comparator<OSProcess>
OperatingSystem.ProcessSorting.UPTIME_ASC
Sort by up time, newest processes firststatic final Comparator<OSProcess>
OperatingSystem.ProcessSorting.UPTIME_DESC
Sort by up time, oldest processes firstOperatingSystem.ProcessFiltering.VALID_PROCESS
Exclude processes withOSProcess.State.INVALID
process state.Modifier and TypeMethodDescriptiondefault OSProcess
OperatingSystem.getCurrentProcess()
Gets the current process.OperatingSystem.getProcess
(int pid) Gets information on a currently running processModifier and TypeMethodDescriptionOperatingSystem.getChildProcesses
(int parentPid, Predicate<OSProcess> filter, Comparator<OSProcess> sort, int limit) Gets currently running child processes of provided parent PID, optionally filtering, sorting, and limited to the top "N".OperatingSystem.getDescendantProcesses
(int parentPid, Predicate<OSProcess> filter, Comparator<OSProcess> sort, int limit) Gets currently running processes of provided parent PID's descendants, including their children, the children's children, etc., optionally filtering, sorting, and limited to the top "N".OperatingSystem.getProcesses()
Gets currently running processes.OperatingSystem.getProcesses
(Collection<Integer> pids) Gets information on aCollection
of currently running processes.OperatingSystem.getProcesses
(Predicate<OSProcess> filter, Comparator<OSProcess> sort, int limit) Gets currently running processes, optionally filtering, sorting, and limited to the top "N".Modifier and TypeMethodDescriptiondouble
OSProcess.getProcessCpuLoadBetweenTicks
(OSProcess proc) Gets CPU usage of this process since a previous snapshot of the same process, provided as a parameter.Modifier and TypeMethodDescriptionOperatingSystem.getChildProcesses
(int parentPid, Predicate<OSProcess> filter, Comparator<OSProcess> sort, int limit) Gets currently running child processes of provided parent PID, optionally filtering, sorting, and limited to the top "N".OperatingSystem.getChildProcesses
(int parentPid, Predicate<OSProcess> filter, Comparator<OSProcess> sort, int limit) Gets currently running child processes of provided parent PID, optionally filtering, sorting, and limited to the top "N".OperatingSystem.getDescendantProcesses
(int parentPid, Predicate<OSProcess> filter, Comparator<OSProcess> sort, int limit) Gets currently running processes of provided parent PID's descendants, including their children, the children's children, etc., optionally filtering, sorting, and limited to the top "N".OperatingSystem.getDescendantProcesses
(int parentPid, Predicate<OSProcess> filter, Comparator<OSProcess> sort, int limit) Gets currently running processes of provided parent PID's descendants, including their children, the children's children, etc., optionally filtering, sorting, and limited to the top "N".OperatingSystem.getProcesses
(Predicate<OSProcess> filter, Comparator<OSProcess> sort, int limit) Gets currently running processes, optionally filtering, sorting, and limited to the top "N".OperatingSystem.getProcesses
(Predicate<OSProcess> filter, Comparator<OSProcess> sort, int limit) Gets currently running processes, optionally filtering, sorting, and limited to the top "N". -
Uses of OSProcess in oshi.software.os.linux
Modifier and TypeMethodDescriptionLinuxOperatingSystem.queryAllProcesses()
LinuxOperatingSystem.queryChildProcesses
(int parentPid) LinuxOperatingSystem.queryDescendantProcesses
(int parentPid) -
Uses of OSProcess in oshi.software.os.mac
Modifier and TypeMethodDescriptionMacOperatingSystem.queryAllProcesses()
MacOperatingSystem.queryChildProcesses
(int parentPid) MacOperatingSystem.queryDescendantProcesses
(int parentPid) -
Uses of OSProcess in oshi.software.os.unix.aix
Modifier and TypeMethodDescriptionAixOperatingSystem.queryAllProcesses()
AixOperatingSystem.queryChildProcesses
(int parentPid) AixOperatingSystem.queryDescendantProcesses
(int parentPid) -
Uses of OSProcess in oshi.software.os.unix.freebsd
Modifier and TypeMethodDescriptionFreeBsdOperatingSystem.queryAllProcesses()
FreeBsdOperatingSystem.queryChildProcesses
(int parentPid) FreeBsdOperatingSystem.queryDescendantProcesses
(int parentPid) -
Uses of OSProcess in oshi.software.os.unix.openbsd
Modifier and TypeMethodDescriptionOpenBsdOperatingSystem.queryAllProcesses()
OpenBsdOperatingSystem.queryChildProcesses
(int parentPid) OpenBsdOperatingSystem.queryDescendantProcesses
(int parentPid) -
Uses of OSProcess in oshi.software.os.unix.solaris
Modifier and TypeMethodDescriptionSolarisOperatingSystem.queryAllProcesses()
SolarisOperatingSystem.queryChildProcesses
(int parentPid) SolarisOperatingSystem.queryDescendantProcesses
(int parentPid) -
Uses of OSProcess in oshi.software.os.windows
Modifier and TypeMethodDescriptionWindowsOperatingSystem.getProcesses
(Collection<Integer> pids) WindowsOperatingSystem.queryAllProcesses()
WindowsOperatingSystem.queryChildProcesses
(int parentPid) WindowsOperatingSystem.queryDescendantProcesses
(int parentPid)