RetryingBlockFetcher¶
RetryingBlockFetcher is...FIXME
RetryingBlockFetcher is <
NettyBlockTransferServiceis requested to storage:NettyBlockTransferService.md#fetchBlocks[fetchBlocks] (when network:TransportConf.md#io.maxRetries[maxIORetries] is greater than0which it is by default)
RetryingBlockFetcher uses a <
[[outstandingBlocksIds]] RetryingBlockFetcher uses outstandingBlocksIds internal registry of outstanding block IDs to fetch that is initially the <
At <
Retrying fetch ([retryCount]/[maxRetries]) for [size] outstanding blocks after [retryWaitTime] ms
On <
[[currentListener]] RetryingBlockFetcher uses a <
== [[creating-instance]] Creating RetryingBlockFetcher Instance
RetryingBlockFetcher takes the following when created:
- [[conf]] network:TransportConf.md[]
- [[fetchStarter]] core:BlockFetchStarter.md[]
- [[blockIds]] Block IDs to fetch
- [[listener]] core:BlockFetchingListener.md[]
== [[start]] Starting RetryingBlockFetcher -- start Method
[source, java]¶
void start()¶
start simply <
start is used when:
NettyBlockTransferServiceis requested to storage:NettyBlockTransferService.md#fetchBlocks[fetchBlocks] (when network:TransportConf.md#io.maxRetries[maxIORetries] is greater than0which it is by default)
== [[initiateRetry]] initiateRetry Internal Method
[source, java]¶
synchronized void initiateRetry()¶
initiateRetry...FIXME
[NOTE]¶
initiateRetry is used when:
- RetryingBlockFetcher is requested to <
>
* RetryingBlockFetchListener is requested to <>¶
== [[fetchAllOutstanding]] fetchAllOutstanding Internal Method
[source, java]¶
void fetchAllOutstanding()¶
fetchAllOutstanding requests <
NOTE: fetchAllOutstanding is used when RetryingBlockFetcher is requested to <
== [[RetryingBlockFetchListener]] RetryingBlockFetchListener
RetryingBlockFetchListener is a core:BlockFetchingListener.md[] that <
=== [[RetryingBlockFetchListener-onBlockFetchSuccess]] onBlockFetchSuccess Method
[source, scala]¶
void onBlockFetchSuccess(String blockId, ManagedBuffer data)¶
NOTE: onBlockFetchSuccess is part of core:BlockFetchingListener.md#onBlockFetchSuccess[BlockFetchingListener Contract].
onBlockFetchSuccess...FIXME
=== [[RetryingBlockFetchListener-onBlockFetchFailure]] onBlockFetchFailure Method
[source, scala]¶
void onBlockFetchFailure(String blockId, Throwable exception)¶
NOTE: onBlockFetchFailure is part of core:BlockFetchingListener.md#onBlockFetchFailure[BlockFetchingListener Contract].
onBlockFetchFailure...FIXME