Package oshi.hardware.common
Class AbstractHardwareAbstractionLayer
java.lang.Object
oshi.hardware.common.AbstractHardwareAbstractionLayer
- All Implemented Interfaces:
HardwareAbstractionLayer
- Direct Known Subclasses:
FreeBsdHardwareAbstractionLayer
,LinuxHardwareAbstractionLayer
,MacHardwareAbstractionLayer
,SolarisHardwareAbstractionLayer
,WindowsHardwareAbstractionLayer
@ThreadSafe public abstract class AbstractHardwareAbstractionLayer extends java.lang.Object implements HardwareAbstractionLayer
Common fields or methods used by platform-specific implementations of
HardwareAbstractionLayer
-
Constructor Summary
Constructors Constructor Description AbstractHardwareAbstractionLayer()
-
Method Summary
Modifier and Type Method Description protected abstract ComputerSystem
createComputerSystem()
Instantiates the platform-specificComputerSystem
objectprotected abstract GlobalMemory
createMemory()
Instantiates the platform-specificGlobalMemory
objectprotected abstract CentralProcessor
createProcessor()
Instantiates the platform-specificCentralProcessor
objectprotected abstract Sensors
createSensors()
Instantiates the platform-specificSensors
objectComputerSystem
getComputerSystem()
Instantiates aComputerSystem
object.GlobalMemory
getMemory()
Instantiates aGlobalMemory
object.CentralProcessor
getProcessor()
Instantiates aCentralProcessor
object.Sensors
getSensors()
Instantiates aSensors
object, representing CPU temperature and fan speedMethods 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, 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
-