Class SystemUtils

java.lang.Object
gov.nasa.pds.web.ui.utils.SystemUtils

public class SystemUtils
extends Object
  • Constructor Details

    • SystemUtils

      public SystemUtils()
  • Method Details

    • bytesToMeg

      public static long bytesToMeg​(long bytes)
    • megsToBytes

      public static long megsToBytes​(long megs)
    • getTotalMemory

      public static long getTotalMemory()
    • getAvailableMemory

      public static long getAvailableMemory()
    • getPercentMemoryFree

      public static double getPercentMemoryFree()
    • checkAvailableMemory

      public static void checkAvailableMemory() throws RuntimeException
      Throws:
      RuntimeException
    • checkAvailableMemory

      public static void checkAvailableMemory​(long megsFree) throws RuntimeException
      Throws:
      RuntimeException
    • checkAvailableMemory

      public static void checkAvailableMemory​(double percentFree) throws RuntimeException
      Throws:
      RuntimeException