Package org.aspectj.weaver.tools.cache
Class FlatFileCacheBacking
-
- All Implemented Interfaces:
CacheBacking
public class FlatFileCacheBacking extends AsynchronousFileCacheBacking
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.aspectj.weaver.tools.cache.AsynchronousFileCacheBacking
AsynchronousFileCacheBacking.AbstractCommand, AsynchronousFileCacheBacking.AsyncCommand, AsynchronousFileCacheBacking.AsynchronousFileCacheBackingCreator<T extends AsynchronousFileCacheBacking>, AsynchronousFileCacheBacking.ClearCommand, AsynchronousFileCacheBacking.InsertCommand, AsynchronousFileCacheBacking.KeyedCommand, AsynchronousFileCacheBacking.RemoveCommand, AsynchronousFileCacheBacking.UpdateIndexCommand
-
Nested classes/interfaces inherited from class org.aspectj.weaver.tools.cache.AbstractIndexedFileCacheBacking
AbstractIndexedFileCacheBacking.IndexEntry
-
-
Field Summary
-
Fields inherited from class org.aspectj.weaver.tools.cache.AsynchronousFileCacheBacking
bytesMap, exposedBytes, exposedIndex, index
-
Fields inherited from class org.aspectj.weaver.tools.cache.AbstractIndexedFileCacheBacking
EMPTY_INDEX, EMPTY_KEYS, INDEX_FILE
-
Fields inherited from class org.aspectj.weaver.tools.cache.AbstractFileCacheBacking
WEAVED_CLASS_CACHE_DIR
-
Fields inherited from class org.aspectj.weaver.tools.cache.AbstractCacheBacking
logger
-
-
Constructor Summary
Constructors Constructor Description FlatFileCacheBacking(File cacheDir)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FlatFileCacheBackingcreateBacking(File cacheDir)protected Map<String,byte[]>readClassBytes(Map<String,AbstractIndexedFileCacheBacking.IndexEntry> indexMap, File cacheDir)protected Map<String,byte[]>readClassBytes(Map<String,AbstractIndexedFileCacheBacking.IndexEntry> indexMap, File[] files)protected voidremoveClassBytes(String key)protected AbstractIndexedFileCacheBacking.IndexEntryresolveIndexMapEntry(File cacheDir, AbstractIndexedFileCacheBacking.IndexEntry ie)protected voidwriteClassBytes(String key, byte[] bytes)-
Methods inherited from class org.aspectj.weaver.tools.cache.AsynchronousFileCacheBacking
clear, createBacking, executeClearCommand, executeCommand, executeInsertCommand, executeRemoveCommand, executeUpdateIndexCommand, get, getBytesMap, getIndex, getIndexEntries, getIndexMap, postCacheCommand, put, remove, remove, toString
-
Methods inherited from class org.aspectj.weaver.tools.cache.AbstractIndexedFileCacheBacking
createIndexEntry, getIndexFile, getKeys, readIndex, readIndex, readIndex, writeIndex, writeIndex, writeIndex, writeIndex, writeIndex
-
Methods inherited from class org.aspectj.weaver.tools.cache.AbstractFileCacheBacking
close, close, delete, getCacheDirectory
-
Methods inherited from class org.aspectj.weaver.tools.cache.AbstractCacheBacking
crc
-
-
-
-
Constructor Detail
-
FlatFileCacheBacking
public FlatFileCacheBacking(File cacheDir)
-
-
Method Detail
-
createBacking
public static final FlatFileCacheBacking createBacking(File cacheDir)
-
readClassBytes
protected Map<String,byte[]> readClassBytes(Map<String,AbstractIndexedFileCacheBacking.IndexEntry> indexMap, File cacheDir)
- Specified by:
readClassBytesin classAsynchronousFileCacheBacking
-
readClassBytes
protected Map<String,byte[]> readClassBytes(Map<String,AbstractIndexedFileCacheBacking.IndexEntry> indexMap, File[] files)
-
resolveIndexMapEntry
protected AbstractIndexedFileCacheBacking.IndexEntry resolveIndexMapEntry(File cacheDir, AbstractIndexedFileCacheBacking.IndexEntry ie)
- Overrides:
resolveIndexMapEntryin classAbstractIndexedFileCacheBacking
-
writeClassBytes
protected void writeClassBytes(String key, byte[] bytes) throws Exception
- Overrides:
writeClassBytesin classAbstractFileCacheBacking- Throws:
Exception
-
removeClassBytes
protected void removeClassBytes(String key) throws Exception
- Specified by:
removeClassBytesin classAsynchronousFileCacheBacking- Throws:
Exception
-
-