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.
|
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, waitgetFileSystem, 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 nullCopyright © 2010–2017 oshi. All rights reserved.