java.lang.Object
oshi.software.os.OperatingSystem.ProcessSorting
- Enclosing interface:
- OperatingSystem
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
Modifier and TypeFieldDescriptionstatic final Comparator<OSProcess>
Sort by decreasing cumulative CPU percentagestatic final Comparator<OSProcess>
Sort by Process Name (case insensitive)static final Comparator<OSProcess>
No sortingstatic final Comparator<OSProcess>
Sort by Parent Process Idstatic final Comparator<OSProcess>
Sort by Process Idstatic final Comparator<OSProcess>
Sort by decreasing Resident Set Size (RSS)static final Comparator<OSProcess>
Sort by up time, newest processes firststatic final Comparator<OSProcess>
Sort by up time, oldest processes first -
Method Summary
-
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)
-