类 SystemInfoUtils

java.lang.Object
cn.tpkf.rpi.utils.SystemInfoUtils

public class SystemInfoUtils extends Object
作者:
Harlan
  • 方法详细资料

    • getCentralProcess

      public static oshi.hardware.CentralProcessor getCentralProcess()
      获取CPU信息
      返回:
      CentralProcessor
    • getHardware

      public static oshi.hardware.HardwareAbstractionLayer getHardware()
      获取硬件信息
      返回:
      HardwareAbstractionLayer
    • getTotalMemory

      public static long getTotalMemory()
      获取总内存
      返回:
      总内存
    • getUsedMemory

      public static long getUsedMemory()
      获取已使用内存
      返回:
      已使用内存
    • getFreeMemory

      public static long getFreeMemory()
      获取空闲内存
      返回:
      空闲内存
    • getSystemCpuLoadTicks

      public static long[] getSystemCpuLoadTicks()
      获取系统CPU负载
      返回:
      系统CPU负载
    • getCpuUsageRate

      public static double getCpuUsageRate()
      获取CPU使用率
      返回:
      CPU使用率
    • getCpuTemperature

      public static double getCpuTemperature()
      获取CPU温度
      返回:
      CPU温度
    • getPlatformInfo

      public static PlatformInfo getPlatformInfo()
      获取平台信息
      返回:
      平台信息