HardwareImpl
Implementation of the Hardware
interface. This class provides detailed information about the system's hardware, including processors, memory, storage devices, network interfaces, displays, and more. It lazily loads hardware data using the provided SystemInfo
object and transforms it into domain-specific objects that implement the relevant interfaces.
Author
N7ghtm4r3
Parameters
The SystemInfo
object that provides access to the hardware information.
See also
Properties
centralProcessor
The central processor (CPU) information, including processor details like name, cores, threads, etc. It is lazily loaded using the hardwareInfo object.
computerSystem
The computer system information, including manufacturer, model, serial number, etc. It is lazily loaded using the hardwareInfo object.
diskStores
List of storage devices (disks) in the system. The list is generated by loading disk information from the hardwareInfo object.
globalMemory
The global memory (RAM) information, including total, available memory, and other memory-related stats. It is lazily loaded using the hardwareInfo object.
graphicsCards
List of graphics cards available on the system. The list is generated by loading graphics card data from the hardwareInfo object.
hardwareInfo
Contains the raw hardware data from the SystemInfo
object. This object is lazily loaded, which makes it easier to access system-specific details like processor, memory, and more.
logicalVolumeGroups
List of logical volume groups on the system. The list is generated by loading logical volume group information from the hardwareInfo object.
networkIFs
List of network interfaces (e.g., Ethernet, Wi-Fi). The list is generated by loading network interface information from the hardwareInfo object.
powerSources
List of power sources (e.g., battery or AC power) available in the system. The list is generated by loading power source data from the hardwareInfo object.
soundCards
List of sound cards available on the system. The list is generated by loading sound card data from the hardwareInfo object.
Functions
Retrieves the network interfaces, with the option to include local interfaces.
getUsbDevices
Retrieves the USB devices connected to the system, with the option to represent them as a device tree.
Loads and converts a list of HWDiskStore
objects from raw oshi.hardware.HWDiskStore
data.
Loads and converts a list of Display
objects from raw oshi.hardware.Display
data.
Loads and converts a list of GraphicsCard
objects from raw oshi.hardware.GraphicsCard
data.
Loads and converts a list of LogicalVolumeGroup
objects from raw oshi.hardware.LogicalVolumeGroup
data.
Loads and converts a list of NetworkIF
objects from raw oshi.hardware.NetworkIF
data.
Loads and converts a list of HWPartition
objects from raw oshi.hardware.HWPartition
data.
Loads and converts a list of PowerSource
objects from raw oshi.hardware.PowerSource
data.
Loads and converts a list of SoundCard
objects from raw oshi.hardware.SoundCard
data.
Loads and converts a list of UsbDevice
objects from raw oshi.hardware.UsbDevice
data.