public class FileChannelManagerImpl extends Object implements FileChannelManager
| Constructor and Description |
|---|
FileChannelManagerImpl(String[] tempDirs,
String prefix) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Remove all the temp directories.
|
FileIOChannel.ID |
createChannel()
Creates an ID identifying an underlying file channel and returns it.
|
FileIOChannel.ID |
createChannel(String prefix)
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.
|
public FileIOChannel.ID createChannel()
FileChannelManagercreateChannel in interface FileChannelManagerpublic FileIOChannel.ID createChannel(String prefix)
FileChannelManagercreateChannel in interface FileChannelManagerpublic FileIOChannel.Enumerator createChannelEnumerator()
FileChannelManagercreateChannelEnumerator in interface FileChannelManagerpublic File[] getPaths()
FileChannelManagergetPaths in interface FileChannelManagerpublic void close()
throws Exception
close in interface AutoCloseableExceptionCopyright © 2023–2024 The Apache Software Foundation. All rights reserved.