|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.netarkivet.archive.indexserver.FileBasedCache<java.util.Set<T>> dk.netarkivet.archive.indexserver.MultiFileBasedCache<T>
T
- The cache type, must extend java.lang.Comparable.public abstract class MultiFileBasedCache<T extends java.lang.Comparable<T>>
Implementation of file based cache, that works with the assumption we are working on a set if ids, of which we might only get a subset correct. Implements generating a filename from this.
Field Summary |
---|
Fields inherited from class dk.netarkivet.archive.indexserver.FileBasedCache |
---|
cacheDir |
Constructor Summary | |
---|---|
MultiFileBasedCache(java.lang.String cacheName)
Creates a new FileBasedCache object. |
Method Summary | |
---|---|
java.io.File |
getCacheFile(java.util.Set<T> ids)
Get the filename for the file containing the combined data for a set of IDs. |
Methods inherited from class dk.netarkivet.archive.indexserver.FileBasedCache |
---|
cache, cacheData, get, getCacheDir, getIndex |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MultiFileBasedCache(java.lang.String cacheName)
cacheName
- Name of this cache (enabling sharing among processes).
The directoriy creating in the cachedir will have this
name.Method Detail |
---|
public java.io.File getCacheFile(java.util.Set<T> ids)
getCacheFile
in class FileBasedCache<java.util.Set<T extends java.lang.Comparable<T>>>
ids
- A set of IDs to generate a filename for
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |