public class LinuxHardwareAbstractionLayer extends AbstractHardwareAbstractionLayer
LinuxHardwareAbstractionLayer class.
computerSystem, memory, processor, sensors| Constructor and Description |
|---|
LinuxHardwareAbstractionLayer() |
| 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 |
SoundCard[] |
getSoundCards()
Instantiates an array of
SoundCard objects,
representing the Sound cards. |
UsbDevice[] |
getUsbDevices(boolean tree)
Instantiates an array of
UsbDevice objects,
representing devices connected via a usb port (including internal devices). |
public ComputerSystem getComputerSystem()
ComputerSystem object. This represents
the physical hardware, including components such as BIOS/Firmware and a
motherboard, logic board, etc.ComputerSystem object.public GlobalMemory getMemory()
GlobalMemory object.public CentralProcessor getProcessor()
CentralProcessor object. This represents
one or more Logical CPUs.CentralProcessor object.public PowerSource[] getPowerSources()
PowerSource objects,
representing batteries, etc.public HWDiskStore[] getDiskStores()
HWDiskStore objects,
representing a physical hard disk or other similar storage devicepublic Display[] getDisplays()
Display objects, representing
monitors or other video output devices.public Sensors getSensors()
Sensors object, representing CPU
temperature and fan speedpublic NetworkIF[] getNetworkIFs()
NetworkIF objects,
representing a network interfacepublic 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.
tree - Whether to display devices in a nested tree format from their
controllersCopyright © 2010–2019 oshi. All rights reserved.