@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 sessionId,
long blockId)
Actions when aborting a temporary block.
|
void |
onAccessBlock(long sessionId,
long blockId)
Actions when accessing a block.
|
void |
onAccessBlock(long sessionId,
long blockId,
BlockStoreLocation location)
Actions when accessing a block.
|
void |
onBlockLost(long blockId)
Actions when a block is lost.
|
void |
onCommitBlock(long sessionId,
long blockId,
BlockStoreLocation location)
Actions when committing a temporary block to a
BlockStoreLocation . |
void |
onMoveBlockByClient(long sessionId,
long blockId,
BlockStoreLocation oldLocation,
BlockStoreLocation newLocation)
Actions when moving a block by a client from a
BlockStoreLocation to another. |
void |
onMoveBlockByWorker(long sessionId,
long blockId,
BlockStoreLocation oldLocation,
BlockStoreLocation newLocation)
Actions when moving a block by a worker from a
BlockStoreLocation to another. |
void |
onRemoveBlock(long sessionId,
long blockId,
BlockStoreLocation location)
Actions when removing an existing block.
|
void |
onRemoveBlockByClient(long sessionId,
long blockId)
Actions when removing an existing block.
|
void |
onRemoveBlockByWorker(long sessionId,
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 sessionId, long blockId)
BlockStoreEventListener
onAccessBlock
in interface BlockStoreEventListener
sessionId
- the id of the session to access this blockblockId
- the id of the block to accesspublic void onAccessBlock(long sessionId, long blockId, BlockStoreLocation location)
BlockStoreEventListener
onAccessBlock
in interface BlockStoreEventListener
sessionId
- the id of the session to access this blockblockId
- the id of the block to accesslocation
- the location of the blockpublic void onAbortBlock(long sessionId, long blockId)
BlockStoreEventListener
onAbortBlock
in interface BlockStoreEventListener
sessionId
- the id of the session to abort on this blockblockId
- the id of the block where the mutation to abortpublic void onCommitBlock(long sessionId, long blockId, BlockStoreLocation location)
BlockStoreEventListener
BlockStoreLocation
.onCommitBlock
in interface BlockStoreEventListener
sessionId
- the id of the session to commit to this blockblockId
- the id of the block to commitlocation
- the location of the block to be committedpublic void onMoveBlockByClient(long sessionId, long blockId, BlockStoreLocation oldLocation, BlockStoreLocation newLocation)
BlockStoreEventListener
BlockStoreLocation
to another.onMoveBlockByClient
in interface BlockStoreEventListener
sessionId
- the id of the session to move this blockblockId
- 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 sessionId, long blockId, BlockStoreLocation oldLocation, BlockStoreLocation newLocation)
BlockStoreEventListener
BlockStoreLocation
to another.onMoveBlockByWorker
in interface BlockStoreEventListener
sessionId
- the id of the session to move this blockblockId
- 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 sessionId, long blockId)
BlockStoreEventListener
onRemoveBlockByClient
in interface BlockStoreEventListener
sessionId
- the id of the session to remove this blockblockId
- the id of the block to be removedpublic void onRemoveBlockByWorker(long sessionId, long blockId)
BlockStoreEventListener
onRemoveBlockByWorker
in interface BlockStoreEventListener
sessionId
- the id of the session to remove this blockblockId
- the id of the block to be removedpublic void onRemoveBlock(long sessionId, long blockId, BlockStoreLocation location)
BlockStoreEventListener
onRemoveBlock
in interface BlockStoreEventListener
sessionId
- the id of the session to remove this blockblockId
- 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.