类 SystemInfoUtils
java.lang.Object
cn.tpkf.rpi.utils.SystemInfoUtils
- 作者:
- Harlan
-
方法概要
修饰符和类型方法说明static oshi.hardware.CentralProcessor获取CPU信息static double获取CPU温度static double获取CPU使用率static long获取空闲内存static oshi.hardware.HardwareAbstractionLayer获取硬件信息static PlatformInfo获取平台信息static long[]获取系统CPU负载static long获取总内存static long获取已使用内存
-
方法详细资料
-
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
获取平台信息- 返回:
- 平台信息
-