public class LowLevelLrfuCachePolicy extends Object implements LowLevelCachePolicy
Constructor and Description |
---|
LowLevelLrfuCachePolicy(org.apache.hadoop.conf.Configuration conf) |
LowLevelLrfuCachePolicy(int minBufferSize,
long maxSize,
org.apache.hadoop.conf.Configuration conf) |
Modifier and Type | Method and Description |
---|---|
void |
cache(LlapCacheableBuffer buffer,
LowLevelCache.Priority priority) |
String |
debugDumpForOom() |
String |
debugDumpHeap() |
long |
evictSomeBlocks(long memoryToReserve) |
void |
notifyLock(LlapCacheableBuffer buffer) |
void |
notifyUnlock(LlapCacheableBuffer buffer) |
void |
setEvictionListener(EvictionListener listener) |
void |
setParentDebugDumper(LlapOomDebugDump dumper) |
int |
tryEvictContiguousData(int allocationSize,
int count)
TODO: temporary method until we have a better allocator
|
public LowLevelLrfuCachePolicy(org.apache.hadoop.conf.Configuration conf)
public LowLevelLrfuCachePolicy(int minBufferSize, long maxSize, org.apache.hadoop.conf.Configuration conf)
public void cache(LlapCacheableBuffer buffer, LowLevelCache.Priority priority)
cache
in interface LowLevelCachePolicy
public void notifyLock(LlapCacheableBuffer buffer)
notifyLock
in interface LowLevelCachePolicy
public void notifyUnlock(LlapCacheableBuffer buffer)
notifyUnlock
in interface LowLevelCachePolicy
public void setEvictionListener(EvictionListener listener)
setEvictionListener
in interface LowLevelCachePolicy
public void setParentDebugDumper(LlapOomDebugDump dumper)
setParentDebugDumper
in interface LowLevelCachePolicy
public long evictSomeBlocks(long memoryToReserve)
evictSomeBlocks
in interface LowLevelCachePolicy
public int tryEvictContiguousData(int allocationSize, int count)
LowLevelCachePolicy
tryEvictContiguousData
in interface LowLevelCachePolicy
public String debugDumpHeap()
public String debugDumpForOom()
debugDumpForOom
in interface LlapOomDebugDump
Copyright © 2016 The Apache Software Foundation. All rights reserved.