Package oshi.software.os
Class OperatingSystem.ProcessFiltering
java.lang.Object
oshi.software.os.OperatingSystem.ProcessFiltering
- Enclosing interface:
- OperatingSystem
public static final class OperatingSystem.ProcessFiltering
extends java.lang.Object
Constants which may be used to filter 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.function.Predicate<OSProcess>ALL_PROCESSESNo filtering.static java.util.function.Predicate<OSProcess>BITNESS_32Only include 32-bit processes.static java.util.function.Predicate<OSProcess>BITNESS_64Only incude 64-bit processes.static java.util.function.Predicate<OSProcess>NO_PARENTExclude child processes.static java.util.function.Predicate<OSProcess>VALID_PROCESSExclude processes withOSProcess.State.INVALIDprocess state. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
ALL_PROCESSES
No filtering. -
VALID_PROCESS
Exclude processes withOSProcess.State.INVALIDprocess state. -
NO_PARENT
Exclude child processes. Only include processes which are their own parent. -
BITNESS_64
Only incude 64-bit processes. -
BITNESS_32
Only include 32-bit processes.
-