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,
java.lang.Object hashKey,
java.lang.String location,
int buffer_size,
CancelTask cancelTask,
java.lang.Object spiObject) |
FileCacheable |
acquire(FileFactory factory,
java.lang.String location) |
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, java.lang.String location) throws java.io.IOException
acquire
in interface FileCacheIF
java.io.IOException
public FileCacheable acquire(FileFactory factory, java.lang.Object hashKey, java.lang.String location, int buffer_size, CancelTask cancelTask, java.lang.Object spiObject) throws java.io.IOException
acquire
in interface FileCacheIF
java.io.IOException
public boolean release(FileCacheable ncfile) throws java.io.IOException
release
in interface FileCacheIF
java.io.IOException
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