public class OshiUtils extends Object
Constructor and Description |
---|
OshiUtils() |
Modifier and Type | Method and Description |
---|---|
static long |
calcFreeSwapMemory(oshi.hardware.GlobalMemory memory) |
static OSStatistics.OSNetInterfaceStats[] |
calcNetStats(List<oshi.hardware.NetworkIF> networkIFs) |
static long |
getActualUsedMemory(oshi.hardware.GlobalMemory memory) |
static oshi.hardware.HardwareAbstractionLayer |
getHardware() |
static List<oshi.hardware.NetworkIF> |
getNetworkIFs() |
static oshi.software.os.OperatingSystem |
getOperatingSystem() |
static OSStatistics.OSNetInterfaceStats |
getStats(oshi.hardware.NetworkIF networkIF) |
static double |
getSystemCpuLoadBetweenTicks(long[] oldTicks,
long[] newTicks) |
static double |
getUsedMemoryPerc(oshi.hardware.GlobalMemory memory) |
public static oshi.software.os.OperatingSystem getOperatingSystem()
public static oshi.hardware.HardwareAbstractionLayer getHardware()
public static List<oshi.hardware.NetworkIF> getNetworkIFs()
public static double getUsedMemoryPerc(oshi.hardware.GlobalMemory memory)
public static long getActualUsedMemory(oshi.hardware.GlobalMemory memory)
public static long calcFreeSwapMemory(oshi.hardware.GlobalMemory memory)
public static OSStatistics.OSNetInterfaceStats[] calcNetStats(List<oshi.hardware.NetworkIF> networkIFs)
public static OSStatistics.OSNetInterfaceStats getStats(oshi.hardware.NetworkIF networkIF)
public static double getSystemCpuLoadBetweenTicks(long[] oldTicks, long[] newTicks)
Copyright © GigaSpaces.