public class HDEvictionChecker
extends com.hazelcast.map.impl.eviction.EvictionChecker
MaxSizeConfig.MaxSizePolicy
to start eviction process.
Created one per map-container.| Constructor and Description |
|---|
HDEvictionChecker(com.hazelcast.util.MemoryInfoAccessor memoryInfoAccessor,
com.hazelcast.map.impl.MapServiceContext mapServiceContext,
HotRestartEvictionHelper hotRestartEvictionHelper) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
checkEvictable(com.hazelcast.map.impl.recordstore.RecordStore recordStore) |
protected boolean |
checkHotRestartSpecificEviction(com.hazelcast.config.MapConfig mapConfig)
When Hot Restart is enabled we want at least `hotRestartMinFreeNativeMemoryPercentage` free HD space.
|
protected boolean |
checkMaxUsedNativeMemoryPercentage(int maxUsedPercentage,
HiDensityStorageInfo storageInfo) |
protected boolean |
checkMaxUsedNativeMemorySize(int maxUsedMB,
HiDensityStorageInfo storageInfo) |
protected boolean |
checkMinFreeNativeMemoryPercentage(int minFreePercentage) |
protected boolean |
checkMinFreeNativeMemorySize(int minFreeMB) |
checkFreeHeapPercentageEviction, checkFreeHeapSizeEviction, checkHeapPercentageEviction, checkHeapSizeEviction, checkPerNodeEviction, checkPerPartitionEviction, findPartitionIds, getAvailableMemory, getFreeMemory, getMaxMemory, getRecordStoreHeapCost, getRecordStoreSize, getTotalMemory, getUsedHeapInBytes, isOwnerOrBackup, translatePerNodeSizeToPartitionSizepublic HDEvictionChecker(com.hazelcast.util.MemoryInfoAccessor memoryInfoAccessor,
com.hazelcast.map.impl.MapServiceContext mapServiceContext,
HotRestartEvictionHelper hotRestartEvictionHelper)
public boolean checkEvictable(com.hazelcast.map.impl.recordstore.RecordStore recordStore)
checkEvictable in class com.hazelcast.map.impl.eviction.EvictionCheckerprotected boolean checkHotRestartSpecificEviction(com.hazelcast.config.MapConfig mapConfig)
protected boolean checkMaxUsedNativeMemorySize(int maxUsedMB,
HiDensityStorageInfo storageInfo)
protected boolean checkMaxUsedNativeMemoryPercentage(int maxUsedPercentage,
HiDensityStorageInfo storageInfo)
protected boolean checkMinFreeNativeMemoryPercentage(int minFreePercentage)
protected boolean checkMinFreeNativeMemorySize(int minFreeMB)
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.