BlockFetchingListener is the contract of EventListeners that want to be notified about onBlockFetchSuccess and onBlockFetchFailure.
BlockFetchingListener is used when:
-
ShuffleClient, BlockTransferService, NettyBlockTransferService, and ExternalShuffleClient are requested to fetch a sequence of blocks
-
BlockFetchStarteris requested to createAndStart -
RetryingBlockFetcher and
OneForOneBlockFetcherare created
package org.apache.spark.network.shuffle;
interface BlockFetchingListener extends EventListener {
void onBlockFetchSuccess(String blockId, ManagedBuffer data);
void onBlockFetchFailure(String blockId, Throwable exception);
}| Method | Description |
|---|---|
|
|
|
| BlockFetchingListener | Description |
|---|---|
"Unnamed" in ShuffleBlockFetcherIterator |
|
"Unnamed" in BlockTransferService |