public abstract class AbstractOperatingSystem extends Object implements OperatingSystem
OperatingSystem.ProcessSort| Modifier and Type | Field and Description |
|---|---|
protected String |
family |
protected String |
manufacturer |
protected OperatingSystemVersion |
version |
| Constructor and Description |
|---|
AbstractOperatingSystem() |
| Modifier and Type | Method and Description |
|---|---|
String |
getFamily()
Operating system family.
|
String |
getManufacturer()
Manufacturer.
|
List<OSProcess> |
getProcesses(Collection<Integer> pids)
Gets information on a currently running processes.
|
OperatingSystemVersion |
getVersion()
Operating system version.
|
protected List<OSProcess> |
processSort(List<OSProcess> processes,
int limit,
OperatingSystem.ProcessSort sort)
Sorts an array of processes using the specified sorting, returning an
array with the top limit results if positive.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetChildProcesses, getFileSystem, getNetworkParams, getProcess, getProcessCount, getProcesses, getProcessId, getThreadCountprotected String manufacturer
protected String family
protected OperatingSystemVersion version
public OperatingSystemVersion getVersion()
getVersion in interface OperatingSystempublic String getFamily()
getFamily in interface OperatingSystempublic String getManufacturer()
getManufacturer in interface OperatingSystemprotected List<OSProcess> processSort(List<OSProcess> processes, int limit, OperatingSystem.ProcessSort sort)
processes - The array to sortlimit - The number of results to return if positive; if zero returns
all resultssort - The sorting to use, or nullpublic List<OSProcess> getProcesses(Collection<Integer> pids)
getProcesses in interface OperatingSystempids - A collection of process IDsOSProcess object for the specified
process ids if it is runningCopyright © 2010–2018 oshi. All rights reserved.