public abstract class EvictLRUBase extends Object implements EvictStrategy
| Modifier | Constructor and Description |
|---|---|
protected |
EvictLRUBase(boolean lastTier) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
blockEvictable(long blockId,
Set<Integer> pinList)
Check if current block can be evicted
|
protected Pair<Long,Long> |
getLRUBlock(StorageDir curDir,
Collection<Long> toEvictBlockIds,
Set<Integer> pinList)
Get the oldest access information of certain StorageDir
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetDirCandidateprotected boolean blockEvictable(long blockId,
Set<Integer> pinList)
blockId - the Id of the blockpinList - the list of the pinned filesprotected Pair<Long,Long> getLRUBlock(StorageDir curDir, Collection<Long> toEvictBlockIds, Set<Integer> pinList)
curDir - current StorageDirtoEvictBlockIds - the Ids of blocks that have been selected to be evictedpinList - list of pinned filesCopyright © 2015. All Rights Reserved.