public interface FilesCache
Modifier and Type | Method and Description |
---|---|
void |
clear(FileSystem filesystem)
purge the entries corresponding to the filesystem.
|
void |
close()
purge the whole cache.
|
FileObject |
getFile(FileSystem filesystem,
FileName name)
retrieve a file from the cache by its name.
|
void |
putFile(FileObject file)
add a fileobject to the cache.
|
boolean |
putFileIfAbsent(FileObject file)
add a fileobject to the cache if it isn't already present.
|
void |
removeFile(FileSystem filesystem,
FileName name)
removes a file from cache.
|
void putFile(FileObject file)
file
- the fileboolean putFileIfAbsent(FileObject file)
file
- the fileFileObject getFile(FileSystem filesystem, FileName name)
filesystem
- The FileSystem.name
- the namevoid clear(FileSystem filesystem)
filesystem
- The FileSystem.void close()
void removeFile(FileSystem filesystem, FileName name)
filesystem
- filesystemname
- filenameCopyright © 2002–2015 The Apache Software Foundation. All rights reserved.