|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MemoryInfoAccessor
Used for providing runtime memory information of Java virtual machine.
Runtime,
ManagementFactory.getMemoryMXBean()| Method Summary | |
|---|---|
long |
getFreeMemory()
Returns the amount of free memory in the Java virtual machine in bytes. |
long |
getMaxMemory()
Returns the maximum amount of memory that the Java virtual machine will attempt to use in bytes. |
long |
getTotalMemory()
Returns total amount allocated memory in the Java virtual machine in bytes. |
| Method Detail |
|---|
long getTotalMemory()
Runtime.totalMemory()long getFreeMemory()
Runtime.freeMemory()long getMaxMemory()
Runtime.maxMemory()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||