Package oshi

Class SystemInfo

java.lang.Object
oshi.SystemInfo

public class SystemInfo extends 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 Details

    • SystemInfo

      public SystemInfo()
      Create a new instance of SystemInfo. This is the main entry point to OSHI and provides access to cross-platform code.

      Platform-specific Hardware and Software objects are retrieved via memoized suppliers. To conserve memory at the cost of additional processing time, create a new version of SystemInfo() for subsequent calls. To conserve processing time at the cost of additional memory usage, re-use the same SystemInfo object for future queries.

  • Method Details