Class DefaultMemoryInfo

  • All Implemented Interfaces:
    MemoryInfo

    public class DefaultMemoryInfo
    extends java.lang.Object
    implements MemoryInfo
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void details​(long totalMem, long availableMem)  
      long getAvailablePhysicalMemory()
      Returns the number of bytes of physical memory that are available for use.
      long getTotalPhysicalMemory()
      Returns the number of bytes of physical memory installed in the machine.
      • Methods inherited from class java.lang.Object

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

      • DefaultMemoryInfo

        public DefaultMemoryInfo()
    • Method Detail

      • details

        public void details​(long totalMem,
                            long availableMem)
      • getTotalPhysicalMemory

        public long getTotalPhysicalMemory()
        Description copied from interface: MemoryInfo
        Returns the number of bytes of physical memory installed in the machine.
        Specified by:
        getTotalPhysicalMemory in interface MemoryInfo
      • getAvailablePhysicalMemory

        public long getAvailablePhysicalMemory()
        Description copied from interface: MemoryInfo
        Returns the number of bytes of physical memory that are available for use. Includes memory that is available without swapping.
        Specified by:
        getAvailablePhysicalMemory in interface MemoryInfo