public class DefaultMemoryInfo extends java.lang.Object implements MemoryInfo
Constructor and Description |
---|
DefaultMemoryInfo() |
Modifier and Type | Method and 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.
|
public void details(long totalMem, long availableMem)
public long getTotalPhysicalMemory()
MemoryInfo
getTotalPhysicalMemory
in interface MemoryInfo
public long getAvailablePhysicalMemory()
MemoryInfo
getAvailablePhysicalMemory
in interface MemoryInfo