public class SystemInfo extends AbstractOshiJsonObject implements OshiJsonObject
OperatingSystem (software) and
HardwareAbstractionLayer (hardware).| Constructor and Description |
|---|
SystemInfo()
Primary entry point for OSHI API.
|
| Modifier and Type | Method and Description |
|---|---|
static PlatformEnum |
getCurrentPlatformEnum() |
HardwareAbstractionLayer |
getHardware()
Creates a new instance of the appropriate platform-specific
HardwareAbstractionLayer. |
OperatingSystem |
getOperatingSystem()
Creates a new instance of the appropriate platform-specific
OperatingSystem. |
javax.json.JsonObject |
toJSON(Properties properties)
Returns this object as a
JsonObject. |
toCompactJSON, toCompactJSON, toJSON, toPrettyJSON, toPrettyJSON, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waittoCompactJSON, toCompactJSON, toJSON, toPrettyJSON, toPrettyJSONpublic static PlatformEnum getCurrentPlatformEnum()
public OperatingSystem getOperatingSystem()
OperatingSystem.OperatingSystem.public HardwareAbstractionLayer getHardware()
HardwareAbstractionLayer.HardwareAbstractionLayer.public javax.json.JsonObject toJSON(Properties properties)
JsonObject. The provided
properties will be set on this object to configure the type of
information returned using this and future invocations of
OshiJsonObject.toJSON().toJSON in interface OshiJsonObjectproperties - Properties to configure returned resultsJsonObject for this class.Copyright © 2010–2017 oshi. All rights reserved.