Class DefaultMemoryInfo
- java.lang.Object
-
- net.rubygrapefruit.platform.internal.DefaultMemoryInfo
-
- All Implemented Interfaces:
MemoryInfo
public class DefaultMemoryInfo extends java.lang.Object implements MemoryInfo
-
-
Constructor Summary
Constructors Constructor Description DefaultMemoryInfo()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddetails(long totalMem, long availableMem)longgetAvailablePhysicalMemory()Returns the number of bytes of physical memory that are available for use.longgetTotalPhysicalMemory()Returns the number of bytes of physical memory installed in the machine.
-
-
-
Method Detail
-
details
public void details(long totalMem, long availableMem)
-
getTotalPhysicalMemory
public long getTotalPhysicalMemory()
Description copied from interface:MemoryInfoReturns the number of bytes of physical memory installed in the machine.- Specified by:
getTotalPhysicalMemoryin interfaceMemoryInfo
-
getAvailablePhysicalMemory
public long getAvailablePhysicalMemory()
Description copied from interface:MemoryInfoReturns the number of bytes of physical memory that are available for use. Includes memory that is available without swapping.- Specified by:
getAvailablePhysicalMemoryin interfaceMemoryInfo
-
-