Package oshi.hardware.platform.linux
Class LinuxHardwareAbstractionLayer
java.lang.Object
oshi.hardware.common.AbstractHardwareAbstractionLayer
oshi.hardware.platform.linux.LinuxHardwareAbstractionLayer
- All Implemented Interfaces:
HardwareAbstractionLayer
@ThreadSafe public final class LinuxHardwareAbstractionLayer extends AbstractHardwareAbstractionLayer
LinuxHardwareAbstractionLayer class.
-
Constructor Summary
Constructors Constructor Description LinuxHardwareAbstractionLayer() -
Method Summary
Modifier and Type Method Description ComputerSystemcreateComputerSystem()Instantiates the platform-specificComputerSystemobjectGlobalMemorycreateMemory()Instantiates the platform-specificGlobalMemoryobjectCentralProcessorcreateProcessor()Instantiates the platform-specificCentralProcessorobjectSensorscreateSensors()Instantiates the platform-specificSensorsobjectHWDiskStore[]getDiskStores()Instantiates an array ofHWDiskStoreobjects, representing a physical hard disk or other similar storage deviceDisplay[]getDisplays()Instantiates an array ofDisplayobjects, representing monitors or other video output devices.GraphicsCard[]getGraphicsCards()Instantiates an array ofGraphicsCardobjects, representing the Graphics cards.NetworkIF[]getNetworkIFs()Instantiates an array ofNetworkIFobjects, representing a network interfacePowerSource[]getPowerSources()Instantiates an array ofPowerSourceobjects, representing batteries, etc.SoundCard[]getSoundCards()Instantiates an array ofSoundCardobjects, representing the Sound cards.UsbDevice[]getUsbDevices(boolean tree)Instantiates an array ofUsbDeviceobjects, representing devices connected via a usb port (including internal devices).Methods inherited from class oshi.hardware.common.AbstractHardwareAbstractionLayer
getComputerSystem, getMemory, getProcessor, getSensors
-
Constructor Details
-
LinuxHardwareAbstractionLayer
public LinuxHardwareAbstractionLayer()
-
-
Method Details
-
createComputerSystem
Description copied from class:AbstractHardwareAbstractionLayerInstantiates the platform-specificComputerSystemobject- Specified by:
createComputerSystemin classAbstractHardwareAbstractionLayer- Returns:
- platform-specific
ComputerSystemobject
-
createMemory
Description copied from class:AbstractHardwareAbstractionLayerInstantiates the platform-specificGlobalMemoryobject- Specified by:
createMemoryin classAbstractHardwareAbstractionLayer- Returns:
- platform-specific
GlobalMemoryobject
-
createProcessor
Description copied from class:AbstractHardwareAbstractionLayerInstantiates the platform-specificCentralProcessorobject- Specified by:
createProcessorin classAbstractHardwareAbstractionLayer- Returns:
- platform-specific
CentralProcessorobject
-
createSensors
Description copied from class:AbstractHardwareAbstractionLayerInstantiates the platform-specificSensorsobject- Specified by:
createSensorsin classAbstractHardwareAbstractionLayer- Returns:
- platform-specific
Sensorsobject
-
getPowerSources
Description copied from interface:HardwareAbstractionLayerInstantiates an array ofPowerSourceobjects, representing batteries, etc.- Returns:
- An array of PowerSource objects or an empty array if none are present.
-
getDiskStores
Description copied from interface:HardwareAbstractionLayerInstantiates an array ofHWDiskStoreobjects, representing a physical hard disk or other similar storage device- Returns:
- An array of HWDiskStore objects or an empty array if none are present.
-
getDisplays
Description copied from interface:HardwareAbstractionLayerInstantiates an array ofDisplayobjects, representing monitors or other video output devices.- Returns:
- An array of Display objects or an empty array if none are present.
-
getNetworkIFs
Description copied from interface:HardwareAbstractionLayerInstantiates an array ofNetworkIFobjects, representing a network interface- Returns:
- An array of HWNetworkStore objects or an empty array if none are present.
-
getUsbDevices
Description copied from interface:HardwareAbstractionLayerInstantiates an array ofUsbDeviceobjects, 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.
- Parameters:
tree- Whether to display devices in a nested tree format from their controllers- Returns:
- An array of UsbDevice objects representing (optionally) the USB Controllers and devices connected to them, or an empty array if none are present
-
getSoundCards
Description copied from interface:HardwareAbstractionLayerInstantiates an array ofSoundCardobjects, representing the Sound cards.- Returns:
- An array of SoundCard objects or an empty array if none are present.
-
getGraphicsCards
Description copied from interface:HardwareAbstractionLayerInstantiates an array ofGraphicsCardobjects, representing the Graphics cards.- Returns:
- An array of GraphicsCard objects or an empty array if none are present.
-