Class OshiUtils

java.lang.Object
com.gigaspaces.internal.oshi.OshiUtils

public class OshiUtils extends Object
  • Constructor Details

    • OshiUtils

      public OshiUtils()
  • Method Details

    • getOperatingSystem

      public static oshi.software.os.OperatingSystem getOperatingSystem()
    • getHardware

      public static oshi.hardware.HardwareAbstractionLayer getHardware()
    • getNetworkIFs

      public static List<oshi.hardware.NetworkIF> 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

      public static OSStatistics.OSNetInterfaceStats getStats(oshi.hardware.NetworkIF networkIF)
    • getSystemCpuLoadBetweenTicks

      public static double getSystemCpuLoadBetweenTicks(long[] oldTicks, long[] newTicks)