Class DefaultMemoryInfo
java.lang.Object
net.rubygrapefruit.platform.internal.DefaultMemoryInfo
- All Implemented Interfaces:
MemoryInfo
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
details
(long totalMem, long availableMem) long
Returns the number of bytes of physical memory that are available for use.long
Returns the number of bytes of physical memory installed in the machine.
-
Constructor Details
-
DefaultMemoryInfo
public DefaultMemoryInfo()
-
-
Method Details
-
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 interfaceMemoryInfo
-
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 interfaceMemoryInfo
-