@NotThreadSafe @Deprecated public class LRUEvictor extends alluxio.worker.block.evictor.AbstractEvictor
Evictor.Factory, Evictor.Mode
Constructor and Description |
---|
LRUEvictor(alluxio.worker.block.BlockMetadataEvictorView view,
Allocator allocator)
Deprecated.
Creates a new instance of
LRUEvictor . |
Modifier and Type | Method and Description |
---|---|
void |
onAccessBlock(long blockId)
Deprecated.
Actions when accessing a block.
|
void |
onBlockLost(long blockId)
Deprecated.
Actions when a block is lost.
|
void |
onCommitBlockToLocal(long blockId,
alluxio.worker.block.BlockStoreLocation location)
Deprecated.
Actions when committing a temporary block to a
BlockStoreLocation at local block store. |
void |
onRemoveBlockByClient(long blockId)
Deprecated.
Actions when removing an existing block.
|
void |
onRemoveBlockByWorker(long blockId)
Deprecated.
Actions when removing an existing block by worker.
|
freeSpaceWithView, freeSpaceWithView
public LRUEvictor(alluxio.worker.block.BlockMetadataEvictorView view, Allocator allocator)
LRUEvictor
.view
- a view of block metadata informationallocator
- an allocation policypublic void onAccessBlock(long blockId)
alluxio.worker.block.BlockStoreEventListener
onAccessBlock
in interface alluxio.worker.block.BlockStoreEventListener
onAccessBlock
in class alluxio.worker.block.AbstractBlockStoreEventListener
blockId
- the id of the block to accesspublic void onCommitBlockToLocal(long blockId, alluxio.worker.block.BlockStoreLocation location)
alluxio.worker.block.BlockStoreEventListener
BlockStoreLocation
at local block store.onCommitBlockToLocal
in interface alluxio.worker.block.BlockStoreEventListener
onCommitBlockToLocal
in class alluxio.worker.block.AbstractBlockStoreEventListener
blockId
- the id of the block to commitlocation
- the location of the block to be committedpublic void onRemoveBlockByClient(long blockId)
alluxio.worker.block.BlockStoreEventListener
onRemoveBlockByClient
in interface alluxio.worker.block.BlockStoreEventListener
onRemoveBlockByClient
in class alluxio.worker.block.AbstractBlockStoreEventListener
blockId
- the id of the block to be removedpublic void onRemoveBlockByWorker(long blockId)
alluxio.worker.block.BlockStoreEventListener
onRemoveBlockByWorker
in interface alluxio.worker.block.BlockStoreEventListener
onRemoveBlockByWorker
in class alluxio.worker.block.AbstractBlockStoreEventListener
blockId
- the id of the block to be removedpublic void onBlockLost(long blockId)
alluxio.worker.block.BlockStoreEventListener
onBlockLost
in interface alluxio.worker.block.BlockStoreEventListener
onBlockLost
in class alluxio.worker.block.AbstractBlockStoreEventListener
blockId
- the id of the lost blockCopyright © 2023. All Rights Reserved.