public interface FilesCache
Modifier and Type | Method and Description |
---|---|
void |
clear(FileSystem fileSystem)
Purges the entries corresponding to the FileSystem.
|
void |
close()
Purges the whole cache.
|
FileObject |
getFile(FileSystem fileSystem,
FileName fileName)
Retrieves a FileObject from the cache by name.
|
void |
putFile(FileObject file)
Adds a FileObject to the cache.
|
boolean |
putFileIfAbsent(FileObject file)
Adds a FileObject to the cache if it isn't already present.
|
void |
removeFile(FileSystem fileSystem,
FileName name)
Removes a file from cache.
|
void clear(FileSystem fileSystem)
fileSystem
- The FileSystem.void close()
FileObject getFile(FileSystem fileSystem, FileName fileName)
fileSystem
- The FileSystem.fileName
- the namevoid putFile(FileObject file)
file
- the fileboolean putFileIfAbsent(FileObject file)
file
- the filevoid removeFile(FileSystem fileSystem, FileName name)
fileSystem
- file systemname
- file nameCopyright © 2002–2020 The Apache Software Foundation. All rights reserved.