Package ucar.nc2.util.cache
Interface FileCacheIF
-
- All Known Implementing Classes:
FileCache
,FileCacheARC
,FileCacheGuava
,FileCacheNOP
public interface FileCacheIF
An interface to a FileCache- Since:
- 10/28/2014
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FileCacheable
acquire(FileFactory factory, Object hashKey, DatasetUrl location, int buffer_size, CancelTask cancelTask, Object spiObject)
FileCacheable
acquire(FileFactory factory, DatasetUrl 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 format)
void
showStats(Formatter format)
void
showTracking(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)
-
-