public class org.apache.cassandra.service.CacheService implements org.apache.cassandra.service.CacheServiceMBean
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.service.CacheService
super_class: java.lang.Object
{
private static final org.slf4j.Logger logger;
descriptor: Lorg/slf4j/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
public static final java.lang.String MBEAN_NAME;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "org.apache.cassandra.db:type=Caches"
public static final org.apache.cassandra.service.CacheService instance;
descriptor: Lorg/apache/cassandra/service/CacheService;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
public final org.apache.cassandra.cache.AutoSavingCache<org.apache.cassandra.cache.KeyCacheKey, org.apache.cassandra.db.RowIndexEntry> keyCache;
descriptor: Lorg/apache/cassandra/cache/AutoSavingCache;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Signature: Lorg/apache/cassandra/cache/AutoSavingCache<Lorg/apache/cassandra/cache/KeyCacheKey;Lorg/apache/cassandra/db/RowIndexEntry;>;
public final org.apache.cassandra.cache.AutoSavingCache<org.apache.cassandra.cache.RowCacheKey, org.apache.cassandra.cache.IRowCacheEntry> rowCache;
descriptor: Lorg/apache/cassandra/cache/AutoSavingCache;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Signature: Lorg/apache/cassandra/cache/AutoSavingCache<Lorg/apache/cassandra/cache/RowCacheKey;Lorg/apache/cassandra/cache/IRowCacheEntry;>;
public final org.apache.cassandra.cache.AutoSavingCache<org.apache.cassandra.cache.CounterCacheKey, org.apache.cassandra.db.ClockAndCount> counterCache;
descriptor: Lorg/apache/cassandra/cache/AutoSavingCache;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Signature: Lorg/apache/cassandra/cache/AutoSavingCache<Lorg/apache/cassandra/cache/CounterCacheKey;Lorg/apache/cassandra/db/ClockAndCount;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc Lorg/apache/cassandra/service/CacheService;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic org.apache.cassandra.service.CacheService.logger:Lorg/slf4j/Logger;
1: new org.apache.cassandra.service.CacheService
dup
invokespecial org.apache.cassandra.service.CacheService.<init>:()V
putstatic org.apache.cassandra.service.CacheService.instance:Lorg/apache/cassandra/service/CacheService;
return
LocalVariableTable:
Start End Slot Name Signature
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: getstatic org.apache.cassandra.utils.MBeanWrapper.instance:Lorg/apache/cassandra/utils/MBeanWrapper;
aload 0
ldc "org.apache.cassandra.db:type=Caches"
invokeinterface org.apache.cassandra.utils.MBeanWrapper.registerMBean:(Ljava/lang/Object;Ljava/lang/String;)V
2: aload 0
aload 0
invokevirtual org.apache.cassandra.service.CacheService.initKeyCache:()Lorg/apache/cassandra/cache/AutoSavingCache;
putfield org.apache.cassandra.service.CacheService.keyCache:Lorg/apache/cassandra/cache/AutoSavingCache;
3: aload 0
aload 0
invokevirtual org.apache.cassandra.service.CacheService.initRowCache:()Lorg/apache/cassandra/cache/AutoSavingCache;
putfield org.apache.cassandra.service.CacheService.rowCache:Lorg/apache/cassandra/cache/AutoSavingCache;
4: aload 0
aload 0
invokevirtual org.apache.cassandra.service.CacheService.initCounterCache:()Lorg/apache/cassandra/cache/AutoSavingCache;
putfield org.apache.cassandra.service.CacheService.counterCache:Lorg/apache/cassandra/cache/AutoSavingCache;
5: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/cassandra/service/CacheService;
private org.apache.cassandra.cache.AutoSavingCache<org.apache.cassandra.cache.KeyCacheKey, org.apache.cassandra.db.RowIndexEntry> initKeyCache();
descriptor: ()Lorg/apache/cassandra/cache/AutoSavingCache;
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=6, args_size=1
start local 0 0: getstatic org.apache.cassandra.service.CacheService.logger:Lorg/slf4j/Logger;
ldc "Initializing key cache with capacity of {} MBs."
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getKeyCacheSizeInMB:()J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
invokeinterface org.slf4j.Logger.info:(Ljava/lang/String;Ljava/lang/Object;)V
1: invokestatic org.apache.cassandra.config.DatabaseDescriptor.getKeyCacheSizeInMB:()J
ldc 1024
lmul
ldc 1024
lmul
lstore 1
start local 1 2: lload 1
invokestatic org.apache.cassandra.cache.ConcurrentLinkedHashCache.create:(J)Lorg/apache/cassandra/cache/ConcurrentLinkedHashCache;
astore 3
start local 3 3: new org.apache.cassandra.cache.AutoSavingCache
dup
aload 3
getstatic org.apache.cassandra.service.CacheService$CacheType.KEY_CACHE:Lorg/apache/cassandra/service/CacheService$CacheType;
new org.apache.cassandra.service.CacheService$KeyCacheSerializer
dup
invokespecial org.apache.cassandra.service.CacheService$KeyCacheSerializer.<init>:()V
invokespecial org.apache.cassandra.cache.AutoSavingCache.<init>:(Lorg/apache/cassandra/cache/ICache;Lorg/apache/cassandra/service/CacheService$CacheType;Lorg/apache/cassandra/cache/AutoSavingCache$CacheSerializer;)V
astore 4
start local 4 4: invokestatic org.apache.cassandra.config.DatabaseDescriptor.getKeyCacheKeysToSave:()I
istore 5
start local 5 5: aload 4
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getKeyCacheSavePeriod:()I
iload 5
invokevirtual org.apache.cassandra.cache.AutoSavingCache.scheduleSaving:(II)V
6: aload 4
areturn
end local 5 end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/service/CacheService;
2 7 1 keyCacheInMemoryCapacity J
3 7 3 kc Lorg/apache/cassandra/cache/ICache<Lorg/apache/cassandra/cache/KeyCacheKey;Lorg/apache/cassandra/db/RowIndexEntry;>;
4 7 4 keyCache Lorg/apache/cassandra/cache/AutoSavingCache<Lorg/apache/cassandra/cache/KeyCacheKey;Lorg/apache/cassandra/db/RowIndexEntry;>;
5 7 5 keyCacheKeysToSave I
Signature: ()Lorg/apache/cassandra/cache/AutoSavingCache<Lorg/apache/cassandra/cache/KeyCacheKey;Lorg/apache/cassandra/db/RowIndexEntry;>;
private org.apache.cassandra.cache.AutoSavingCache<org.apache.cassandra.cache.RowCacheKey, org.apache.cassandra.cache.IRowCacheEntry> initRowCache();
descriptor: ()Lorg/apache/cassandra/cache/AutoSavingCache;
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=6, args_size=1
start local 0 0: getstatic org.apache.cassandra.service.CacheService.logger:Lorg/slf4j/Logger;
ldc "Initializing row cache with capacity of {} MBs"
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getRowCacheSizeInMB:()J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
invokeinterface org.slf4j.Logger.info:(Ljava/lang/String;Ljava/lang/Object;)V
1: invokestatic org.apache.cassandra.config.DatabaseDescriptor.getRowCacheSizeInMB:()J
lconst_0
lcmp
ifle 3
2: invokestatic org.apache.cassandra.config.DatabaseDescriptor.getRowCacheClassName:()Ljava/lang/String;
goto 4
StackMap locals:
StackMap stack:
3: ldc "org.apache.cassandra.cache.NopCacheProvider"
4: StackMap locals:
StackMap stack: java.lang.String
astore 2
start local 2 5: aload 2
invokestatic java.lang.Class.forName:(Ljava/lang/String;)Ljava/lang/Class;
6: astore 3
start local 3 7: aload 3
invokevirtual java.lang.Class.newInstance:()Ljava/lang/Object;
checkcast org.apache.cassandra.cache.CacheProvider
astore 1
end local 3 start local 1 8: goto 11
end local 1 9: StackMap locals: org.apache.cassandra.service.CacheService top java.lang.String
StackMap stack: java.lang.Exception
pop
10: new java.lang.RuntimeException
dup
new java.lang.StringBuilder
dup
ldc "Cannot find configured row cache provider class "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getRowCacheClassName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
start local 1 11: StackMap locals: org.apache.cassandra.service.CacheService org.apache.cassandra.cache.CacheProvider java.lang.String
StackMap stack:
aload 1
invokeinterface org.apache.cassandra.cache.CacheProvider.create:()Lorg/apache/cassandra/cache/ICache;
astore 3
start local 3 12: new org.apache.cassandra.cache.AutoSavingCache
dup
aload 3
getstatic org.apache.cassandra.service.CacheService$CacheType.ROW_CACHE:Lorg/apache/cassandra/service/CacheService$CacheType;
new org.apache.cassandra.service.CacheService$RowCacheSerializer
dup
invokespecial org.apache.cassandra.service.CacheService$RowCacheSerializer.<init>:()V
invokespecial org.apache.cassandra.cache.AutoSavingCache.<init>:(Lorg/apache/cassandra/cache/ICache;Lorg/apache/cassandra/service/CacheService$CacheType;Lorg/apache/cassandra/cache/AutoSavingCache$CacheSerializer;)V
astore 4
start local 4 13: invokestatic org.apache.cassandra.config.DatabaseDescriptor.getRowCacheKeysToSave:()I
istore 5
start local 5 14: aload 4
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getRowCacheSavePeriod:()I
iload 5
invokevirtual org.apache.cassandra.cache.AutoSavingCache.scheduleSaving:(II)V
15: aload 4
areturn
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lorg/apache/cassandra/service/CacheService;
8 9 1 cacheProvider Lorg/apache/cassandra/cache/CacheProvider<Lorg/apache/cassandra/cache/RowCacheKey;Lorg/apache/cassandra/cache/IRowCacheEntry;>;
11 16 1 cacheProvider Lorg/apache/cassandra/cache/CacheProvider<Lorg/apache/cassandra/cache/RowCacheKey;Lorg/apache/cassandra/cache/IRowCacheEntry;>;
5 16 2 cacheProviderClassName Ljava/lang/String;
7 8 3 cacheProviderClass Ljava/lang/Class<Lorg/apache/cassandra/cache/CacheProvider<Lorg/apache/cassandra/cache/RowCacheKey;Lorg/apache/cassandra/cache/IRowCacheEntry;>;>;
12 16 3 rc Lorg/apache/cassandra/cache/ICache<Lorg/apache/cassandra/cache/RowCacheKey;Lorg/apache/cassandra/cache/IRowCacheEntry;>;
13 16 4 rowCache Lorg/apache/cassandra/cache/AutoSavingCache<Lorg/apache/cassandra/cache/RowCacheKey;Lorg/apache/cassandra/cache/IRowCacheEntry;>;
14 16 5 rowCacheKeysToSave I
Exception table:
from to target type
5 8 9 Class java.lang.Exception
Signature: ()Lorg/apache/cassandra/cache/AutoSavingCache<Lorg/apache/cassandra/cache/RowCacheKey;Lorg/apache/cassandra/cache/IRowCacheEntry;>;
private org.apache.cassandra.cache.AutoSavingCache<org.apache.cassandra.cache.CounterCacheKey, org.apache.cassandra.db.ClockAndCount> initCounterCache();
descriptor: ()Lorg/apache/cassandra/cache/AutoSavingCache;
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=5, args_size=1
start local 0 0: getstatic org.apache.cassandra.service.CacheService.logger:Lorg/slf4j/Logger;
ldc "Initializing counter cache with capacity of {} MBs"
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getCounterCacheSizeInMB:()J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
invokeinterface org.slf4j.Logger.info:(Ljava/lang/String;Ljava/lang/Object;)V
1: invokestatic org.apache.cassandra.config.DatabaseDescriptor.getCounterCacheSizeInMB:()J
ldc 1024
lmul
ldc 1024
lmul
lstore 1
start local 1 2: new org.apache.cassandra.cache.AutoSavingCache
dup
lload 1
invokestatic org.apache.cassandra.cache.ConcurrentLinkedHashCache.create:(J)Lorg/apache/cassandra/cache/ConcurrentLinkedHashCache;
3: getstatic org.apache.cassandra.service.CacheService$CacheType.COUNTER_CACHE:Lorg/apache/cassandra/service/CacheService$CacheType;
4: new org.apache.cassandra.service.CacheService$CounterCacheSerializer
dup
invokespecial org.apache.cassandra.service.CacheService$CounterCacheSerializer.<init>:()V
5: invokespecial org.apache.cassandra.cache.AutoSavingCache.<init>:(Lorg/apache/cassandra/cache/ICache;Lorg/apache/cassandra/service/CacheService$CacheType;Lorg/apache/cassandra/cache/AutoSavingCache$CacheSerializer;)V
6: astore 3
start local 3 7: invokestatic org.apache.cassandra.config.DatabaseDescriptor.getCounterCacheKeysToSave:()I
istore 4
start local 4 8: getstatic org.apache.cassandra.service.CacheService.logger:Lorg/slf4j/Logger;
ldc "Scheduling counter cache save to every {} seconds (going to save {} keys)."
9: invokestatic org.apache.cassandra.config.DatabaseDescriptor.getCounterCacheSavePeriod:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
10: iload 4
ldc 2147483647
if_icmpne 11
ldc "all"
goto 12
StackMap locals: org.apache.cassandra.service.CacheService long org.apache.cassandra.cache.AutoSavingCache int
StackMap stack: org.slf4j.Logger java.lang.String java.lang.Integer
11: iload 4
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
12: StackMap locals: org.apache.cassandra.service.CacheService long org.apache.cassandra.cache.AutoSavingCache int
StackMap stack: org.slf4j.Logger java.lang.String java.lang.Integer java.io.Serializable
invokeinterface org.slf4j.Logger.info:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
13: aload 3
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getCounterCacheSavePeriod:()I
iload 4
invokevirtual org.apache.cassandra.cache.AutoSavingCache.scheduleSaving:(II)V
14: aload 3
areturn
end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lorg/apache/cassandra/service/CacheService;
2 15 1 capacity J
7 15 3 cache Lorg/apache/cassandra/cache/AutoSavingCache<Lorg/apache/cassandra/cache/CounterCacheKey;Lorg/apache/cassandra/db/ClockAndCount;>;
8 15 4 keysToSave I
Signature: ()Lorg/apache/cassandra/cache/AutoSavingCache<Lorg/apache/cassandra/cache/CounterCacheKey;Lorg/apache/cassandra/db/ClockAndCount;>;
public int getRowCacheSavePeriodInSeconds();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: invokestatic org.apache.cassandra.config.DatabaseDescriptor.getRowCacheSavePeriod:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/service/CacheService;
public void setRowCacheSavePeriodInSeconds(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: iload 1
ifge 2
1: new java.lang.RuntimeException
dup
ldc "RowCacheSavePeriodInSeconds must be non-negative."
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
iload 1
invokestatic org.apache.cassandra.config.DatabaseDescriptor.setRowCacheSavePeriod:(I)V
3: aload 0
getfield org.apache.cassandra.service.CacheService.rowCache:Lorg/apache/cassandra/cache/AutoSavingCache;
iload 1
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getRowCacheKeysToSave:()I
invokevirtual org.apache.cassandra.cache.AutoSavingCache.scheduleSaving:(II)V
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/cassandra/service/CacheService;
0 5 1 seconds I
MethodParameters:
Name Flags
seconds
public int getKeyCacheSavePeriodInSeconds();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: invokestatic org.apache.cassandra.config.DatabaseDescriptor.getKeyCacheSavePeriod:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/service/CacheService;
public void setKeyCacheSavePeriodInSeconds(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: iload 1
ifge 2
1: new java.lang.RuntimeException
dup
ldc "KeyCacheSavePeriodInSeconds must be non-negative."
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
iload 1
invokestatic org.apache.cassandra.config.DatabaseDescriptor.setKeyCacheSavePeriod:(I)V
3: aload 0
getfield org.apache.cassandra.service.CacheService.keyCache:Lorg/apache/cassandra/cache/AutoSavingCache;
iload 1
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getKeyCacheKeysToSave:()I
invokevirtual org.apache.cassandra.cache.AutoSavingCache.scheduleSaving:(II)V
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/cassandra/service/CacheService;
0 5 1 seconds I
MethodParameters:
Name Flags
seconds
public int getCounterCacheSavePeriodInSeconds();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: invokestatic org.apache.cassandra.config.DatabaseDescriptor.getCounterCacheSavePeriod:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/service/CacheService;
public void setCounterCacheSavePeriodInSeconds(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: iload 1
ifge 2
1: new java.lang.RuntimeException
dup
ldc "CounterCacheSavePeriodInSeconds must be non-negative."
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
iload 1
invokestatic org.apache.cassandra.config.DatabaseDescriptor.setCounterCacheSavePeriod:(I)V
3: aload 0
getfield org.apache.cassandra.service.CacheService.counterCache:Lorg/apache/cassandra/cache/AutoSavingCache;
iload 1
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getCounterCacheKeysToSave:()I
invokevirtual org.apache.cassandra.cache.AutoSavingCache.scheduleSaving:(II)V
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/cassandra/service/CacheService;
0 5 1 seconds I
MethodParameters:
Name Flags
seconds
public int getRowCacheKeysToSave();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: invokestatic org.apache.cassandra.config.DatabaseDescriptor.getRowCacheKeysToSave:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/service/CacheService;
public void setRowCacheKeysToSave(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: iload 1
ifge 2
1: new java.lang.RuntimeException
dup
ldc "RowCacheKeysToSave must be non-negative."
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
iload 1
invokestatic org.apache.cassandra.config.DatabaseDescriptor.setRowCacheKeysToSave:(I)V
3: aload 0
getfield org.apache.cassandra.service.CacheService.rowCache:Lorg/apache/cassandra/cache/AutoSavingCache;
aload 0
invokevirtual org.apache.cassandra.service.CacheService.getRowCacheSavePeriodInSeconds:()I
iload 1
invokevirtual org.apache.cassandra.cache.AutoSavingCache.scheduleSaving:(II)V
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/cassandra/service/CacheService;
0 5 1 count I
MethodParameters:
Name Flags
count
public int getKeyCacheKeysToSave();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: invokestatic org.apache.cassandra.config.DatabaseDescriptor.getKeyCacheKeysToSave:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/service/CacheService;
public void setKeyCacheKeysToSave(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: iload 1
ifge 2
1: new java.lang.RuntimeException
dup
ldc "KeyCacheKeysToSave must be non-negative."
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
iload 1
invokestatic org.apache.cassandra.config.DatabaseDescriptor.setKeyCacheKeysToSave:(I)V
3: aload 0
getfield org.apache.cassandra.service.CacheService.keyCache:Lorg/apache/cassandra/cache/AutoSavingCache;
aload 0
invokevirtual org.apache.cassandra.service.CacheService.getKeyCacheSavePeriodInSeconds:()I
iload 1
invokevirtual org.apache.cassandra.cache.AutoSavingCache.scheduleSaving:(II)V
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/cassandra/service/CacheService;
0 5 1 count I
MethodParameters:
Name Flags
count
public int getCounterCacheKeysToSave();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: invokestatic org.apache.cassandra.config.DatabaseDescriptor.getCounterCacheKeysToSave:()I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/service/CacheService;
public void setCounterCacheKeysToSave(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: iload 1
ifge 2
1: new java.lang.RuntimeException
dup
ldc "CounterCacheKeysToSave must be non-negative."
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
iload 1
invokestatic org.apache.cassandra.config.DatabaseDescriptor.setCounterCacheKeysToSave:(I)V
3: aload 0
getfield org.apache.cassandra.service.CacheService.counterCache:Lorg/apache/cassandra/cache/AutoSavingCache;
aload 0
invokevirtual org.apache.cassandra.service.CacheService.getCounterCacheSavePeriodInSeconds:()I
iload 1
invokevirtual org.apache.cassandra.cache.AutoSavingCache.scheduleSaving:(II)V
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/cassandra/service/CacheService;
0 5 1 count I
MethodParameters:
Name Flags
count
public void invalidateKeyCache();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.service.CacheService.keyCache:Lorg/apache/cassandra/cache/AutoSavingCache;
invokevirtual org.apache.cassandra.cache.AutoSavingCache.clear:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/service/CacheService;
public void invalidateKeyCacheForCf(org.apache.cassandra.utils.Pair<java.lang.String, java.lang.String>);
descriptor: (Lorg/apache/cassandra/utils/Pair;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.service.CacheService.keyCache:Lorg/apache/cassandra/cache/AutoSavingCache;
invokevirtual org.apache.cassandra.cache.AutoSavingCache.keyIterator:()Ljava/util/Iterator;
astore 2
start local 2 1: goto 5
2: StackMap locals: java.util.Iterator
StackMap stack:
aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.cache.KeyCacheKey
astore 3
start local 3 3: aload 3
getfield org.apache.cassandra.cache.KeyCacheKey.ksAndCFName:Lorg/apache/cassandra/utils/Pair;
aload 1
invokevirtual org.apache.cassandra.utils.Pair.equals:(Ljava/lang/Object;)Z
ifeq 5
4: aload 2
invokeinterface java.util.Iterator.remove:()V
end local 3 5: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/service/CacheService;
0 7 1 ksAndCFName Lorg/apache/cassandra/utils/Pair<Ljava/lang/String;Ljava/lang/String;>;
1 7 2 keyCacheIterator Ljava/util/Iterator<Lorg/apache/cassandra/cache/KeyCacheKey;>;
3 5 3 key Lorg/apache/cassandra/cache/KeyCacheKey;
Signature: (Lorg/apache/cassandra/utils/Pair<Ljava/lang/String;Ljava/lang/String;>;)V
MethodParameters:
Name Flags
ksAndCFName
public void invalidateRowCache();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.service.CacheService.rowCache:Lorg/apache/cassandra/cache/AutoSavingCache;
invokevirtual org.apache.cassandra.cache.AutoSavingCache.clear:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/service/CacheService;
public void invalidateRowCacheForCf(org.apache.cassandra.utils.Pair<java.lang.String, java.lang.String>);
descriptor: (Lorg/apache/cassandra/utils/Pair;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.service.CacheService.rowCache:Lorg/apache/cassandra/cache/AutoSavingCache;
invokevirtual org.apache.cassandra.cache.AutoSavingCache.keyIterator:()Ljava/util/Iterator;
astore 2
start local 2 1: goto 5
2: StackMap locals: java.util.Iterator
StackMap stack:
aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.cache.RowCacheKey
astore 3
start local 3 3: aload 3
getfield org.apache.cassandra.cache.RowCacheKey.ksAndCFName:Lorg/apache/cassandra/utils/Pair;
aload 1
invokevirtual org.apache.cassandra.utils.Pair.equals:(Ljava/lang/Object;)Z
ifeq 5
4: aload 2
invokeinterface java.util.Iterator.remove:()V
end local 3 5: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/service/CacheService;
0 7 1 ksAndCFName Lorg/apache/cassandra/utils/Pair<Ljava/lang/String;Ljava/lang/String;>;
1 7 2 rowCacheIterator Ljava/util/Iterator<Lorg/apache/cassandra/cache/RowCacheKey;>;
3 5 3 rowCacheKey Lorg/apache/cassandra/cache/RowCacheKey;
Signature: (Lorg/apache/cassandra/utils/Pair<Ljava/lang/String;Ljava/lang/String;>;)V
MethodParameters:
Name Flags
ksAndCFName
public void invalidateCounterCacheForCf(org.apache.cassandra.utils.Pair<java.lang.String, java.lang.String>);
descriptor: (Lorg/apache/cassandra/utils/Pair;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.service.CacheService.counterCache:Lorg/apache/cassandra/cache/AutoSavingCache;
invokevirtual org.apache.cassandra.cache.AutoSavingCache.keyIterator:()Ljava/util/Iterator;
astore 2
start local 2 1: goto 5
2: StackMap locals: java.util.Iterator
StackMap stack:
aload 2
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.cache.CounterCacheKey
astore 3
start local 3 3: aload 3
getfield org.apache.cassandra.cache.CounterCacheKey.ksAndCFName:Lorg/apache/cassandra/utils/Pair;
aload 1
invokevirtual org.apache.cassandra.utils.Pair.equals:(Ljava/lang/Object;)Z
ifeq 5
4: aload 2
invokeinterface java.util.Iterator.remove:()V
end local 3 5: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
6: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/service/CacheService;
0 7 1 ksAndCFName Lorg/apache/cassandra/utils/Pair<Ljava/lang/String;Ljava/lang/String;>;
1 7 2 counterCacheIterator Ljava/util/Iterator<Lorg/apache/cassandra/cache/CounterCacheKey;>;
3 5 3 counterCacheKey Lorg/apache/cassandra/cache/CounterCacheKey;
Signature: (Lorg/apache/cassandra/utils/Pair<Ljava/lang/String;Ljava/lang/String;>;)V
MethodParameters:
Name Flags
ksAndCFName
public void invalidateCounterCache();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.service.CacheService.counterCache:Lorg/apache/cassandra/cache/AutoSavingCache;
invokevirtual org.apache.cassandra.cache.AutoSavingCache.clear:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/service/CacheService;
public void setRowCacheCapacityInMB(long);
descriptor: (J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: lload 1
lconst_0
lcmp
ifge 2
1: new java.lang.RuntimeException
dup
ldc "capacity should not be negative."
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.service.CacheService.rowCache:Lorg/apache/cassandra/cache/AutoSavingCache;
lload 1
ldc 1024
lmul
ldc 1024
lmul
invokevirtual org.apache.cassandra.cache.AutoSavingCache.setCapacity:(J)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/cassandra/service/CacheService;
0 4 1 capacity J
MethodParameters:
Name Flags
capacity
public void setKeyCacheCapacityInMB(long);
descriptor: (J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: lload 1
lconst_0
lcmp
ifge 2
1: new java.lang.RuntimeException
dup
ldc "capacity should not be negative."
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.service.CacheService.keyCache:Lorg/apache/cassandra/cache/AutoSavingCache;
lload 1
ldc 1024
lmul
ldc 1024
lmul
invokevirtual org.apache.cassandra.cache.AutoSavingCache.setCapacity:(J)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/cassandra/service/CacheService;
0 4 1 capacity J
MethodParameters:
Name Flags
capacity
public void setCounterCacheCapacityInMB(long);
descriptor: (J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: lload 1
lconst_0
lcmp
ifge 2
1: new java.lang.RuntimeException
dup
ldc "capacity should not be negative."
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.service.CacheService.counterCache:Lorg/apache/cassandra/cache/AutoSavingCache;
lload 1
ldc 1024
lmul
ldc 1024
lmul
invokevirtual org.apache.cassandra.cache.AutoSavingCache.setCapacity:(J)V
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/cassandra/service/CacheService;
0 4 1 capacity J
MethodParameters:
Name Flags
capacity
public void saveCaches();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: new java.util.ArrayList
dup
iconst_3
invokespecial java.util.ArrayList.<init>:(I)V
astore 1
start local 1 1: getstatic org.apache.cassandra.service.CacheService.logger:Lorg/slf4j/Logger;
ldc "submitting cache saves"
invokeinterface org.slf4j.Logger.debug:(Ljava/lang/String;)V
2: aload 1
aload 0
getfield org.apache.cassandra.service.CacheService.keyCache:Lorg/apache/cassandra/cache/AutoSavingCache;
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getKeyCacheKeysToSave:()I
invokevirtual org.apache.cassandra.cache.AutoSavingCache.submitWrite:(I)Ljava/util/concurrent/Future;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
3: aload 1
aload 0
getfield org.apache.cassandra.service.CacheService.rowCache:Lorg/apache/cassandra/cache/AutoSavingCache;
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getRowCacheKeysToSave:()I
invokevirtual org.apache.cassandra.cache.AutoSavingCache.submitWrite:(I)Ljava/util/concurrent/Future;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
4: aload 1
aload 0
getfield org.apache.cassandra.service.CacheService.counterCache:Lorg/apache/cassandra/cache/AutoSavingCache;
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getCounterCacheKeysToSave:()I
invokevirtual org.apache.cassandra.cache.AutoSavingCache.submitWrite:(I)Ljava/util/concurrent/Future;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
5: aload 1
invokestatic org.apache.cassandra.utils.FBUtilities.waitOnFutures:(Ljava/lang/Iterable;)Ljava/util/List;
pop
6: getstatic org.apache.cassandra.service.CacheService.logger:Lorg/slf4j/Logger;
ldc "cache saves completed"
invokeinterface org.slf4j.Logger.debug:(Ljava/lang/String;)V
7: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/apache/cassandra/service/CacheService;
1 8 1 futures Ljava/util/List<Ljava/util/concurrent/Future<*>;>;
Exceptions:
throws java.util.concurrent.ExecutionException, java.lang.InterruptedException
}
SourceFile: "CacheService.java"
NestMembers:
org.apache.cassandra.service.CacheService$CacheType org.apache.cassandra.service.CacheService$CounterCacheSerializer org.apache.cassandra.service.CacheService$CounterCacheSerializer$1 org.apache.cassandra.service.CacheService$KeyCacheSerializer org.apache.cassandra.service.CacheService$RowCacheSerializer org.apache.cassandra.service.CacheService$RowCacheSerializer$1
InnerClasses:
public abstract CacheSerializer = org.apache.cassandra.cache.AutoSavingCache$CacheSerializer of org.apache.cassandra.cache.AutoSavingCache
public final CacheType = org.apache.cassandra.service.CacheService$CacheType of org.apache.cassandra.service.CacheService
public CounterCacheSerializer = org.apache.cassandra.service.CacheService$CounterCacheSerializer of org.apache.cassandra.service.CacheService
public KeyCacheSerializer = org.apache.cassandra.service.CacheService$KeyCacheSerializer of org.apache.cassandra.service.CacheService
public RowCacheSerializer = org.apache.cassandra.service.CacheService$RowCacheSerializer of org.apache.cassandra.service.CacheService