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 FileCacheIF
public void disable()
disable
in interface FileCacheIF
public FileCacheable acquire(FileFactory factory, String location) throws IOException
acquire
in interface FileCacheIF
IOException
public FileCacheable acquire(FileFactory factory, Object hashKey, String location, int buffer_size, CancelTask cancelTask, Object spiObject) throws IOException
acquire
in interface FileCacheIF
IOException
public boolean release(FileCacheable ncfile) throws IOException
release
in interface FileCacheIF
IOException
public void eject(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(Formatter format)
showTracking
in interface FileCacheIF
public void showCache(Formatter f)
showCache
in interface FileCacheIF
public void showStats(Formatter f)
showStats
in interface FileCacheIF
public List<String> showCache()
showCache
in interface FileCacheIF
Copyright © 1999–2016 UCAR/Unidata. All rights reserved.