Package oshi
Class SystemInfo
java.lang.Object
oshi.SystemInfo
public class SystemInfo
extends java.lang.Object
System information. This is the main entry point to Oshi.
This object provides getters which instantiate the appropriate
platform-specific implementations of OperatingSystem
(software) and HardwareAbstractionLayer
(hardware).
-
Constructor Summary
Constructors Constructor Description SystemInfo()
-
Method Summary
Modifier and Type Method Description static PlatformEnum
getCurrentPlatformEnum()
Getter for the fieldcurrentPlatformEnum
.HardwareAbstractionLayer
getHardware()
Creates a new instance of the appropriate platform-specificHardwareAbstractionLayer
.OperatingSystem
getOperatingSystem()
Creates a new instance of the appropriate platform-specificOperatingSystem
.
-
Constructor Details
-
SystemInfo
public SystemInfo()
-
-
Method Details
-
getCurrentPlatformEnum
Getter for the field
currentPlatformEnum
.- Returns:
- Returns the currentPlatformEnum.
-
getOperatingSystem
Creates a new instance of the appropriate platform-specificOperatingSystem
.- Returns:
- A new instance of
OperatingSystem
.
-
getHardware
Creates a new instance of the appropriate platform-specificHardwareAbstractionLayer
.- Returns:
- A new instance of
HardwareAbstractionLayer
.
-