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.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()
FileChannelManager
createChannel
in interface FileChannelManager
public FileIOChannel.Enumerator createChannelEnumerator()
FileChannelManager
createChannelEnumerator
in interface FileChannelManager
public File[] getPaths()
FileChannelManager
getPaths
in interface FileChannelManager
public void close() throws Exception
close
in interface AutoCloseable
Exception
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.