Class FreeBsdGlobalMemory

    • Field Detail

      • available

        private final java.util.function.Supplier<java.lang.Long> available
      • total

        private final java.util.function.Supplier<java.lang.Long> total
      • pageSize

        private final java.util.function.Supplier<java.lang.Long> pageSize
      • vm

        private final java.util.function.Supplier<VirtualMemory> vm
    • Constructor Detail

      • FreeBsdGlobalMemory

        FreeBsdGlobalMemory()
    • Method Detail

      • getAvailable

        public long getAvailable()
        Description copied from interface: GlobalMemory
        The amount of physical memory currently available, in bytes.
        Returns:
        Available number of bytes.
      • getTotal

        public long getTotal()
        Description copied from interface: GlobalMemory
        The amount of actual physical memory, in bytes.
        Returns:
        Total number of bytes.
      • getPageSize

        public long getPageSize()
        Description copied from interface: GlobalMemory
        The number of bytes in a memory page
        Returns:
        Page size in bytes.
      • getVirtualMemory

        public VirtualMemory getVirtualMemory()
        Description copied from interface: GlobalMemory
        Virtual memory, such as a swap file.
        Returns:
        A VirtualMemory object.
      • queryVmStats

        private long queryVmStats()
      • queryPhysMem

        private static long queryPhysMem()
      • queryPageSize

        private static long queryPageSize()
      • createVirtualMemory

        private VirtualMemory createVirtualMemory()