public class RuntimeMemoryInfoAccessor extends Object implements MemoryInfoAccessor
Runtime
.Constructor and Description |
---|
RuntimeMemoryInfoAccessor() |
Modifier and Type | Method and Description |
---|---|
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.
|
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()
Copyright © 2014 Hazelcast, Inc.. All Rights Reserved.