public class FileCacheGuava extends java.lang.Object implements FileCacheIF
| Constructor and Description |
|---|
FileCacheGuava(java.lang.String name,
int maxSize) |
| Modifier and Type | Method and Description |
|---|---|
FileCacheable |
acquire(FileFactory factory,
DatasetUrl durl) |
FileCacheable |
acquire(FileFactory factory,
java.lang.Object hashKey,
DatasetUrl durl,
int buffer_size,
CancelTask cancelTask,
java.lang.Object spiObject) |
void |
clearCache(boolean force) |
void |
disable() |
void |
eject(java.lang.Object hashKey) |
void |
enable() |
boolean |
release(FileCacheable ncfile) |
void |
resetTracking() |
java.util.List<java.lang.String> |
showCache() |
void |
showCache(java.util.Formatter f) |
void |
showStats(java.util.Formatter f) |
void |
showTracking(java.util.Formatter format) |
public void enable()
enable in interface FileCacheIFpublic void disable()
disable in interface FileCacheIFpublic FileCacheable acquire(FileFactory factory, DatasetUrl durl) throws java.io.IOException
acquire in interface FileCacheIFjava.io.IOExceptionpublic FileCacheable acquire(FileFactory factory, java.lang.Object hashKey, DatasetUrl durl, int buffer_size, CancelTask cancelTask, java.lang.Object spiObject) throws java.io.IOException
acquire in interface FileCacheIFjava.io.IOExceptionpublic boolean release(FileCacheable ncfile) throws java.io.IOException
release in interface FileCacheIFjava.io.IOExceptionpublic void eject(java.lang.Object hashKey)
eject in interface FileCacheIFpublic void clearCache(boolean force)
clearCache in interface FileCacheIFpublic void resetTracking()
resetTracking in interface FileCacheIFpublic void showTracking(java.util.Formatter format)
showTracking in interface FileCacheIFpublic void showCache(java.util.Formatter f)
showCache in interface FileCacheIFpublic void showStats(java.util.Formatter f)
showStats in interface FileCacheIFpublic java.util.List<java.lang.String> showCache()
showCache in interface FileCacheIF