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 FileCacheIF
public void disable()
disable
in interface FileCacheIF
public FileCacheable acquire(FileFactory factory, DatasetUrl durl)
acquire
in interface FileCacheIF
public FileCacheable acquire(FileFactory factory, java.lang.Object hashKey, DatasetUrl durl, int buffer_size, CancelTask cancelTask, java.lang.Object spiObject)
acquire
in interface FileCacheIF
public boolean release(FileCacheable ncfile)
release
in interface FileCacheIF
public void eject(java.lang.Object hashKey)
eject
in interface FileCacheIF
public void clearCache(boolean force)
clearCache
in interface FileCacheIF
public void resetTracking()
resetTracking
in interface FileCacheIF
public void showTracking(java.util.Formatter format)
showTracking
in interface FileCacheIF
public void showCache(java.util.Formatter f)
showCache
in interface FileCacheIF
public void showStats(java.util.Formatter f)
showStats
in interface FileCacheIF
public java.util.List<java.lang.String> showCache()
showCache
in interface FileCacheIF