Class MacHardwareAbstractionLayerFFM
java.lang.Object
oshi.hardware.common.AbstractHardwareAbstractionLayer
oshi.hardware.platform.mac.MacHardwareAbstractionLayer
oshi.hardware.platform.mac.MacHardwareAbstractionLayerFFM
- All Implemented Interfaces:
HardwareAbstractionLayer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionInstantiates the platform-specificComputerSystemobjectInstantiates the platform-specificGlobalMemoryobjectInstantiates the platform-specificCentralProcessorobjectInstantiates the platform-specificSensorsobjectInstantiates 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).Methods inherited from class MacHardwareAbstractionLayer
getLogicalVolumeGroups, getSoundCardsMethods inherited from class AbstractHardwareAbstractionLayer
getComputerSystem, getMemory, getNetworkIFs, getProcessor, getSensors
-
Constructor Details
-
MacHardwareAbstractionLayerFFM
public MacHardwareAbstractionLayerFFM()
-
-
Method Details
-
getPrinters
Description copied from interface:HardwareAbstractionLayerInstantiates a list ofPrinterobjects, representing printers.- Specified by:
getPrintersin interfaceHardwareAbstractionLayer- Overrides:
getPrintersin classMacHardwareAbstractionLayer- Returns:
- A list of Printer objects or an empty list if none are present.
-
createProcessor
Description copied from class:AbstractHardwareAbstractionLayerInstantiates the platform-specificCentralProcessorobject- Specified by:
createProcessorin classAbstractHardwareAbstractionLayer- Returns:
- platform-specific
CentralProcessorobject
-
createMemory
Description copied from class:AbstractHardwareAbstractionLayerInstantiates the platform-specificGlobalMemoryobject- Specified by:
createMemoryin classAbstractHardwareAbstractionLayer- Returns:
- platform-specific
GlobalMemoryobject
-
createComputerSystem
Description copied from class:AbstractHardwareAbstractionLayerInstantiates the platform-specificComputerSystemobject- Specified by:
createComputerSystemin classAbstractHardwareAbstractionLayer- Returns:
- platform-specific
ComputerSystemobject
-
createSensors
Description copied from class:AbstractHardwareAbstractionLayerInstantiates the platform-specificSensorsobject- Specified by:
createSensorsin classAbstractHardwareAbstractionLayer- Returns:
- platform-specific
Sensorsobject
-
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
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.
-
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
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
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
-
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.
-