Search in sources :

Example 6 with OffHeapMemoryStats

use of org.apache.geode.internal.offheap.OffHeapMemoryStats in project geode by apache.

the class MemberMBeanBridge method getOffHeapObjects.

public int getOffHeapObjects() {
    int objects = 0;
    OffHeapMemoryStats stats = getOffHeapStats();
    if (null != stats) {
        objects = stats.getObjects();
    }
    return objects;
}
Also used : OffHeapMemoryStats(org.apache.geode.internal.offheap.OffHeapMemoryStats)

Example 7 with OffHeapMemoryStats

use of org.apache.geode.internal.offheap.OffHeapMemoryStats in project geode by apache.

the class MemberMBeanBridge method getOffHeapFragmentation.

public int getOffHeapFragmentation() {
    int fragmentation = 0;
    OffHeapMemoryStats stats = getOffHeapStats();
    if (null != stats) {
        fragmentation = stats.getFragmentation();
    }
    return fragmentation;
}
Also used : OffHeapMemoryStats(org.apache.geode.internal.offheap.OffHeapMemoryStats)

Example 8 with OffHeapMemoryStats

use of org.apache.geode.internal.offheap.OffHeapMemoryStats in project geode by apache.

the class MemberMBeanBridge method getOffHeapFreeMemory.

public long getOffHeapFreeMemory() {
    long freeSize = 0;
    OffHeapMemoryStats stats = getOffHeapStats();
    if (null != stats) {
        freeSize = stats.getFreeMemory();
    }
    return freeSize;
}
Also used : OffHeapMemoryStats(org.apache.geode.internal.offheap.OffHeapMemoryStats)

Aggregations

OffHeapMemoryStats (org.apache.geode.internal.offheap.OffHeapMemoryStats)8 MemoryAllocator (org.apache.geode.internal.offheap.MemoryAllocator)2 Statistics (org.apache.geode.Statistics)1 DistributionStats (org.apache.geode.distributed.internal.DistributionStats)1 CachePerfStats (org.apache.geode.internal.cache.CachePerfStats)1 LRUStatistics (org.apache.geode.internal.cache.lru.LRUStatistics)1