Package oshi.hardware.platform.windows
Class WindowsHardwareAbstractionLayer
- java.lang.Object
-
- oshi.hardware.common.AbstractHardwareAbstractionLayer
-
- oshi.hardware.platform.windows.WindowsHardwareAbstractionLayer
-
- All Implemented Interfaces:
HardwareAbstractionLayer
@ThreadSafe public final class WindowsHardwareAbstractionLayer extends AbstractHardwareAbstractionLayer
WindowsHardwareAbstractionLayer class.
-
-
Constructor Summary
Constructors Constructor Description WindowsHardwareAbstractionLayer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComputerSystemcreateComputerSystem()Instantiates the platform-specificComputerSystemobjectGlobalMemorycreateMemory()Instantiates the platform-specificGlobalMemoryobjectCentralProcessorcreateProcessor()Instantiates the platform-specificCentralProcessorobjectSensorscreateSensors()Instantiates the platform-specificSensorsobjectjava.util.List<HWDiskStore>getDiskStores()Instantiates a list ofHWDiskStoreobjects, representing physical hard disks or other similar storage devices.java.util.List<Display>getDisplays()Instantiates a list ofDisplayobjects, representing monitors or other video output devices.java.util.List<GraphicsCard>getGraphicsCards()Instantiates a list ofGraphicsCardobjects, representing the Graphics cards.java.util.List<LogicalVolumeGroup>getLogicalVolumeGroups()Instantiates a list ofLogicalVolumeGroupobjects, representing a storage pool or group of devices, partitions, volumes, or other implementation specific means of file storage.java.util.List<NetworkIF>getNetworkIFs(boolean includeLocalInterfaces)Gets a listNetworkIFobjects, representing a network interface.java.util.List<PowerSource>getPowerSources()Instantiates a list ofPowerSourceobjects, representing batteries, etc.java.util.List<SoundCard>getSoundCards()Instantiates a list ofSoundCardobjects, representing the Sound cards.java.util.List<UsbDevice>getUsbDevices(boolean tree)Instantiates a list ofUsbDeviceobjects, representing devices connected via a usb port (including internal devices).-
Methods inherited from class oshi.hardware.common.AbstractHardwareAbstractionLayer
getComputerSystem, getMemory, getNetworkIFs, getProcessor, getSensors
-
-
-
-
Method Detail
-
createComputerSystem
public ComputerSystem createComputerSystem()
Description copied from class:AbstractHardwareAbstractionLayerInstantiates the platform-specificComputerSystemobject- Specified by:
createComputerSystemin classAbstractHardwareAbstractionLayer- Returns:
- platform-specific
ComputerSystemobject
-
createMemory
public GlobalMemory createMemory()
Description copied from class:AbstractHardwareAbstractionLayerInstantiates the platform-specificGlobalMemoryobject- Specified by:
createMemoryin classAbstractHardwareAbstractionLayer- Returns:
- platform-specific
GlobalMemoryobject
-
createProcessor
public CentralProcessor createProcessor()
Description copied from class:AbstractHardwareAbstractionLayerInstantiates the platform-specificCentralProcessorobject- Specified by:
createProcessorin classAbstractHardwareAbstractionLayer- Returns:
- platform-specific
CentralProcessorobject
-
createSensors
public Sensors createSensors()
Description copied from class:AbstractHardwareAbstractionLayerInstantiates the platform-specificSensorsobject- Specified by:
createSensorsin classAbstractHardwareAbstractionLayer- Returns:
- platform-specific
Sensorsobject
-
getPowerSources
public java.util.List<PowerSource> getPowerSources()
Description copied from interface:HardwareAbstractionLayerInstantiates a list ofPowerSourceobjects, representing batteries, etc.- Returns:
- A list of PowerSource objects or an empty list if none are present.
-
getDiskStores
public java.util.List<HWDiskStore> getDiskStores()
Description copied from interface:HardwareAbstractionLayerInstantiates a list ofHWDiskStoreobjects, representing physical hard disks or other similar storage devices.- Returns:
- A list of HWDiskStore objects or an empty list if none are present.
-
getLogicalVolumeGroups
public java.util.List<LogicalVolumeGroup> getLogicalVolumeGroups()
Description copied from interface:HardwareAbstractionLayerInstantiates a list ofLogicalVolumeGroupobjects, representing a storage pool or group of devices, partitions, volumes, or other implementation specific means of file storage.If not yet implemented or if logical volume groups do not exist, returns an empty list.
Currently implemented for Linux (LVM2), macOS (Core Storage), and Windows (Storage Spaces).
- Returns:
- A list of
LogicalVolumeGroupobjects or an empty list if none are present.
-
getDisplays
public java.util.List<Display> getDisplays()
Description copied from interface:HardwareAbstractionLayerInstantiates a list ofDisplayobjects, representing monitors or other video output devices.- Returns:
- A list of Display objects or an empty list if none are present.
-
getNetworkIFs
public java.util.List<NetworkIF> getNetworkIFs(boolean includeLocalInterfaces)
Description copied from interface:HardwareAbstractionLayerGets a listNetworkIFobjects, representing a network interface.- Parameters:
includeLocalInterfaces- whether to include local interfaces (loopback or no hardware address) in the result- Returns:
- A list of
NetworkIFobjects representing the interfaces
-
getUsbDevices
public java.util.List<UsbDevice> getUsbDevices(boolean tree)
Description copied from interface:HardwareAbstractionLayerInstantiates a list ofUsbDeviceobjects, representing devices connected via a usb port (including internal devices).If the value of
treeis 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 oftreeis false, USB devices (not controllers) are listed in a single flat list.- Parameters:
tree- Iftrue, returns devices connected to the existing device, accessible viaUsbDevice.getConnectedDevices(). Iffalsereturns devices as a flat list with no connected device information.- Returns:
- A list of UsbDevice objects representing (optionally) the USB Controllers and devices connected to them, or an empty list if none are present
-
getSoundCards
public java.util.List<SoundCard> getSoundCards()
Description copied from interface:HardwareAbstractionLayerInstantiates a list ofSoundCardobjects, representing the Sound cards.- Returns:
- A list of SoundCard objects or an empty list if none are present.
-
getGraphicsCards
public java.util.List<GraphicsCard> getGraphicsCards()
Description copied from interface:HardwareAbstractionLayerInstantiates a list ofGraphicsCardobjects, representing the Graphics cards.- Returns:
- A list of objects or an empty list if none are present.
-
-