public interface OperatingSystem extends Serializable
| Modifier and Type | Interface and Description |
|---|---|
static class |
OperatingSystem.ProcessSort
Controls sorting of Process output
|
| Modifier and Type | Method and Description |
|---|---|
OSProcess[] |
getChildProcesses(int parentPid,
int limit,
OperatingSystem.ProcessSort sort)
Gets currently running child processes of provided PID.
|
String |
getFamily()
Operating system family.
|
FileSystem |
getFileSystem()
Instantiates a
FileSystem object. |
String |
getManufacturer()
Manufacturer.
|
NetworkParams |
getNetworkParams()
Instantiates a
NetworkParams object. |
OSProcess |
getProcess(int pid)
Gets information on a currently running process
|
int |
getProcessCount()
Get the number of processes currently running
|
List<OSProcess> |
getProcesses(Collection<Integer> pids)
Gets information on a currently running processes.
|
OSProcess[] |
getProcesses(int limit,
OperatingSystem.ProcessSort sort)
Gets currently running processes.
|
int |
getProcessId()
Gets the current process ID
|
int |
getThreadCount()
Get the number of threads currently running
|
OperatingSystemVersion |
getVersion()
Operating system version.
|
String getFamily()
String getManufacturer()
OperatingSystemVersion getVersion()
FileSystem getFileSystem()
FileSystem object.FileSystem object.OSProcess[] getProcesses(int limit, OperatingSystem.ProcessSort sort)
limit - Max number of results to return, or 0 to return all resultssort - If not null, determines sorting of resultsOSProcess objects for the
specified number (or all) of currently running processes, sorted
as specified. The array may contain null elements if a process
terminates during iteration.OSProcess getProcess(int pid)
pid - A process IDOSProcess object for the specified
process id if it is running; null otherwiseList<OSProcess> getProcesses(Collection<Integer> pids)
pids - A collection of process IDsOSProcess object for the specified
process ids if it is runningOSProcess[] getChildProcesses(int parentPid, int limit, OperatingSystem.ProcessSort sort)
parentPid - A process IDlimit - Max number of results to return, or 0 to return all resultssort - If not null, determines sorting of resultsOSProcess objects presenting
the specified number (or all) of currently running child
processes of the provided PID, sorted as specified. The array may
contain null elements if a process terminates during iteration.int getProcessId()
int getProcessCount()
int getThreadCount()
NetworkParams getNetworkParams()
NetworkParams object.NetworkParams object.Copyright © 2010–2018 oshi. All rights reserved.