public class HardwareUtils extends Object
| 构造器和说明 |
|---|
HardwareUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static Double |
cpuUseRate()
cpu使用率
|
static String |
getOsName()
获取系统名称
|
static void |
main(String[] args) |
static Double |
memoryFreeRate() |
static Double |
memoryUseRate() |
static Long |
totalMemorySize() |
static Double |
totalMemorySizeGB() |
static Double |
totalMemorySizeMB() |
public static String getOsName()
public static Long totalMemorySize()
public static Double totalMemorySizeMB()
public static Double totalMemorySizeGB()
public static Double memoryFreeRate()
public static Double memoryUseRate()
public static Double cpuUseRate()
public static void main(String[] args) throws InterruptedException
Copyright © 2022. All rights reserved.