public class HardwareAbstractionLayerImpl extends AbstractOshiJsonObject implements HardwareAbstractionLayer
| Constructor and Description |
|---|
HardwareAbstractionLayerImpl(HardwareAbstractionLayer hardware)
Creates a new platform-specific HardwareAbstractionLayer object wrapping
the provided argument
|
| Modifier and Type | Method and Description |
|---|---|
ComputerSystem |
getComputerSystem()
Instantiates a
ComputerSystem object. |
HWDiskStore[] |
getDiskStores()
Instantiates an array of
HWDiskStore objects, representing a
physical hard disk or other similar storage device |
Display[] |
getDisplays()
Instantiates an array of
Display objects, representing monitors
or other video output devices. |
GlobalMemory |
getMemory()
Instantiates a
GlobalMemory object. |
NetworkIF[] |
getNetworkIFs()
Instantiates an array of
NetworkIF objects, representing a
network interface |
PowerSource[] |
getPowerSources()
Instantiates an array of
PowerSource objects, representing
batteries, etc. |
CentralProcessor |
getProcessor()
Instantiates a
CentralProcessor object. |
Sensors |
getSensors()
Instantiates a
Sensors object, representing CPU temperature and
fan speed |
UsbDevice[] |
getUsbDevices(boolean tree)
Instantiates an array of
UsbDevice objects, representing devices
connected via a usb port (including internal devices). |
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 HardwareAbstractionLayerImpl(HardwareAbstractionLayer hardware)
hardware - a platform-specific HardwareAbstractionLayer objectpublic ComputerSystem getComputerSystem()
ComputerSystem object. This represents the
physical hardware, including components such as BIOS/Firmware and a
motherboard, logic board, etc.getComputerSystem in interface HardwareAbstractionLayerComputerSystem object.public CentralProcessor getProcessor()
CentralProcessor object. This represents one or
more Logical CPUs.getProcessor in interface HardwareAbstractionLayerCentralProcessor object.public GlobalMemory getMemory()
GlobalMemory object.getMemory in interface HardwareAbstractionLayerpublic PowerSource[] getPowerSources()
PowerSource objects, representing
batteries, etc.getPowerSources in interface HardwareAbstractionLayerpublic HWDiskStore[] getDiskStores()
HWDiskStore objects, representing a
physical hard disk or other similar storage devicegetDiskStores in interface HardwareAbstractionLayerpublic NetworkIF[] getNetworkIFs()
NetworkIF objects, representing a
network interfacegetNetworkIFs in interface HardwareAbstractionLayerpublic Display[] getDisplays()
Display objects, representing monitors
or other video output devices.getDisplays in interface HardwareAbstractionLayerpublic Sensors getSensors()
Sensors object, representing CPU temperature and
fan speedgetSensors in interface HardwareAbstractionLayerpublic UsbDevice[] getUsbDevices(boolean tree)
UsbDevice objects, representing devices
connected via a usb port (including internal devices).
If the value of tree is true, the top level devices returned from this
method are the USB Controllers; connected hubs and devices in its device
tree share that controller's bandwidth. If the value of tree is false,
USB devices (not controllers) are listed in a single flat array.
In the JSON output, this parameter may be specified by the
"hardware.usbDevices.tree" property value.getUsbDevices in interface HardwareAbstractionLayertree - WHether to display devices in a nested tree format from their
controllerspublic 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.