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()
MemoryInfogetTotalPhysicalMemory in interface MemoryInfopublic long getAvailablePhysicalMemory()
MemoryInfogetAvailablePhysicalMemory in interface MemoryInfo