Package org.apache.flink.runtime.io.disk
Class FileChannelManagerImpl
java.lang.Object
org.apache.flink.runtime.io.disk.FileChannelManagerImpl
- All Implemented Interfaces:
AutoCloseable,FileChannelManager
The manager used for creating/deleting file channels based on config temp dirs.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Remove all the temp directories.Creates an ID identifying an underlying file channel and returns it.Creates an enumerator for channels that logically belong together and returns it.File[]getPaths()Gets all the files corresponding to the config temp dirs.
-
Constructor Details
-
FileChannelManagerImpl
-
-
Method Details
-
createChannel
Description copied from interface:FileChannelManagerCreates an ID identifying an underlying file channel and returns it.- Specified by:
createChannelin interfaceFileChannelManager
-
createChannelEnumerator
Description copied from interface:FileChannelManagerCreates an enumerator for channels that logically belong together and returns it.- Specified by:
createChannelEnumeratorin interfaceFileChannelManager
-
getPaths
Description copied from interface:FileChannelManagerGets all the files corresponding to the config temp dirs.- Specified by:
getPathsin interfaceFileChannelManager
-
close
Remove all the temp directories.- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-