Package com.gigaspaces.internal.oshi
Class OshiUtils
java.lang.Object
com.gigaspaces.internal.oshi.OshiUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic longcalcFreeSwapMemory(oshi.hardware.GlobalMemory memory) static OSStatistics.OSNetInterfaceStats[]calcNetStats(List<oshi.hardware.NetworkIF> networkIFs) static longgetActualUsedMemory(oshi.hardware.GlobalMemory memory) static oshi.hardware.HardwareAbstractionLayerstatic List<oshi.hardware.NetworkIF>static oshi.software.os.OperatingSystemgetStats(oshi.hardware.NetworkIF networkIF) static doublegetSystemCpuLoadBetweenTicks(long[] oldTicks, long[] newTicks) static doublegetUsedMemoryPerc(oshi.hardware.GlobalMemory memory)
-
Constructor Details
-
OshiUtils
public OshiUtils()
-
-
Method Details
-
getOperatingSystem
public static oshi.software.os.OperatingSystem getOperatingSystem() -
getHardware
public static oshi.hardware.HardwareAbstractionLayer getHardware() -
getNetworkIFs
-
getUsedMemoryPerc
public static double getUsedMemoryPerc(oshi.hardware.GlobalMemory memory) -
getActualUsedMemory
public static long getActualUsedMemory(oshi.hardware.GlobalMemory memory) -
calcFreeSwapMemory
public static long calcFreeSwapMemory(oshi.hardware.GlobalMemory memory) -
calcNetStats
public static OSStatistics.OSNetInterfaceStats[] calcNetStats(List<oshi.hardware.NetworkIF> networkIFs) -
getStats
-
getSystemCpuLoadBetweenTicks
public static double getSystemCpuLoadBetweenTicks(long[] oldTicks, long[] newTicks)
-