org.elasticsearch.indices.memory
Class IndicesMemoryCleaner
java.lang.Object
org.elasticsearch.common.component.AbstractComponent
org.elasticsearch.indices.memory.IndicesMemoryCleaner
public class IndicesMemoryCleaner
- extends AbstractComponent
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IndicesMemoryCleaner
@Inject
public IndicesMemoryCleaner(Settings settings,
IndicesService indicesService)
cleanTranslog
public IndicesMemoryCleaner.TranslogCleanResult cleanTranslog(int translogNumberOfOperationsThreshold)
cacheClearUnreferenced
public void cacheClearUnreferenced()
cacheClear
public void cacheClear()
fullMemoryClean
public void fullMemoryClean()
forceCleanMemory
public void forceCleanMemory(java.util.Set<ShardId> shardsToIgnore)
cleanMemory
public IndicesMemoryCleaner.MemoryCleanResult cleanMemory(long memoryToClean,
ByteSizeValue minimumFlushableSizeToClean)
- Checks if memory needs to be cleaned and cleans it. Returns the amount of memory cleaned.