Package oshi.hardware.common
Class AbstractHardwareAbstractionLayer
java.lang.Object
oshi.hardware.common.AbstractHardwareAbstractionLayer
- All Implemented Interfaces:
HardwareAbstractionLayer
- Direct Known Subclasses:
AixHardwareAbstractionLayer,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 ComputerSystemcreateComputerSystem()Instantiates the platform-specificComputerSystemobjectprotected abstract GlobalMemorycreateMemory()Instantiates the platform-specificGlobalMemoryobjectprotected abstract CentralProcessorcreateProcessor()Instantiates the platform-specificCentralProcessorobjectprotected abstract SensorscreateSensors()Instantiates the platform-specificSensorsobjectComputerSystemgetComputerSystem()Instantiates aComputerSystemobject.GlobalMemorygetMemory()Instantiates aGlobalMemoryobject.CentralProcessorgetProcessor()Instantiates aCentralProcessorobject.SensorsgetSensors()Instantiates aSensorsobject, representing CPU temperature and fan speedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:HardwareAbstractionLayerInstantiates aComputerSystemobject. This represents the physical hardware, including components such as BIOS/Firmware and a motherboard, logic board, etc.- Specified by:
getComputerSystemin interfaceHardwareAbstractionLayer- Returns:
- a
ComputerSystemobject.
-
createComputerSystem
Instantiates the platform-specificComputerSystemobject- Returns:
- platform-specific
ComputerSystemobject
-
getProcessor
Description copied from interface:HardwareAbstractionLayerInstantiates aCentralProcessorobject. This represents one or more Logical CPUs.- Specified by:
getProcessorin interfaceHardwareAbstractionLayer- Returns:
- A
CentralProcessorobject.
-
createProcessor
Instantiates the platform-specificCentralProcessorobject- Returns:
- platform-specific
CentralProcessorobject
-
getMemory
Description copied from interface:HardwareAbstractionLayerInstantiates aGlobalMemoryobject.- Specified by:
getMemoryin interfaceHardwareAbstractionLayer- Returns:
- A memory object.
-
createMemory
Instantiates the platform-specificGlobalMemoryobject- Returns:
- platform-specific
GlobalMemoryobject
-
getSensors
Description copied from interface:HardwareAbstractionLayerInstantiates aSensorsobject, representing CPU temperature and fan speed- Specified by:
getSensorsin interfaceHardwareAbstractionLayer- Returns:
- A Sensors object
-
createSensors
Instantiates the platform-specificSensorsobject- Returns:
- platform-specific
Sensorsobject
-