Class SystemPages


  • @ThreadSafe
    public final class SystemPages
    extends java.lang.Object
    Utility to query geom part list
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private SystemPages()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Pair<java.lang.Long,​java.lang.Long> queryAvailableTotal()
      Queries the system_pages kstat and returns available and physical memory
      private static Pair<java.lang.Long,​java.lang.Long> queryAvailableTotal2()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SystemPages

        private SystemPages()
    • Method Detail

      • queryAvailableTotal

        public static Pair<java.lang.Long,​java.lang.Long> queryAvailableTotal()
        Queries the system_pages kstat and returns available and physical memory
        Returns:
        A pair with the available and total memory, in pages. Mutiply by page size for bytes.
      • queryAvailableTotal2

        private static Pair<java.lang.Long,​java.lang.Long> queryAvailableTotal2()