|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.hazelcast.util.RuntimeMemoryInfoAccessor
public class RuntimeMemoryInfoAccessor
Provides memory information using Runtime
.
Constructor Summary | |
---|---|
RuntimeMemoryInfoAccessor()
|
Method Summary | |
---|---|
long |
getFreeMemory()
Returns the amount of free memory in the JVM in bytes. |
long |
getMaxMemory()
Returns the maximum amount of memory that the JVM will attempt to use in bytes. |
long |
getTotalMemory()
Returns total amount allocated memory in JVM in bytes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RuntimeMemoryInfoAccessor()
Method Detail |
---|
public long getTotalMemory()
MemoryInfoAccessor
getTotalMemory
in interface MemoryInfoAccessor
Runtime.totalMemory()
public long getFreeMemory()
MemoryInfoAccessor
getFreeMemory
in interface MemoryInfoAccessor
Runtime.freeMemory()
public long getMaxMemory()
MemoryInfoAccessor
getMaxMemory
in interface MemoryInfoAccessor
Runtime.maxMemory()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |