public class FileCacheGuava extends Object implements FileCacheIF
| Constructor and Description |
|---|
FileCacheGuava(String name,
int maxSize) |
| Modifier and Type | Method and Description |
|---|---|
FileCacheable |
acquire(FileFactory factory,
Object hashKey,
String location,
int buffer_size,
CancelTask cancelTask,
Object spiObject) |
FileCacheable |
acquire(FileFactory factory,
String location) |
void |
clearCache(boolean force) |
void |
disable() |
void |
eject(Object hashKey) |
void |
enable() |
boolean |
release(FileCacheable ncfile) |
void |
resetTracking() |
List<String> |
showCache() |
void |
showCache(Formatter f) |
void |
showStats(Formatter f) |
void |
showTracking(Formatter format) |
public FileCacheGuava(String name, int maxSize)
public void enable()
enable in interface FileCacheIFpublic void disable()
disable in interface FileCacheIFpublic FileCacheable acquire(FileFactory factory, String location) throws IOException
acquire in interface FileCacheIFIOExceptionpublic FileCacheable acquire(FileFactory factory, Object hashKey, String location, int buffer_size, CancelTask cancelTask, Object spiObject) throws IOException
acquire in interface FileCacheIFIOExceptionpublic boolean release(FileCacheable ncfile) throws IOException
release in interface FileCacheIFIOExceptionpublic void eject(Object hashKey)
eject in interface FileCacheIFpublic void clearCache(boolean force)
clearCache in interface FileCacheIFpublic void resetTracking()
resetTracking in interface FileCacheIFpublic void showTracking(Formatter format)
showTracking in interface FileCacheIFpublic void showCache(Formatter f)
showCache in interface FileCacheIFpublic void showStats(Formatter f)
showStats in interface FileCacheIFpublic List<String> showCache()
showCache in interface FileCacheIFCopyright © 1999-2015 UCAR/Unidata. All Rights Reserved.