Class CpuInfo

java.lang.Object
oshi.driver.linux.proc.CpuInfo

@ThreadSafe
public final class CpuInfo
extends java.lang.Object
Utility to read CPU info from /proc/cpuinfo
  • Method Summary

    Modifier and Type Method Description
    static Quartet<java.lang.String,​java.lang.String,​java.lang.String,​java.lang.String> queryBoardInfo()
    Gets the board manufacturer, model, version, and serial number from /proc/cpuinfo
    static java.lang.String queryCpuManufacturer()
    Gets the CPU manufacturer from /proc/cpuinfo

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • queryCpuManufacturer

      public static java.lang.String queryCpuManufacturer()
      Gets the CPU manufacturer from /proc/cpuinfo
      Returns:
      The manufacturer if known, null otherwise
    • queryBoardInfo

      public static Quartet<java.lang.String,​java.lang.String,​java.lang.String,​java.lang.String> queryBoardInfo()
      Gets the board manufacturer, model, version, and serial number from /proc/cpuinfo
      Returns:
      A quartet of strings for manufacturer, model, version, and serial number. Each one may be null if unknown.