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 void
close()
Remove all the temp directories.FileIOChannel.ID
createChannel()
Creates an ID identifying an underlying file channel and returns it.FileIOChannel.Enumerator
createChannelEnumerator()
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:FileChannelManager
Creates an ID identifying an underlying file channel and returns it.- Specified by:
createChannel
in interfaceFileChannelManager
-
createChannelEnumerator
public FileIOChannel.Enumerator createChannelEnumerator()
Description copied from interface:FileChannelManager
Creates an enumerator for channels that logically belong together and returns it.- Specified by:
createChannelEnumerator
in interfaceFileChannelManager
-
getPaths
public File[] getPaths()
Description copied from interface:FileChannelManager
Gets all the files corresponding to the config temp dirs.- Specified by:
getPaths
in interfaceFileChannelManager
-
close
public void close() throws Exception
Remove all the temp directories.- Specified by:
close
in interfaceAutoCloseable
- Throws:
Exception
-
-