Package ucar.nc2.util.cache
Interface FileCacheIF
-
- All Known Implementing Classes:
FileCache,FileCacheARC,FileCacheGuava,FileCacheNOP
public interface FileCacheIFAn interface to a FileCache- Since:
- 10/28/2014
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FileCacheableacquire(FileFactory factory, Object hashKey, DatasetUrl location, int buffer_size, CancelTask cancelTask, Object spiObject)FileCacheableacquire(FileFactory factory, DatasetUrl location)voidclearCache(boolean force)voiddisable()voideject(Object hashKey)voidenable()booleanrelease(FileCacheable ncfile)voidresetTracking()List<String>showCache()voidshowCache(Formatter format)voidshowStats(Formatter format)voidshowTracking(Formatter format)
-
-
-
Method Detail
-
enable
void enable()
-
disable
void disable()
-
acquire
FileCacheable acquire(FileFactory factory, DatasetUrl location) throws IOException
- Throws:
IOException
-
acquire
FileCacheable acquire(FileFactory factory, Object hashKey, DatasetUrl location, int buffer_size, CancelTask cancelTask, Object spiObject) throws IOException
- Throws:
IOException
-
release
boolean release(FileCacheable ncfile) throws IOException
- Throws:
IOException
-
eject
void eject(Object hashKey)
-
clearCache
void clearCache(boolean force)
-
resetTracking
void resetTracking()
-
showTracking
void showTracking(Formatter format)
-
showCache
void showCache(Formatter format)
-
showStats
void showStats(Formatter format)
-
-