Search in sources :

Example 1 with LocalMapStatsImpl

use of com.hazelcast.monitor.impl.LocalMapStatsImpl in project hazelcast by hazelcast.

the class MapIsEmptyOperation method run.

public void run() {
    empty = recordStore.isEmpty();
    if (mapContainer.getMapConfig().isStatisticsEnabled()) {
        LocalMapStatsImpl localMapStatsImpl = mapServiceContext.getLocalMapStatsProvider().getLocalMapStatsImpl(name);
        localMapStatsImpl.incrementOtherOperations();
    }
}
Also used : LocalMapStatsImpl(com.hazelcast.monitor.impl.LocalMapStatsImpl)

Example 2 with LocalMapStatsImpl

use of com.hazelcast.monitor.impl.LocalMapStatsImpl in project hazelcast by hazelcast.

the class MapSizeOperation method run.

@Override
public void run() {
    recordStore.checkIfLoaded();
    size = recordStore.size();
    if (mapContainer.getMapConfig().isStatisticsEnabled()) {
        LocalMapStatsProvider localMapStatsProvider = mapServiceContext.getLocalMapStatsProvider();
        LocalMapStatsImpl localMapStatsImpl = localMapStatsProvider.getLocalMapStatsImpl(name);
        localMapStatsImpl.incrementOtherOperations();
    }
}
Also used : LocalMapStatsImpl(com.hazelcast.monitor.impl.LocalMapStatsImpl) LocalMapStatsProvider(com.hazelcast.map.impl.LocalMapStatsProvider)

Example 3 with LocalMapStatsImpl

use of com.hazelcast.monitor.impl.LocalMapStatsImpl in project hazelcast by hazelcast.

the class QueryRunner method updateStatistics.

private void updateStatistics(MapContainer mapContainer) {
    if (mapContainer.getMapConfig().isStatisticsEnabled()) {
        LocalMapStatsImpl localStats = localMapStatsProvider.getLocalMapStatsImpl(mapContainer.getName());
        localStats.incrementOtherOperations();
    }
}
Also used : LocalMapStatsImpl(com.hazelcast.monitor.impl.LocalMapStatsImpl)

Example 4 with LocalMapStatsImpl

use of com.hazelcast.monitor.impl.LocalMapStatsImpl in project hazelcast by hazelcast.

the class NearCachedClientMapProxy method getLocalMapStats.

@Override
public LocalMapStats getLocalMapStats() {
    LocalMapStats localMapStats = super.getLocalMapStats();
    NearCacheStats nearCacheStats = nearCache.getNearCacheStats();
    ((LocalMapStatsImpl) localMapStats).setNearCacheStats(nearCacheStats);
    return localMapStats;
}
Also used : LocalMapStats(com.hazelcast.monitor.LocalMapStats) LocalMapStatsImpl(com.hazelcast.monitor.impl.LocalMapStatsImpl) NearCacheStats(com.hazelcast.monitor.NearCacheStats)

Aggregations

LocalMapStatsImpl (com.hazelcast.monitor.impl.LocalMapStatsImpl)4 LocalMapStatsProvider (com.hazelcast.map.impl.LocalMapStatsProvider)1 LocalMapStats (com.hazelcast.monitor.LocalMapStats)1 NearCacheStats (com.hazelcast.monitor.NearCacheStats)1