Class MacHardwareAbstractionLayer
java.lang.Object
oshi.hardware.common.AbstractHardwareAbstractionLayer
oshi.hardware.common.platform.mac.MacHardwareAbstractionLayer
- All Implemented Interfaces:
HardwareAbstractionLayer
@ThreadSafe
public abstract class MacHardwareAbstractionLayer
extends AbstractHardwareAbstractionLayer
MacHardwareAbstractionLayer class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionInstantiates a list ofBluetoothDeviceobjects, representing Bluetooth devices (paired or connected) known to the system.Instantiates a list ofLogicalVolumeGroupobjects, representing a storage pool or group of devices, partitions, volumes, or other implementation specific means of file storage.Instantiates a list ofSoundCardobjects, representing the Sound cards.Methods inherited from class AbstractHardwareAbstractionLayer
createComputerSystem, createMemory, createProcessor, createSensors, getComputerSystem, getMemory, getNetworkIFs, getProcessor, getSensorsModifier and TypeMethodDescriptionprotected abstract ComputerSystemInstantiates the platform-specificComputerSystemobjectprotected abstract GlobalMemoryInstantiates the platform-specificGlobalMemoryobjectprotected abstract CentralProcessorInstantiates the platform-specificCentralProcessorobjectprotected abstract SensorsInstantiates the platform-specificSensorsobjectInstantiates aComputerSystemobject.Instantiates aGlobalMemoryobject.Gets a list of non-localNetworkIFobjects, representing a network interface.Instantiates aCentralProcessorobject.Instantiates aSensorsobject, representing CPU temperature and fan speed.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface HardwareAbstractionLayer
getDiskStores, getDisplays, getGraphicsCards, getNetworkIFs, getPowerSources, getPrinters, getUsbDevicesModifier and TypeMethodDescriptionInstantiates a list ofHWDiskStoreobjects, representing physical hard disks or other similar storage devices.Instantiates a list ofDisplayobjects, representing monitors or other video output devices.Instantiates a list ofGraphicsCardobjects, representing the Graphics cards.getNetworkIFs(boolean includeLocalInterfaces) Gets a listNetworkIFobjects, representing a network interface.Instantiates a list ofPowerSourceobjects, representing batteries, etc.Instantiates a list ofPrinterobjects, representing printers.getUsbDevices(boolean tree) Instantiates a list ofUsbDeviceobjects, representing devices connected via a usb port (including internal devices).
-
Constructor Details
-
MacHardwareAbstractionLayer
protected MacHardwareAbstractionLayer()Default constructor.
-
-
Method Details
-
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.
-
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.
-
getBluetoothDevices
Description copied from interface:HardwareAbstractionLayerInstantiates a list ofBluetoothDeviceobjects, representing Bluetooth devices (paired or connected) known to the system.- Returns:
- A list of BluetoothDevice objects or an empty list if none are present.
-