Package org.apache.flink.runtime.io.disk
Class FileChannelManagerImpl
- java.lang.Object
-
- org.apache.flink.runtime.io.disk.FileChannelManagerImpl
-
- All Implemented Interfaces:
AutoCloseable,FileChannelManager
public class FileChannelManagerImpl extends Object implements FileChannelManager
The manager used for creating/deleting file channels based on config temp dirs.
-
-
Constructor Summary
Constructors Constructor Description FileChannelManagerImpl(String[] tempDirs, String prefix)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()Remove all the temp directories.FileIOChannel.IDcreateChannel()Creates an ID identifying an underlying file channel and returns it.FileIOChannel.EnumeratorcreateChannelEnumerator()Creates an enumerator for channels that logically belong together and returns it.File[]getPaths()Gets all the files corresponding to the config temp dirs.
-
-
-
Method Detail
-
createChannel
public FileIOChannel.ID createChannel()
Description copied from interface:FileChannelManagerCreates an ID identifying an underlying file channel and returns it.- Specified by:
createChannelin interfaceFileChannelManager
-
createChannelEnumerator
public FileIOChannel.Enumerator createChannelEnumerator()
Description copied from interface:FileChannelManagerCreates an enumerator for channels that logically belong together and returns it.- Specified by:
createChannelEnumeratorin interfaceFileChannelManager
-
getPaths
public File[] getPaths()
Description copied from interface:FileChannelManagerGets all the files corresponding to the config temp dirs.- Specified by:
getPathsin interfaceFileChannelManager
-
close
public void close() throws ExceptionRemove all the temp directories.- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-
-