Package oshi.driver.linux
Class Lshw
- java.lang.Object
-
- oshi.driver.linux.Lshw
-
@ThreadSafe public final class Lshw extends java.lang.Object
Utility to read info fromlshw
-
-
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 lshwstatic java.lang.String
queryModel()
Query the model from lshwstatic java.lang.String
querySerialNumber()
Query the serial number from lshwstatic java.lang.String
queryUUID()
Query the UUID from 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
-
-