|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.application.areca.cache.AbstractArchiveDataCache
public abstract class AbstractArchiveDataCache
Abstract cache implementation.
Data are indexed by :
- FileSystemArchiveMedium
- File
Constructor Summary | |
---|---|
AbstractArchiveDataCache(EvictionManager evictor)
|
Method Summary | |
---|---|
protected ArchiveDataMap |
findArchiveDataMap(AbstractFileSystemMedium medium)
|
ArchiveDataMap |
findOrCreateArchiveDataMap(AbstractFileSystemMedium medium)
|
java.lang.Object |
get(AbstractFileSystemMedium medium,
java.io.File key)
|
protected AbstractFileSystemMedium |
getLeastAccessedNonEmptyMapMedium()
Return the medium that has been the least accessed ... |
boolean |
put(AbstractFileSystemMedium medium,
java.io.File key,
java.lang.Object data,
long approximateDataSize)
This method registers the object passed as argument in the cache associated to the medium. |
java.lang.Object |
remove(AbstractFileSystemMedium medium,
java.io.File key)
Remove an entry. |
void |
removeAllArchiveData()
Clear the cache |
void |
removeAllArchiveData(AbstractFileSystemMedium medium)
Clear all data for the medium passed as argument |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractArchiveDataCache(EvictionManager evictor)
Method Detail |
---|
public ArchiveDataMap findOrCreateArchiveDataMap(AbstractFileSystemMedium medium)
protected ArchiveDataMap findArchiveDataMap(AbstractFileSystemMedium medium)
public java.lang.Object get(AbstractFileSystemMedium medium, java.io.File key)
public boolean put(AbstractFileSystemMedium medium, java.io.File key, java.lang.Object data, long approximateDataSize)
public java.lang.Object remove(AbstractFileSystemMedium medium, java.io.File key)
public void removeAllArchiveData()
public void removeAllArchiveData(AbstractFileSystemMedium medium)
protected AbstractFileSystemMedium getLeastAccessedNonEmptyMapMedium()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |