Package oshi.software.os
Class OperatingSystem.ProcessSorting
java.lang.Object
oshi.software.os.OperatingSystem.ProcessSorting
- Enclosing interface:
- OperatingSystem
public static final class OperatingSystem.ProcessSorting
extends java.lang.Object
Constants which may be used to sort Process lists in
OperatingSystem.getProcesses(Predicate, Comparator, int)
,
OperatingSystem.getChildProcesses(int, Predicate, Comparator, int)
, and
OperatingSystem.getDescendantProcesses(int, Predicate, Comparator, int)
.-
Field Summary
Fields Modifier and Type Field Description static java.util.Comparator<OSProcess>
CPU_DESC
Sort by decreasing cumulative CPU percentagestatic java.util.Comparator<OSProcess>
NAME_ASC
Sort by Process Name (case insensitive)static java.util.Comparator<OSProcess>
NO_SORTING
No sortingstatic java.util.Comparator<OSProcess>
PARENTPID_ASC
Sort by Parent Process Idstatic java.util.Comparator<OSProcess>
PID_ASC
Sort by Process Idstatic java.util.Comparator<OSProcess>
RSS_DESC
Sort by decreasing Resident Set Size (RSS)static java.util.Comparator<OSProcess>
UPTIME_ASC
Sort by up time, newest processes firststatic java.util.Comparator<OSProcess>
UPTIME_DESC
Sort by up time, oldest processes first -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
NO_SORTING
No sorting -
CPU_DESC
Sort by decreasing cumulative CPU percentage -
RSS_DESC
Sort by decreasing Resident Set Size (RSS) -
UPTIME_ASC
Sort by up time, newest processes first -
UPTIME_DESC
Sort by up time, oldest processes first -
PID_ASC
Sort by Process Id -
PARENTPID_ASC
Sort by Parent Process Id -
NAME_ASC
Sort by Process Name (case insensitive)
-