public class MacOperatingSystem extends AbstractOperatingSystem
OperatingSystem.ProcessSort
family, manufacturer, version
Constructor and Description |
---|
MacOperatingSystem() |
Modifier and Type | Method and Description |
---|---|
FileSystem |
getFileSystem()
Instantiates a
FileSystem object. |
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
|
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
|
MacOSVersionInfoEx |
getVersion()
Operating system version.
|
getFamily, getManufacturer, processSort, toString
public FileSystem getFileSystem()
FileSystem
object.FileSystem
object.public 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 specifiedpublic OSProcess getProcess(int pid)
pid
- A process IDOSProcess
object for the specified
process id if it is running; null otherwise currently running
processespublic MacOSVersionInfoEx getVersion()
getVersion
in interface OperatingSystem
getVersion
in class AbstractOperatingSystem
public int getProcessId()
public int getProcessCount()
public int getThreadCount()
public NetworkParams getNetworkParams()
NetworkParams
object.NetworkParams
object.Copyright © 2010–2017 oshi. All rights reserved.