public class org.apache.cassandra.cache.AutoSavingCache$Writer extends org.apache.cassandra.db.compaction.CompactionInfo$Holder
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.cache.AutoSavingCache$Writer
super_class: org.apache.cassandra.db.compaction.CompactionInfo$Holder
{
private final java.util.Iterator<K> keyIterator;
descriptor: Ljava/util/Iterator;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Iterator<TK;>;
private final org.apache.cassandra.db.compaction.CompactionInfo info;
descriptor: Lorg/apache/cassandra/db/compaction/CompactionInfo;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private long keysWritten;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private final long keysEstimate;
descriptor: J
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
final org.apache.cassandra.cache.AutoSavingCache this$0;
descriptor: Lorg/apache/cassandra/cache/AutoSavingCache;
flags: (0x1010) ACC_FINAL, ACC_SYNTHETIC
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/apache/cassandra/cache/AutoSavingCache;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic org.apache.cassandra.cache.AutoSavingCache$Writer.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
protected void <init>(org.apache.cassandra.cache.AutoSavingCache, int);
descriptor: (Lorg/apache/cassandra/cache/AutoSavingCache;I)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=11, locals=5, args_size=3
start local 0 start local 2 0: aload 0
aload 1
putfield org.apache.cassandra.cache.AutoSavingCache$Writer.this$0:Lorg/apache/cassandra/cache/AutoSavingCache;
1: aload 0
invokespecial org.apache.cassandra.db.compaction.CompactionInfo$Holder.<init>:()V
2: aload 1
invokevirtual org.apache.cassandra.cache.AutoSavingCache.size:()I
istore 3
start local 3 3: iload 2
iload 3
if_icmpge 4
iload 2
ifne 7
4: StackMap locals: org.apache.cassandra.cache.AutoSavingCache$Writer org.apache.cassandra.cache.AutoSavingCache int int
StackMap stack:
aload 0
aload 1
invokevirtual org.apache.cassandra.cache.AutoSavingCache.keyIterator:()Ljava/util/Iterator;
putfield org.apache.cassandra.cache.AutoSavingCache$Writer.keyIterator:Ljava/util/Iterator;
5: aload 0
iload 3
i2l
putfield org.apache.cassandra.cache.AutoSavingCache$Writer.keysEstimate:J
6: goto 9
7: StackMap locals:
StackMap stack:
aload 0
aload 1
iload 2
invokevirtual org.apache.cassandra.cache.AutoSavingCache.hotKeyIterator:(I)Ljava/util/Iterator;
putfield org.apache.cassandra.cache.AutoSavingCache$Writer.keyIterator:Ljava/util/Iterator;
8: aload 0
iload 2
i2l
putfield org.apache.cassandra.cache.AutoSavingCache$Writer.keysEstimate:J
9: StackMap locals:
StackMap stack:
aload 1
getfield org.apache.cassandra.cache.AutoSavingCache.cacheType:Lorg/apache/cassandra/service/CacheService$CacheType;
getstatic org.apache.cassandra.service.CacheService$CacheType.KEY_CACHE:Lorg/apache/cassandra/service/CacheService$CacheType;
if_acmpne 12
10: getstatic org.apache.cassandra.db.compaction.OperationType.KEY_CACHE_SAVE:Lorg/apache/cassandra/db/compaction/OperationType;
astore 4
start local 4 11: goto 19
end local 4 12: StackMap locals:
StackMap stack:
aload 1
getfield org.apache.cassandra.cache.AutoSavingCache.cacheType:Lorg/apache/cassandra/service/CacheService$CacheType;
getstatic org.apache.cassandra.service.CacheService$CacheType.ROW_CACHE:Lorg/apache/cassandra/service/CacheService$CacheType;
if_acmpne 15
13: getstatic org.apache.cassandra.db.compaction.OperationType.ROW_CACHE_SAVE:Lorg/apache/cassandra/db/compaction/OperationType;
astore 4
start local 4 14: goto 19
end local 4 15: StackMap locals:
StackMap stack:
aload 1
getfield org.apache.cassandra.cache.AutoSavingCache.cacheType:Lorg/apache/cassandra/service/CacheService$CacheType;
getstatic org.apache.cassandra.service.CacheService$CacheType.COUNTER_CACHE:Lorg/apache/cassandra/service/CacheService$CacheType;
if_acmpne 18
16: getstatic org.apache.cassandra.db.compaction.OperationType.COUNTER_CACHE_SAVE:Lorg/apache/cassandra/db/compaction/OperationType;
astore 4
start local 4 17: goto 19
end local 4 18: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.db.compaction.OperationType.UNKNOWN:Lorg/apache/cassandra/db/compaction/OperationType;
astore 4
start local 4 19: StackMap locals: org.apache.cassandra.db.compaction.OperationType
StackMap stack:
aload 0
new org.apache.cassandra.db.compaction.CompactionInfo
dup
ldc "system"
aload 1
getfield org.apache.cassandra.cache.AutoSavingCache.cacheType:Lorg/apache/cassandra/service/CacheService$CacheType;
invokevirtual org.apache.cassandra.service.CacheService$CacheType.toString:()Ljava/lang/String;
invokestatic org.apache.cassandra.config.CFMetaData.createFake:(Ljava/lang/String;Ljava/lang/String;)Lorg/apache/cassandra/config/CFMetaData;
20: aload 4
21: lconst_0
22: aload 0
getfield org.apache.cassandra.cache.AutoSavingCache$Writer.keysEstimate:J
23: getstatic org.apache.cassandra.db.compaction.CompactionInfo$Unit.KEYS:Lorg/apache/cassandra/db/compaction/CompactionInfo$Unit;
24: invokestatic org.apache.cassandra.utils.UUIDGen.getTimeUUID:()Ljava/util/UUID;
invokespecial org.apache.cassandra.db.compaction.CompactionInfo.<init>:(Lorg/apache/cassandra/config/CFMetaData;Lorg/apache/cassandra/db/compaction/OperationType;JJLorg/apache/cassandra/db/compaction/CompactionInfo$Unit;Ljava/util/UUID;)V
25: putfield org.apache.cassandra.cache.AutoSavingCache$Writer.info:Lorg/apache/cassandra/db/compaction/CompactionInfo;
26: return
end local 4 end local 3 end local 2 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 27 0 this Lorg/apache/cassandra/cache/AutoSavingCache$Writer;
0 27 2 keysToSave I
3 27 3 size I
11 12 4 type Lorg/apache/cassandra/db/compaction/OperationType;
14 15 4 type Lorg/apache/cassandra/db/compaction/OperationType;
17 18 4 type Lorg/apache/cassandra/db/compaction/OperationType;
19 27 4 type Lorg/apache/cassandra/db/compaction/OperationType;
MethodParameters:
Name Flags
this$0 final
keysToSave
public org.apache.cassandra.service.CacheService$CacheType cacheType();
descriptor: ()Lorg/apache/cassandra/service/CacheService$CacheType;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.cache.AutoSavingCache$Writer.this$0:Lorg/apache/cassandra/cache/AutoSavingCache;
getfield org.apache.cassandra.cache.AutoSavingCache.cacheType:Lorg/apache/cassandra/service/CacheService$CacheType;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/cache/AutoSavingCache$Writer;
public org.apache.cassandra.db.compaction.CompactionInfo getCompactionInfo();
descriptor: ()Lorg/apache/cassandra/db/compaction/CompactionInfo;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.cache.AutoSavingCache$Writer.info:Lorg/apache/cassandra/db/compaction/CompactionInfo;
aload 0
getfield org.apache.cassandra.cache.AutoSavingCache$Writer.keysWritten:J
aload 0
getfield org.apache.cassandra.cache.AutoSavingCache$Writer.keysWritten:J
aload 0
getfield org.apache.cassandra.cache.AutoSavingCache$Writer.keysEstimate:J
invokestatic java.lang.Math.max:(JJ)J
invokevirtual org.apache.cassandra.db.compaction.CompactionInfo.forProgress:(JJ)Lorg/apache/cassandra/db/compaction/CompactionInfo;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/cache/AutoSavingCache$Writer;
public void saveCache();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=10, locals=10, args_size=1
start local 0 0: getstatic org.apache.cassandra.cache.AutoSavingCache.logger:Lorg/slf4j/Logger;
ldc "Deleting old {} files."
aload 0
getfield org.apache.cassandra.cache.AutoSavingCache$Writer.this$0:Lorg/apache/cassandra/cache/AutoSavingCache;
getfield org.apache.cassandra.cache.AutoSavingCache.cacheType:Lorg/apache/cassandra/service/CacheService$CacheType;
invokeinterface org.slf4j.Logger.trace:(Ljava/lang/String;Ljava/lang/Object;)V
1: aload 0
invokevirtual org.apache.cassandra.cache.AutoSavingCache$Writer.deleteOldCacheFiles:()V
2: aload 0
getfield org.apache.cassandra.cache.AutoSavingCache$Writer.keyIterator:Ljava/util/Iterator;
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
3: getstatic org.apache.cassandra.cache.AutoSavingCache.logger:Lorg/slf4j/Logger;
ldc "Skipping {} save, cache is empty."
aload 0
getfield org.apache.cassandra.cache.AutoSavingCache$Writer.this$0:Lorg/apache/cassandra/cache/AutoSavingCache;
getfield org.apache.cassandra.cache.AutoSavingCache.cacheType:Lorg/apache/cassandra/service/CacheService$CacheType;
invokeinterface org.slf4j.Logger.trace:(Ljava/lang/String;Ljava/lang/Object;)V
4: return
5: StackMap locals:
StackMap stack:
invokestatic java.lang.System.nanoTime:()J
lstore 1
start local 1 6: aload 0
invokevirtual org.apache.cassandra.cache.AutoSavingCache$Writer.tempCacheFiles:()Lorg/apache/cassandra/utils/Pair;
astore 3
start local 3 7: aconst_null
astore 4
aconst_null
astore 5
8: new org.apache.cassandra.io.util.WrappedDataOutputStreamPlus
dup
getstatic org.apache.cassandra.cache.AutoSavingCache.streamFactory:Lorg/apache/cassandra/cache/AutoSavingCache$IStreamFactory;
aload 3
getfield org.apache.cassandra.utils.Pair.left:Ljava/lang/Object;
checkcast java.io.File
aload 3
getfield org.apache.cassandra.utils.Pair.right:Ljava/lang/Object;
checkcast java.io.File
invokeinterface org.apache.cassandra.cache.AutoSavingCache$IStreamFactory.getOutputStream:(Ljava/io/File;Ljava/io/File;)Ljava/io/OutputStream;
invokespecial org.apache.cassandra.io.util.WrappedDataOutputStreamPlus.<init>:(Ljava/io/OutputStream;)V
astore 6
start local 6 9: getstatic org.apache.cassandra.config.Schema.instance:Lorg/apache/cassandra/config/Schema;
invokevirtual org.apache.cassandra.config.Schema.getVersion:()Ljava/util/UUID;
astore 7
start local 7 10: aload 7
ifnonnull 13
11: getstatic org.apache.cassandra.config.Schema.instance:Lorg/apache/cassandra/config/Schema;
invokevirtual org.apache.cassandra.config.Schema.updateVersion:()V
12: getstatic org.apache.cassandra.config.Schema.instance:Lorg/apache/cassandra/config/Schema;
invokevirtual org.apache.cassandra.config.Schema.getVersion:()Ljava/util/UUID;
astore 7
13: StackMap locals: org.apache.cassandra.cache.AutoSavingCache$Writer long org.apache.cassandra.utils.Pair java.lang.Throwable java.lang.Throwable org.apache.cassandra.io.util.WrappedDataOutputStreamPlus java.util.UUID
StackMap stack:
aload 6
aload 7
invokevirtual java.util.UUID.getMostSignificantBits:()J
invokevirtual org.apache.cassandra.io.util.WrappedDataOutputStreamPlus.writeLong:(J)V
14: aload 6
aload 7
invokevirtual java.util.UUID.getLeastSignificantBits:()J
invokevirtual org.apache.cassandra.io.util.WrappedDataOutputStreamPlus.writeLong:(J)V
15: goto 24
16: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.cache.AutoSavingCache$Writer.keyIterator:Ljava/util/Iterator;
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.cache.CacheKey
astore 8
start local 8 17: getstatic org.apache.cassandra.config.Schema.instance:Lorg/apache/cassandra/config/Schema;
aload 8
getfield org.apache.cassandra.cache.CacheKey.ksAndCFName:Lorg/apache/cassandra/utils/Pair;
invokevirtual org.apache.cassandra.config.Schema.getColumnFamilyStoreIncludingIndexes:(Lorg/apache/cassandra/utils/Pair;)Lorg/apache/cassandra/db/ColumnFamilyStore;
astore 9
start local 9 18: aload 9
ifnonnull 20
19: goto 24
20: StackMap locals: org.apache.cassandra.cache.CacheKey org.apache.cassandra.db.ColumnFamilyStore
StackMap stack:
aload 0
getfield org.apache.cassandra.cache.AutoSavingCache$Writer.this$0:Lorg/apache/cassandra/cache/AutoSavingCache;
getfield org.apache.cassandra.cache.AutoSavingCache.cacheLoader:Lorg/apache/cassandra/cache/AutoSavingCache$CacheSerializer;
aload 8
aload 6
aload 9
invokeinterface org.apache.cassandra.cache.AutoSavingCache$CacheSerializer.serialize:(Lorg/apache/cassandra/cache/CacheKey;Lorg/apache/cassandra/io/util/DataOutputPlus;Lorg/apache/cassandra/db/ColumnFamilyStore;)V
21: aload 0
dup
getfield org.apache.cassandra.cache.AutoSavingCache$Writer.keysWritten:J
lconst_1
ladd
putfield org.apache.cassandra.cache.AutoSavingCache$Writer.keysWritten:J
22: aload 0
getfield org.apache.cassandra.cache.AutoSavingCache$Writer.keysWritten:J
aload 0
getfield org.apache.cassandra.cache.AutoSavingCache$Writer.keysEstimate:J
lcmp
iflt 24
23: goto 25
end local 9 end local 8 24: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.cache.AutoSavingCache$Writer.keyIterator:Ljava/util/Iterator;
invokeinterface java.util.Iterator.hasNext:()Z
ifne 16
end local 7 25: StackMap locals:
StackMap stack:
aload 6
ifnull 35
aload 6
invokevirtual org.apache.cassandra.io.util.WrappedDataOutputStreamPlus.close:()V
goto 35
StackMap locals:
StackMap stack: java.lang.Throwable
26: astore 4
aload 6
ifnull 27
aload 6
invokevirtual org.apache.cassandra.io.util.WrappedDataOutputStreamPlus.close:()V
end local 6 StackMap locals:
StackMap stack:
27: aload 4
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
28: astore 5
aload 4
ifnonnull 29
aload 5
astore 4
goto 30
StackMap locals:
StackMap stack:
29: aload 4
aload 5
if_acmpeq 30
aload 4
aload 5
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
30: aload 4
athrow
31: StackMap locals: org.apache.cassandra.cache.AutoSavingCache$Writer long org.apache.cassandra.utils.Pair
StackMap stack: java.io.FileNotFoundException
astore 4
start local 4 32: new java.lang.RuntimeException
dup
aload 4
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 4 33: StackMap locals:
StackMap stack: java.io.IOException
astore 4
start local 4 34: new org.apache.cassandra.io.FSWriteError
dup
aload 4
aload 3
getfield org.apache.cassandra.utils.Pair.left:Ljava/lang/Object;
checkcast java.io.File
invokespecial org.apache.cassandra.io.FSWriteError.<init>:(Ljava/lang/Throwable;Ljava/io/File;)V
athrow
end local 4 35: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.cache.AutoSavingCache$Writer.this$0:Lorg/apache/cassandra/cache/AutoSavingCache;
ldc "e"
invokevirtual org.apache.cassandra.cache.AutoSavingCache.getCacheDataPath:(Ljava/lang/String;)Ljava/io/File;
astore 4
start local 4 36: aload 0
getfield org.apache.cassandra.cache.AutoSavingCache$Writer.this$0:Lorg/apache/cassandra/cache/AutoSavingCache;
ldc "e"
invokevirtual org.apache.cassandra.cache.AutoSavingCache.getCacheCrcPath:(Ljava/lang/String;)Ljava/io/File;
astore 5
start local 5 37: aload 4
invokevirtual java.io.File.delete:()Z
pop
38: aload 5
invokevirtual java.io.File.delete:()Z
pop
39: aload 3
getfield org.apache.cassandra.utils.Pair.left:Ljava/lang/Object;
checkcast java.io.File
aload 4
invokevirtual java.io.File.renameTo:(Ljava/io/File;)Z
ifne 41
40: getstatic org.apache.cassandra.cache.AutoSavingCache.logger:Lorg/slf4j/Logger;
ldc "Unable to rename {} to {}"
aload 3
getfield org.apache.cassandra.utils.Pair.left:Ljava/lang/Object;
aload 4
invokeinterface org.slf4j.Logger.error:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
41: StackMap locals: java.io.File java.io.File
StackMap stack:
aload 3
getfield org.apache.cassandra.utils.Pair.right:Ljava/lang/Object;
checkcast java.io.File
aload 5
invokevirtual java.io.File.renameTo:(Ljava/io/File;)Z
ifne 43
42: getstatic org.apache.cassandra.cache.AutoSavingCache.logger:Lorg/slf4j/Logger;
ldc "Unable to rename {} to {}"
aload 3
getfield org.apache.cassandra.utils.Pair.right:Ljava/lang/Object;
aload 5
invokeinterface org.slf4j.Logger.error:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
43: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.cache.AutoSavingCache.logger:Lorg/slf4j/Logger;
ldc "Saved {} ({} items) in {} ms"
iconst_3
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield org.apache.cassandra.cache.AutoSavingCache$Writer.this$0:Lorg/apache/cassandra/cache/AutoSavingCache;
getfield org.apache.cassandra.cache.AutoSavingCache.cacheType:Lorg/apache/cassandra/service/CacheService$CacheType;
aastore
dup
iconst_1
aload 0
getfield org.apache.cassandra.cache.AutoSavingCache$Writer.keysWritten:J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
dup
iconst_2
getstatic java.util.concurrent.TimeUnit.NANOSECONDS:Ljava/util/concurrent/TimeUnit;
invokestatic java.lang.System.nanoTime:()J
lload 1
lsub
invokevirtual java.util.concurrent.TimeUnit.toMillis:(J)J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
invokeinterface org.slf4j.Logger.info:(Ljava/lang/String;[Ljava/lang/Object;)V
44: return
end local 5 end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 45 0 this Lorg/apache/cassandra/cache/AutoSavingCache$Writer;
6 45 1 start J
7 45 3 cacheFilePaths Lorg/apache/cassandra/utils/Pair<Ljava/io/File;Ljava/io/File;>;
9 27 6 writer Lorg/apache/cassandra/io/util/WrappedDataOutputStreamPlus;
10 25 7 schemaVersion Ljava/util/UUID;
17 24 8 key TK;
18 24 9 cfs Lorg/apache/cassandra/db/ColumnFamilyStore;
32 33 4 e Ljava/io/FileNotFoundException;
34 35 4 e Ljava/io/IOException;
36 45 4 cacheFile Ljava/io/File;
37 45 5 crcFile Ljava/io/File;
Exception table:
from to target type
9 25 26 any
8 28 28 any
7 31 31 Class java.io.FileNotFoundException
7 31 33 Class java.io.IOException
private org.apache.cassandra.utils.Pair<java.io.File, java.io.File> tempCacheFiles();
descriptor: ()Lorg/apache/cassandra/utils/Pair;
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=3, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.cache.AutoSavingCache$Writer.this$0:Lorg/apache/cassandra/cache/AutoSavingCache;
ldc "e"
invokevirtual org.apache.cassandra.cache.AutoSavingCache.getCacheDataPath:(Ljava/lang/String;)Ljava/io/File;
astore 1
start local 1 1: aload 0
getfield org.apache.cassandra.cache.AutoSavingCache$Writer.this$0:Lorg/apache/cassandra/cache/AutoSavingCache;
ldc "e"
invokevirtual org.apache.cassandra.cache.AutoSavingCache.getCacheCrcPath:(Ljava/lang/String;)Ljava/io/File;
astore 2
start local 2 2: aload 1
invokevirtual java.io.File.getName:()Ljava/lang/String;
aconst_null
aload 1
invokevirtual java.io.File.getParentFile:()Ljava/io/File;
invokestatic org.apache.cassandra.io.util.FileUtils.createTempFile:(Ljava/lang/String;Ljava/lang/String;Ljava/io/File;)Ljava/io/File;
3: aload 2
invokevirtual java.io.File.getName:()Ljava/lang/String;
aconst_null
aload 2
invokevirtual java.io.File.getParentFile:()Ljava/io/File;
invokestatic org.apache.cassandra.io.util.FileUtils.createTempFile:(Ljava/lang/String;Ljava/lang/String;Ljava/io/File;)Ljava/io/File;
4: invokestatic org.apache.cassandra.utils.Pair.create:(Ljava/lang/Object;Ljava/lang/Object;)Lorg/apache/cassandra/utils/Pair;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/cassandra/cache/AutoSavingCache$Writer;
1 5 1 dataPath Ljava/io/File;
2 5 2 crcPath Ljava/io/File;
Signature: ()Lorg/apache/cassandra/utils/Pair<Ljava/io/File;Ljava/io/File;>;
private void deleteOldCacheFiles();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=8, args_size=1
start local 0 0: new java.io.File
dup
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getSavedCachesLocation:()Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 1
start local 1 1: getstatic org.apache.cassandra.cache.AutoSavingCache$Writer.$assertionsDisabled:Z
ifne 3
aload 1
invokevirtual java.io.File.exists:()Z
ifeq 2
aload 1
invokevirtual java.io.File.isDirectory:()Z
ifne 3
StackMap locals: java.io.File
StackMap stack:
2: new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
3: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.io.File.listFiles:()[Ljava/io/File;
astore 2
start local 2 4: aload 2
ifnull 17
5: ldc "%s-%s.db"
iconst_2
anewarray java.lang.Object
dup
iconst_0
aload 0
getfield org.apache.cassandra.cache.AutoSavingCache$Writer.this$0:Lorg/apache/cassandra/cache/AutoSavingCache;
getfield org.apache.cassandra.cache.AutoSavingCache.cacheType:Lorg/apache/cassandra/service/CacheService$CacheType;
invokevirtual org.apache.cassandra.service.CacheService$CacheType.toString:()Ljava/lang/String;
aastore
dup
iconst_1
ldc "e"
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
astore 3
start local 3 6: aload 2
dup
astore 7
arraylength
istore 6
iconst_0
istore 5
goto 15
StackMap locals: org.apache.cassandra.cache.AutoSavingCache$Writer java.io.File java.io.File[] java.lang.String top int int java.io.File[]
StackMap stack:
7: aload 7
iload 5
aaload
astore 4
start local 4 8: aload 4
invokevirtual java.io.File.isFile:()Z
ifne 10
9: goto 14
10: StackMap locals: org.apache.cassandra.cache.AutoSavingCache$Writer java.io.File java.io.File[] java.lang.String java.io.File int int java.io.File[]
StackMap stack:
aload 4
invokevirtual java.io.File.getName:()Ljava/lang/String;
aload 3
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifne 12
11: aload 4
invokevirtual java.io.File.getName:()Ljava/lang/String;
aload 0
getfield org.apache.cassandra.cache.AutoSavingCache$Writer.this$0:Lorg/apache/cassandra/cache/AutoSavingCache;
getfield org.apache.cassandra.cache.AutoSavingCache.cacheType:Lorg/apache/cassandra/service/CacheService$CacheType;
invokevirtual org.apache.cassandra.service.CacheService$CacheType.toString:()Ljava/lang/String;
invokevirtual java.lang.String.endsWith:(Ljava/lang/String;)Z
ifeq 14
12: StackMap locals:
StackMap stack:
aload 4
invokevirtual java.io.File.delete:()Z
ifne 14
13: getstatic org.apache.cassandra.cache.AutoSavingCache.logger:Lorg/slf4j/Logger;
ldc "Failed to delete {}"
aload 4
invokevirtual java.io.File.getAbsolutePath:()Ljava/lang/String;
invokeinterface org.slf4j.Logger.warn:(Ljava/lang/String;Ljava/lang/Object;)V
end local 4 14: StackMap locals: org.apache.cassandra.cache.AutoSavingCache$Writer java.io.File java.io.File[] java.lang.String top int int java.io.File[]
StackMap stack:
iinc 5 1
StackMap locals:
StackMap stack:
15: iload 5
iload 6
if_icmplt 7
end local 3 16: goto 18
17: StackMap locals: org.apache.cassandra.cache.AutoSavingCache$Writer java.io.File java.io.File[]
StackMap stack:
getstatic org.apache.cassandra.cache.AutoSavingCache.logger:Lorg/slf4j/Logger;
ldc "Could not list files in {}"
aload 1
invokeinterface org.slf4j.Logger.warn:(Ljava/lang/String;Ljava/lang/Object;)V
18: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Lorg/apache/cassandra/cache/AutoSavingCache$Writer;
1 19 1 savedCachesDir Ljava/io/File;
4 19 2 files [Ljava/io/File;
6 16 3 cacheNameFormat Ljava/lang/String;
8 14 4 file Ljava/io/File;
}
SourceFile: "AutoSavingCache.java"
NestHost: org.apache.cassandra.cache.AutoSavingCache
InnerClasses:
public abstract CacheSerializer = org.apache.cassandra.cache.AutoSavingCache$CacheSerializer of org.apache.cassandra.cache.AutoSavingCache
public abstract IStreamFactory = org.apache.cassandra.cache.AutoSavingCache$IStreamFactory of org.apache.cassandra.cache.AutoSavingCache
public Writer = org.apache.cassandra.cache.AutoSavingCache$Writer of org.apache.cassandra.cache.AutoSavingCache
public abstract Holder = org.apache.cassandra.db.compaction.CompactionInfo$Holder of org.apache.cassandra.db.compaction.CompactionInfo
public final Unit = org.apache.cassandra.db.compaction.CompactionInfo$Unit of org.apache.cassandra.db.compaction.CompactionInfo
public final CacheType = org.apache.cassandra.service.CacheService$CacheType of org.apache.cassandra.service.CacheService