Class Sysfs

java.lang.Object
oshi.driver.linux.Sysfs

@ThreadSafe
public final class Sysfs
extends java.lang.Object
Utility to read info from sysfs
  • Method Summary

    Modifier and Type Method Description
    static java.lang.String queryBiosDescription()
    Query the bios description from sysfs
    static java.lang.String queryBiosReleaseDate()
    Query the bios release date from sysfs
    static java.lang.String queryBiosVendor()
    Query the bios vendor from sysfs
    static java.lang.String queryBiosVersion​(java.lang.String biosRevision)
    Query the bios version from sysfs
    static java.lang.String queryBoardModel()
    Query the board model from sysfs
    static java.lang.String queryBoardSerial()
    Query the board serial number from sysfs
    static java.lang.String queryBoardVendor()
    Query the board vendor from sysfs
    static java.lang.String queryBoardVersion()
    Query the board version from sysfs
    static java.lang.String queryProductModel()
    Query the model from sysfs
    static java.lang.String queryProductSerial()
    Query the product serial number from sysfs
    static java.lang.String querySystemVendor()
    Query the vendor from sysfs

    Methods inherited from class java.lang.Object

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

    • querySystemVendor

      public static java.lang.String querySystemVendor()
      Query the vendor from sysfs
      Returns:
      The vendor if available, null otherwise
    • queryProductModel

      public static java.lang.String queryProductModel()
      Query the model from sysfs
      Returns:
      The model if available, null otherwise
    • queryProductSerial

      public static java.lang.String queryProductSerial()
      Query the product serial number from sysfs
      Returns:
      The serial number if available, null otherwise
    • queryBoardVendor

      public static java.lang.String queryBoardVendor()
      Query the board vendor from sysfs
      Returns:
      The board vendor if available, null otherwise
    • queryBoardModel

      public static java.lang.String queryBoardModel()
      Query the board model from sysfs
      Returns:
      The board model if available, null otherwise
    • queryBoardVersion

      public static java.lang.String queryBoardVersion()
      Query the board version from sysfs
      Returns:
      The board version if available, null otherwise
    • queryBoardSerial

      public static java.lang.String queryBoardSerial()
      Query the board serial number from sysfs
      Returns:
      The board serial number if available, null otherwise
    • queryBiosVendor

      public static java.lang.String queryBiosVendor()
      Query the bios vendor from sysfs
      Returns:
      The bios vendor if available, null otherwise
    • queryBiosDescription

      public static java.lang.String queryBiosDescription()
      Query the bios description from sysfs
      Returns:
      The bios description if available, null otherwise
    • queryBiosVersion

      public static java.lang.String queryBiosVersion​(java.lang.String biosRevision)
      Query the bios version from sysfs
      Parameters:
      biosRevision - A revision string to append
      Returns:
      The bios version if available, null otherwise
    • queryBiosReleaseDate

      public static java.lang.String queryBiosReleaseDate()
      Query the bios release date from sysfs
      Returns:
      The bios release date if available, null otherwise