Package org.aspectj.weaver.tools.cache
Klasse ZippedFileCacheBacking
java.lang.Object
org.aspectj.weaver.tools.cache.AbstractCacheBacking
org.aspectj.weaver.tools.cache.AbstractFileCacheBacking
org.aspectj.weaver.tools.cache.AbstractIndexedFileCacheBacking
org.aspectj.weaver.tools.cache.AsynchronousFileCacheBacking
org.aspectj.weaver.tools.cache.ZippedFileCacheBacking
- Alle implementierten Schnittstellen:
CacheBacking
Uses a ZIP file to store the instrumented classes/aspects - each one as a
separate
ZipEntry
. This mechanism is suitable for relatively
large numbers of instrumented classes/aspects (100's and more) since it
holds all of them in a single (ZIP) file. The down side is that any
modifications to the cache require re-writing the entire ZIP file. This
can cause the ZIP file to become corrupted if interrupted in mid-update,
thus requiring the re-population of the cache on next application activation
(though the overhead in this case is not prohibitvely high...)-
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.UpdateIndexCommand
Von 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, index
Von Klasse geerbte Felder org.aspectj.weaver.tools.cache.AbstractIndexedFileCacheBacking
EMPTY_INDEX, EMPTY_KEYS, INDEX_FILE
Von Klasse geerbte Felder org.aspectj.weaver.tools.cache.AbstractFileCacheBacking
WEAVED_CLASS_CACHE_DIR
Von Klasse geerbte Felder org.aspectj.weaver.tools.cache.AbstractCacheBacking
logger
-
Konstruktorübersicht
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic final ZippedFileCacheBacking
createBacking
(File cacheDir) readClassBytes
(Map<String, AbstractIndexedFileCacheBacking.IndexEntry> indexMap, File cacheDir) readZipClassBytes
(File file) protected void
removeClassBytes
(String key) protected boolean
syncClassBytesEntries
(File dataFile, Map<String, AbstractIndexedFileCacheBacking.IndexEntry> indexMap, Map<String, byte[]> entriesMap) protected Collection<String>
syncIndexEntries
(File dataFile, Map<String, AbstractIndexedFileCacheBacking.IndexEntry> indexMap, Map<String, byte[]> entriesMap) protected void
writeClassBytes
(String key, byte[] bytes) static final void
writeZipClassBytes
(File file, Map<String, byte[]> entriesMap) 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, toString
Von Klasse geerbte Methoden org.aspectj.weaver.tools.cache.AbstractIndexedFileCacheBacking
createIndexEntry, getIndexFile, getKeys, readIndex, readIndex, readIndex, writeIndex, writeIndex, writeIndex, writeIndex, writeIndex
Von Klasse geerbte Methoden org.aspectj.weaver.tools.cache.AbstractFileCacheBacking
close, close, delete, getCacheDirectory
Von Klasse geerbte Methoden org.aspectj.weaver.tools.cache.AbstractCacheBacking
crc
-
Felddetails
-
ZIP_FILE
- Siehe auch:
-
-
Konstruktordetails
-
ZippedFileCacheBacking
-
-
Methodendetails
-
getZipFile
-
createBacking
-
writeClassBytes
- Setzt außer Kraft:
writeClassBytes
in KlasseAbstractFileCacheBacking
- Löst aus:
Exception
-
removeClassBytes
Beschreibung aus Klasse kopiert:AsynchronousFileCacheBacking
- Angegeben von:
removeClassBytes
in KlasseAsynchronousFileCacheBacking
- Parameter:
key
- The key representing the class whose bytes are to be removed- Löst aus:
Exception
- if failed to remove class bytes
-
readClassBytes
protected Map<String,byte[]> readClassBytes(Map<String, AbstractIndexedFileCacheBacking.IndexEntry> indexMap, File cacheDir) - Angegeben von:
readClassBytes
in KlasseAsynchronousFileCacheBacking
-
syncIndexEntries
protected Collection<String> syncIndexEntries(File dataFile, Map<String, AbstractIndexedFileCacheBacking.IndexEntry> indexMap, Map<String, byte[]> entriesMap) -
syncClassBytesEntries
-
resolveIndexMapEntry
protected AbstractIndexedFileCacheBacking.IndexEntry resolveIndexMapEntry(File cacheDir, AbstractIndexedFileCacheBacking.IndexEntry ie) - Setzt außer Kraft:
resolveIndexMapEntry
in KlasseAbstractIndexedFileCacheBacking
-
readZipClassBytes
- Löst aus:
IOException
-
writeZipClassBytes
public static final void writeZipClassBytes(File file, Map<String, byte[]> entriesMap) throws IOException- Löst aus:
IOException
-