Class Lshw


  • @ThreadSafe
    public final class Lshw
    extends java.lang.Object
    Utility to read info from lshw
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.String MODEL  
      private static java.lang.String SERIAL  
      private static java.lang.String UUID  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Lshw()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static long queryCpuCapacity()
      Query the CPU capacity (max frequency) from lshw
      static java.lang.String queryModel()
      Query the model from lshw
      static java.lang.String querySerialNumber()
      Query the serial number from lshw
      static java.lang.String queryUUID()
      Query the UUID from lshw
      • Methods inherited from class java.lang.Object

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

      • MODEL

        private static final java.lang.String MODEL
      • SERIAL

        private static final java.lang.String SERIAL
      • UUID

        private static final java.lang.String UUID
    • Constructor Detail

      • Lshw

        private Lshw()
    • Method Detail

      • queryModel

        public static java.lang.String queryModel()
        Query the model from lshw
        Returns:
        The model if available, null otherwise
      • querySerialNumber

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

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

        public static long queryCpuCapacity()
        Query the CPU capacity (max frequency) from lshw
        Returns:
        The CPU capacity (max frequency) if available, -1 otherwise