MemoryInfopublic class DefaultMemoryInfo extends Object implements MemoryInfo
| Constructor | Description |
|---|---|
DefaultMemoryInfo() |
| 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.
|
public void details(long totalMem,
long availableMem)
public long getTotalPhysicalMemory()
MemoryInfogetTotalPhysicalMemory in interface MemoryInfopublic long getAvailablePhysicalMemory()
MemoryInfogetAvailablePhysicalMemory in interface MemoryInfo