DownloadFileManager¶
DownloadFileManager
is an abstraction of file managers that can createTempFile and registerTempFileToClean.
Contract¶
createTempFile¶
DownloadFile createTempFile(
TransportConf transportConf)
Used when:
DownloadCallback
(of OneForOneBlockFetcher) is created
registerTempFileToClean¶
boolean registerTempFileToClean(
DownloadFile file)
Used when:
DownloadCallback
(of OneForOneBlockFetcher) is requested toonComplete
Implementations¶
- RemoteBlockDownloadFileManager
- ShuffleBlockFetcherIterator