Package oshi.hardware.common
Class AbstractHardwareAbstractionLayer
java.lang.Object
oshi.hardware.common.AbstractHardwareAbstractionLayer
- All Implemented Interfaces:
HardwareAbstractionLayer
- Direct Known Subclasses:
AixHardwareAbstractionLayer
,FreeBsdHardwareAbstractionLayer
,LinuxHardwareAbstractionLayer
,MacHardwareAbstractionLayer
,OpenBsdHardwareAbstractionLayer
,SolarisHardwareAbstractionLayer
,WindowsHardwareAbstractionLayer
@ThreadSafe
public abstract class AbstractHardwareAbstractionLayer
extends Object
implements HardwareAbstractionLayer
Common fields or methods used by platform-specific implementations of HardwareAbstractionLayer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected abstract ComputerSystem
Instantiates the platform-specificComputerSystem
objectprotected abstract GlobalMemory
Instantiates the platform-specificGlobalMemory
objectprotected abstract CentralProcessor
Instantiates the platform-specificCentralProcessor
objectprotected abstract Sensors
Instantiates the platform-specificSensors
objectInstantiates aComputerSystem
object.Instantiates aGlobalMemory
object.Gets a list of non-localNetworkIF
objects, representing a network interface.Instantiates aCentralProcessor
object.Instantiates aSensors
object, representing CPU temperature and fan speed.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface oshi.hardware.HardwareAbstractionLayer
getDiskStores, getDisplays, getGraphicsCards, getLogicalVolumeGroups, getNetworkIFs, getPowerSources, getSoundCards, getUsbDevices
-
Constructor Details
-
AbstractHardwareAbstractionLayer
public AbstractHardwareAbstractionLayer()
-
-
Method Details
-
getComputerSystem
Description copied from interface:HardwareAbstractionLayer
Instantiates aComputerSystem
object. This represents the physical hardware, including components such as BIOS/Firmware and a motherboard, logic board, etc.- Specified by:
getComputerSystem
in interfaceHardwareAbstractionLayer
- Returns:
- a
ComputerSystem
object.
-
createComputerSystem
Instantiates the platform-specificComputerSystem
object- Returns:
- platform-specific
ComputerSystem
object
-
getProcessor
Description copied from interface:HardwareAbstractionLayer
Instantiates aCentralProcessor
object. This represents one or more Logical CPUs.- Specified by:
getProcessor
in interfaceHardwareAbstractionLayer
- Returns:
- A
CentralProcessor
object.
-
createProcessor
Instantiates the platform-specificCentralProcessor
object- Returns:
- platform-specific
CentralProcessor
object
-
getMemory
Description copied from interface:HardwareAbstractionLayer
Instantiates aGlobalMemory
object.- Specified by:
getMemory
in interfaceHardwareAbstractionLayer
- Returns:
- A memory object.
-
createMemory
Instantiates the platform-specificGlobalMemory
object- Returns:
- platform-specific
GlobalMemory
object
-
getSensors
Description copied from interface:HardwareAbstractionLayer
Instantiates aSensors
object, representing CPU temperature and fan speed.- Specified by:
getSensors
in interfaceHardwareAbstractionLayer
- Returns:
- A Sensors object
-
createSensors
Instantiates the platform-specificSensors
object- Returns:
- platform-specific
Sensors
object
-
getNetworkIFs
Description copied from interface:HardwareAbstractionLayer
Gets a list of non-localNetworkIF
objects, representing a network interface. The list excludes local interfaces.- Specified by:
getNetworkIFs
in interfaceHardwareAbstractionLayer
- Returns:
- A list of
NetworkIF
objects representing the interfaces
-