@NotThreadSafe public abstract class AbstractBlockStoreEventListener extends Object implements BlockStoreEventListener
BlockStoreEventListener
interface with empty methods bodies.Constructor and Description |
---|
AbstractBlockStoreEventListener() |
Modifier and Type | Method and Description |
---|---|
void |
onAbortBlock(long blockId)
Actions when aborting a temporary block.
|
void |
onAccessBlock(long blockId)
Actions when accessing a block.
|
void |
onAccessBlock(long blockId,
BlockStoreLocation location)
Actions when accessing a block.
|
void |
onBlockLost(long blockId)
Actions when a block is lost.
|
void |
onCommitBlockToLocal(long blockId,
BlockStoreLocation location)
Actions when committing a temporary block to a
BlockStoreLocation at local block store. |
void |
onCommitBlockToMaster(long blockId,
BlockStoreLocation location)
Actions when a temporary block has been committed to the alluxio master.
|
void |
onMoveBlockByClient(long blockId,
BlockStoreLocation oldLocation,
BlockStoreLocation newLocation)
Actions when moving a block by a client from a
BlockStoreLocation to another. |
void |
onMoveBlockByWorker(long blockId,
BlockStoreLocation oldLocation,
BlockStoreLocation newLocation)
Actions when moving a block by a worker from a
BlockStoreLocation to another. |
void |
onRemoveBlock(long blockId,
BlockStoreLocation location)
Actions when removing an existing block.
|
void |
onRemoveBlockByClient(long blockId)
Actions when removing an existing block.
|
void |
onRemoveBlockByWorker(long blockId)
Actions when removing an existing block by worker.
|
void |
onStorageLost(BlockStoreLocation dirLocation)
Actions when a storage dir is lost.
|
void |
onStorageLost(String tierAlias,
String dirPath)
Actions when a storage dir is lost.
|
public void onAccessBlock(long blockId)
BlockStoreEventListener
onAccessBlock
in interface BlockStoreEventListener
blockId
- the id of the block to accesspublic void onAccessBlock(long blockId, BlockStoreLocation location)
BlockStoreEventListener
onAccessBlock
in interface BlockStoreEventListener
blockId
- the id of the block to accesslocation
- the location of the blockpublic void onAbortBlock(long blockId)
BlockStoreEventListener
onAbortBlock
in interface BlockStoreEventListener
blockId
- the id of the block where the mutation to abortpublic void onCommitBlockToLocal(long blockId, BlockStoreLocation location)
BlockStoreEventListener
BlockStoreLocation
at local block store.onCommitBlockToLocal
in interface BlockStoreEventListener
blockId
- the id of the block to commitlocation
- the location of the block to be committedpublic void onCommitBlockToMaster(long blockId, BlockStoreLocation location)
BlockStoreEventListener
onCommitBlockToMaster
in interface BlockStoreEventListener
blockId
- the id of the block to commitlocation
- the location of the block to be committedpublic void onMoveBlockByClient(long blockId, BlockStoreLocation oldLocation, BlockStoreLocation newLocation)
BlockStoreEventListener
BlockStoreLocation
to another.onMoveBlockByClient
in interface BlockStoreEventListener
blockId
- the id of the block to be movedoldLocation
- the source location of the block to be movednewLocation
- the destination location where the block is to be moved topublic void onMoveBlockByWorker(long blockId, BlockStoreLocation oldLocation, BlockStoreLocation newLocation)
BlockStoreEventListener
BlockStoreLocation
to another.onMoveBlockByWorker
in interface BlockStoreEventListener
blockId
- the id of the block to be movedoldLocation
- the source location of the block to be movednewLocation
- the destination location where the block is to be moved topublic void onRemoveBlockByClient(long blockId)
BlockStoreEventListener
onRemoveBlockByClient
in interface BlockStoreEventListener
blockId
- the id of the block to be removedpublic void onRemoveBlockByWorker(long blockId)
BlockStoreEventListener
onRemoveBlockByWorker
in interface BlockStoreEventListener
blockId
- the id of the block to be removedpublic void onRemoveBlock(long blockId, BlockStoreLocation location)
BlockStoreEventListener
onRemoveBlock
in interface BlockStoreEventListener
blockId
- the id of the block to be removedlocation
- the location of the block to be removedpublic void onBlockLost(long blockId)
BlockStoreEventListener
onBlockLost
in interface BlockStoreEventListener
blockId
- the id of the lost blockpublic void onStorageLost(String tierAlias, String dirPath)
BlockStoreEventListener
onStorageLost
in interface BlockStoreEventListener
tierAlias
- the tier alias of this storagedirPath
- the directory path of this storagepublic void onStorageLost(BlockStoreLocation dirLocation)
BlockStoreEventListener
onStorageLost
in interface BlockStoreEventListener
dirLocation
- the location of this storageCopyright © 2023. All Rights Reserved.