Package org.aspectj.weaver.tools.cache
Klasse FlatFileCacheBacking
- Alle implementierten Schnittstellen:
CacheBacking
Uses a "flat" files model to store the cached instrumented classes
and aspects - i.e., each class/aspect is stored as a separate (binary)
file. This is a good mechanism when the number of instrumented class is
relatively small (a few 10's). The reason for it is that scanning a folder
that has many files in it quickly becomes an I/O bottleneck. Also, some
O/S-es may impose internal limits on the maximum number of "children"
a folder node may have. On the other hand, it is much faster (again, for
small number of instrumented classes) than the ZIP cache since each class/aspect
is represented by a single file - thus adding/removing/modifying it is easier.
- Autor:
- Lyor Goldstein
-
Verschachtelte Klassen - Übersicht
Von Klasse geerbte verschachtelte Klassen/Schnittstellen org.aspectj.weaver.tools.cache.AsynchronousFileCacheBacking
AsynchronousFileCacheBacking.AbstractCommand, AsynchronousFileCacheBacking.AsyncCommand, AsynchronousFileCacheBacking.AsynchronousFileCacheBackingCreator<T extends AsynchronousFileCacheBacking>, AsynchronousFileCacheBacking.ClearCommand, AsynchronousFileCacheBacking.InsertCommand, AsynchronousFileCacheBacking.KeyedCommand, AsynchronousFileCacheBacking.RemoveCommand, AsynchronousFileCacheBacking.UpdateIndexCommandVon Klasse geerbte verschachtelte Klassen/Schnittstellen org.aspectj.weaver.tools.cache.AbstractIndexedFileCacheBacking
AbstractIndexedFileCacheBacking.IndexEntry -
Feldübersicht
Von Klasse geerbte Felder org.aspectj.weaver.tools.cache.AsynchronousFileCacheBacking
bytesMap, exposedBytes, exposedIndex, indexVon Klasse geerbte Felder org.aspectj.weaver.tools.cache.AbstractIndexedFileCacheBacking
EMPTY_INDEX, EMPTY_KEYS, INDEX_FILEVon Klasse geerbte Felder org.aspectj.weaver.tools.cache.AbstractFileCacheBacking
WEAVED_CLASS_CACHE_DIRVon Klasse geerbte Felder org.aspectj.weaver.tools.cache.AbstractCacheBacking
logger -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic final FlatFileCacheBackingcreateBacking(File cacheDir) readClassBytes(Map<String, AbstractIndexedFileCacheBacking.IndexEntry> indexMap, File cacheDir) readClassBytes(Map<String, AbstractIndexedFileCacheBacking.IndexEntry> indexMap, File[] files) protected voidremoveClassBytes(String key) protected voidwriteClassBytes(String key, byte[] bytes) Von Klasse geerbte Methoden org.aspectj.weaver.tools.cache.AsynchronousFileCacheBacking
clear, createBacking, executeClearCommand, executeCommand, executeInsertCommand, executeRemoveCommand, executeUpdateIndexCommand, get, getBytesMap, getIndex, getIndexEntries, getIndexMap, postCacheCommand, put, remove, remove, toStringVon Klasse geerbte Methoden org.aspectj.weaver.tools.cache.AbstractIndexedFileCacheBacking
createIndexEntry, getIndexFile, getKeys, readIndex, readIndex, readIndex, writeIndex, writeIndex, writeIndex, writeIndex, writeIndexVon Klasse geerbte Methoden org.aspectj.weaver.tools.cache.AbstractFileCacheBacking
close, close, delete, getCacheDirectoryVon Klasse geerbte Methoden org.aspectj.weaver.tools.cache.AbstractCacheBacking
crc
-
Konstruktordetails
-
FlatFileCacheBacking
-
-
Methodendetails
-
createBacking
-
readClassBytes
protected Map<String,byte[]> readClassBytes(Map<String, AbstractIndexedFileCacheBacking.IndexEntry> indexMap, File cacheDir) - Angegeben von:
readClassBytesin KlasseAsynchronousFileCacheBacking
-
readClassBytes
-
resolveIndexMapEntry
protected AbstractIndexedFileCacheBacking.IndexEntry resolveIndexMapEntry(File cacheDir, AbstractIndexedFileCacheBacking.IndexEntry ie) - Setzt außer Kraft:
resolveIndexMapEntryin KlasseAbstractIndexedFileCacheBacking
-
writeClassBytes
- Setzt außer Kraft:
writeClassBytesin KlasseAbstractFileCacheBacking- Löst aus:
Exception
-
removeClassBytes
Beschreibung aus Klasse kopiert:AsynchronousFileCacheBacking- Angegeben von:
removeClassBytesin KlasseAsynchronousFileCacheBacking- Parameter:
key- The key representing the class whose bytes are to be removed- Löst aus:
Exception- if failed to remove class bytes
-