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
Constructors -
Method Summary
Modifier 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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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: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
-
getNetworkIFs
Description copied from interface:HardwareAbstractionLayerGets a list of non-localNetworkIFobjects, representing a network interface. The list excludes local interfaces.- Specified by:
getNetworkIFsin interfaceHardwareAbstractionLayer- Returns:
- A list of
NetworkIFobjects representing the interfaces
-