MemoryInfo
public 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()
MemoryInfo
getTotalPhysicalMemory
in interface MemoryInfo
public long getAvailablePhysicalMemory()
MemoryInfo
getAvailablePhysicalMemory
in interface MemoryInfo