Class Dmidecode


  • @ThreadSafe
    public final class Dmidecode
    extends java.lang.Object
    Utility to read info from dmidecode
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Dmidecode()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Pair<java.lang.String,​java.lang.String> queryBiosNameRev()
      Query the name and revision from dmidecode
      static java.lang.String querySerialNumber()
      Query the serial number from dmidecode
      static java.lang.String queryUUID()
      Query the UUID from dmidecode
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Dmidecode

        private Dmidecode()
    • Method Detail

      • querySerialNumber

        public static java.lang.String querySerialNumber()
        Query the serial number from dmidecode
        Returns:
        The serial number if available, null otherwise
      • queryUUID

        public static java.lang.String queryUUID()
        Query the UUID from dmidecode
        Returns:
        The UUID if available, null otherwise
      • queryBiosNameRev

        public static Pair<java.lang.String,​java.lang.String> queryBiosNameRev()
        Query the name and revision from dmidecode
        Returns:
        The a pair containing the name and revision if available, null values in the pair otherwise