public class SystemInfoUtils extends Object
| 构造器和说明 |
|---|
SystemInfoUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static oshi.hardware.ComputerSystem |
getComputerSystem()
获取系统信息
|
static List<oshi.hardware.HWDiskStore> |
getDiskStores()
获取磁盘信息
|
static List<oshi.hardware.Display> |
getDisplays()
获取显卡信息
|
static oshi.hardware.GlobalMemory |
getMemory()
获取内存信息
|
static List<oshi.hardware.NetworkIF> |
getNetworkIFs()
获取网卡信息
|
static oshi.software.os.OperatingSystem |
getOperatingSystem()
获取操作系统信息
|
static List<oshi.hardware.PowerSource> |
getPowerSources()
获取电源信息
|
static List<oshi.software.os.OSProcess> |
getProcesses() |
static List<oshi.software.os.OSProcess> |
getProcesses(int limit) |
static List<oshi.software.os.OSProcess> |
getProcesses(int limit,
oshi.software.os.OperatingSystem.ProcessSort processSort) |
static List<oshi.software.os.OSProcess> |
getProcesses(oshi.software.os.OperatingSystem.ProcessSort processSort) |
static oshi.hardware.CentralProcessor |
getProcessor()
获取CPU信息
|
static oshi.hardware.Sensors |
getSensors()
获取传感器信息
|
static List<oshi.hardware.SoundCard> |
getSoundCards()
获取声卡信息
|
static List<oshi.hardware.UsbDevice> |
getUsbDevices(boolean tree)
获取外接USB信息
|
public static oshi.software.os.OperatingSystem getOperatingSystem()
public static oshi.hardware.ComputerSystem getComputerSystem()
public static oshi.hardware.CentralProcessor getProcessor()
public static oshi.hardware.GlobalMemory getMemory()
public static List<oshi.hardware.PowerSource> getPowerSources()
public static List<oshi.hardware.HWDiskStore> getDiskStores()
public static List<oshi.hardware.NetworkIF> getNetworkIFs()
public static List<oshi.hardware.Display> getDisplays()
public static oshi.hardware.Sensors getSensors()
public static List<oshi.hardware.UsbDevice> getUsbDevices(boolean tree)
tree - 是否树显示public static List<oshi.hardware.SoundCard> getSoundCards()
public static List<oshi.software.os.OSProcess> getProcesses()
public static List<oshi.software.os.OSProcess> getProcesses(int limit)
public static List<oshi.software.os.OSProcess> getProcesses(int limit, oshi.software.os.OperatingSystem.ProcessSort processSort)
public static List<oshi.software.os.OSProcess> getProcesses(oshi.software.os.OperatingSystem.ProcessSort processSort)
Copyright © 2020. All rights reserved.