public class org.apache.cassandra.db.DiskBoundaryManager
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.db.DiskBoundaryManager
super_class: java.lang.Object
{
private static final org.slf4j.Logger logger;
descriptor: Lorg/slf4j/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private volatile org.apache.cassandra.db.DiskBoundaries diskBoundaries;
descriptor: Lorg/apache/cassandra/db/DiskBoundaries;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
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/db/DiskBoundaryManager;
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.db.DiskBoundaryManager.$assertionsDisabled:Z
3: ldc Lorg/apache/cassandra/db/DiskBoundaryManager;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic org.apache.cassandra.db.DiskBoundaryManager.logger:Lorg/slf4j/Logger;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/db/DiskBoundaryManager;
public org.apache.cassandra.db.DiskBoundaries getDiskBoundaries(org.apache.cassandra.db.ColumnFamilyStore);
descriptor: (Lorg/apache/cassandra/db/ColumnFamilyStore;)Lorg/apache/cassandra/db/DiskBoundaries;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual org.apache.cassandra.db.ColumnFamilyStore.getPartitioner:()Lorg/apache/cassandra/dht/IPartitioner;
invokeinterface org.apache.cassandra.dht.IPartitioner.splitter:()Ljava/util/Optional;
invokevirtual java.util.Optional.isPresent:()Z
ifne 2
1: new org.apache.cassandra.db.DiskBoundaries
dup
aload 1
invokevirtual org.apache.cassandra.db.ColumnFamilyStore.getDirectories:()Lorg/apache/cassandra/db/Directories;
invokevirtual org.apache.cassandra.db.Directories.getWriteableLocations:()[Lorg/apache/cassandra/db/Directories$DataDirectory;
invokestatic org.apache.cassandra.db.BlacklistedDirectories.getDirectoriesVersion:()I
invokespecial org.apache.cassandra.db.DiskBoundaries.<init>:([Lorg/apache/cassandra/db/Directories$DataDirectory;I)V
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.db.DiskBoundaryManager.diskBoundaries:Lorg/apache/cassandra/db/DiskBoundaries;
ifnull 3
aload 0
getfield org.apache.cassandra.db.DiskBoundaryManager.diskBoundaries:Lorg/apache/cassandra/db/DiskBoundaries;
invokevirtual org.apache.cassandra.db.DiskBoundaries.isOutOfDate:()Z
ifeq 13
3: StackMap locals:
StackMap stack:
aload 0
dup
astore 2
monitorenter
4: aload 0
getfield org.apache.cassandra.db.DiskBoundaryManager.diskBoundaries:Lorg/apache/cassandra/db/DiskBoundaries;
ifnull 5
aload 0
getfield org.apache.cassandra.db.DiskBoundaryManager.diskBoundaries:Lorg/apache/cassandra/db/DiskBoundaries;
invokevirtual org.apache.cassandra.db.DiskBoundaries.isOutOfDate:()Z
ifeq 9
5: StackMap locals: org.apache.cassandra.db.DiskBoundaryManager
StackMap stack:
getstatic org.apache.cassandra.db.DiskBoundaryManager.logger:Lorg/slf4j/Logger;
ldc "Refreshing disk boundary cache for {}.{}"
aload 1
getfield org.apache.cassandra.db.ColumnFamilyStore.keyspace:Lorg/apache/cassandra/db/Keyspace;
invokevirtual org.apache.cassandra.db.Keyspace.getName:()Ljava/lang/String;
aload 1
invokevirtual org.apache.cassandra.db.ColumnFamilyStore.getTableName:()Ljava/lang/String;
invokeinterface org.slf4j.Logger.debug:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
6: aload 0
getfield org.apache.cassandra.db.DiskBoundaryManager.diskBoundaries:Lorg/apache/cassandra/db/DiskBoundaries;
astore 3
start local 3 7: aload 0
aload 1
invokestatic org.apache.cassandra.db.DiskBoundaryManager.getDiskBoundaryValue:(Lorg/apache/cassandra/db/ColumnFamilyStore;)Lorg/apache/cassandra/db/DiskBoundaries;
putfield org.apache.cassandra.db.DiskBoundaryManager.diskBoundaries:Lorg/apache/cassandra/db/DiskBoundaries;
8: getstatic org.apache.cassandra.db.DiskBoundaryManager.logger:Lorg/slf4j/Logger;
ldc "Updating boundaries from {} to {} for {}.{}"
iconst_4
anewarray java.lang.Object
dup
iconst_0
aload 3
aastore
dup
iconst_1
aload 0
getfield org.apache.cassandra.db.DiskBoundaryManager.diskBoundaries:Lorg/apache/cassandra/db/DiskBoundaries;
aastore
dup
iconst_2
aload 1
getfield org.apache.cassandra.db.ColumnFamilyStore.keyspace:Lorg/apache/cassandra/db/Keyspace;
invokevirtual org.apache.cassandra.db.Keyspace.getName:()Ljava/lang/String;
aastore
dup
iconst_3
aload 1
invokevirtual org.apache.cassandra.db.ColumnFamilyStore.getTableName:()Ljava/lang/String;
aastore
invokeinterface org.slf4j.Logger.debug:(Ljava/lang/String;[Ljava/lang/Object;)V
end local 3 9: StackMap locals:
StackMap stack:
aload 2
monitorexit
10: goto 13
StackMap locals:
StackMap stack: java.lang.Throwable
11: aload 2
monitorexit
12: athrow
13: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.db.DiskBoundaryManager.diskBoundaries:Lorg/apache/cassandra/db/DiskBoundaries;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lorg/apache/cassandra/db/DiskBoundaryManager;
0 14 1 cfs Lorg/apache/cassandra/db/ColumnFamilyStore;
7 9 3 oldBoundaries Lorg/apache/cassandra/db/DiskBoundaries;
Exception table:
from to target type
4 10 11 any
11 12 11 any
MethodParameters:
Name Flags
cfs
public void invalidate();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.db.DiskBoundaryManager.diskBoundaries:Lorg/apache/cassandra/db/DiskBoundaries;
ifnull 2
1: aload 0
getfield org.apache.cassandra.db.DiskBoundaryManager.diskBoundaries:Lorg/apache/cassandra/db/DiskBoundaries;
invokevirtual org.apache.cassandra.db.DiskBoundaries.invalidate:()V
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/db/DiskBoundaryManager;
private static org.apache.cassandra.db.DiskBoundaries getDiskBoundaryValue(org.apache.cassandra.db.ColumnFamilyStore);
descriptor: (Lorg/apache/cassandra/db/ColumnFamilyStore;)Lorg/apache/cassandra/db/DiskBoundaries;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=7, locals=9, args_size=1
start local 0 0: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.service.StorageService.instance:Lorg/apache/cassandra/service/StorageService;
invokevirtual org.apache.cassandra.service.StorageService.getTokenMetadata:()Lorg/apache/cassandra/locator/TokenMetadata;
astore 4
start local 4 1: aload 4
invokevirtual org.apache.cassandra.locator.TokenMetadata.getRingVersion:()J
lstore 2
start local 2 2: getstatic org.apache.cassandra.service.StorageService.instance:Lorg/apache/cassandra/service/StorageService;
invokevirtual org.apache.cassandra.service.StorageService.isBootstrapMode:()Z
ifeq 7
3: invokestatic org.apache.cassandra.service.StorageService.isReplacingSameAddress:()Z
ifne 7
4: getstatic org.apache.cassandra.service.PendingRangeCalculatorService.instance:Lorg/apache/cassandra/service/PendingRangeCalculatorService;
invokevirtual org.apache.cassandra.service.PendingRangeCalculatorService.blockUntilFinished:()V
5: aload 4
aload 0
getfield org.apache.cassandra.db.ColumnFamilyStore.keyspace:Lorg/apache/cassandra/db/Keyspace;
invokevirtual org.apache.cassandra.db.Keyspace.getName:()Ljava/lang/String;
invokestatic org.apache.cassandra.utils.FBUtilities.getBroadcastAddress:()Ljava/net/InetAddress;
invokevirtual org.apache.cassandra.locator.TokenMetadata.getPendingRanges:(Ljava/lang/String;Ljava/net/InetAddress;)Ljava/util/List;
astore 1
start local 1 6: goto 8
end local 1 7: StackMap locals: org.apache.cassandra.db.ColumnFamilyStore top long org.apache.cassandra.locator.TokenMetadata
StackMap stack:
aload 0
getfield org.apache.cassandra.db.ColumnFamilyStore.keyspace:Lorg/apache/cassandra/db/Keyspace;
invokevirtual org.apache.cassandra.db.Keyspace.getReplicationStrategy:()Lorg/apache/cassandra/locator/AbstractReplicationStrategy;
aload 4
invokevirtual org.apache.cassandra.locator.TokenMetadata.cloneAfterAllSettled:()Lorg/apache/cassandra/locator/TokenMetadata;
invokevirtual org.apache.cassandra.locator.AbstractReplicationStrategy.getAddressRanges:(Lorg/apache/cassandra/locator/TokenMetadata;)Lcom/google/common/collect/Multimap;
invokestatic org.apache.cassandra.utils.FBUtilities.getBroadcastAddress:()Ljava/net/InetAddress;
invokeinterface com.google.common.collect.Multimap.get:(Ljava/lang/Object;)Ljava/util/Collection;
astore 1
start local 1 8: StackMap locals: org.apache.cassandra.db.ColumnFamilyStore java.util.Collection long org.apache.cassandra.locator.TokenMetadata
StackMap stack:
getstatic org.apache.cassandra.db.DiskBoundaryManager.logger:Lorg/slf4j/Logger;
ldc "Got local ranges {} (ringVersion = {})"
aload 1
lload 2
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
invokeinterface org.slf4j.Logger.debug:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
9: lload 2
aload 4
invokevirtual org.apache.cassandra.locator.TokenMetadata.getRingVersion:()J
lcmp
ifne 0
10: StackMap locals:
StackMap stack:
invokestatic org.apache.cassandra.db.BlacklistedDirectories.getDirectoriesVersion:()I
istore 5
start local 5 11: aload 0
invokevirtual org.apache.cassandra.db.ColumnFamilyStore.getDirectories:()Lorg/apache/cassandra/db/Directories;
invokevirtual org.apache.cassandra.db.Directories.getWriteableLocations:()[Lorg/apache/cassandra/db/Directories$DataDirectory;
astore 6
start local 6 12: iload 5
invokestatic org.apache.cassandra.db.BlacklistedDirectories.getDirectoriesVersion:()I
if_icmpne 10
13: aload 1
ifnull 14
aload 1
invokeinterface java.util.Collection.isEmpty:()Z
ifeq 15
14: StackMap locals: int org.apache.cassandra.db.Directories$DataDirectory[]
StackMap stack:
new org.apache.cassandra.db.DiskBoundaries
dup
aload 6
aconst_null
lload 2
iload 5
invokespecial org.apache.cassandra.db.DiskBoundaries.<init>:([Lorg/apache/cassandra/db/Directories$DataDirectory;Ljava/util/List;JI)V
areturn
15: StackMap locals:
StackMap stack:
aload 1
invokestatic org.apache.cassandra.dht.Range.sort:(Ljava/util/Collection;)Ljava/util/List;
astore 7
start local 7 16: aload 7
aload 0
invokevirtual org.apache.cassandra.db.ColumnFamilyStore.getPartitioner:()Lorg/apache/cassandra/dht/IPartitioner;
aload 6
invokestatic org.apache.cassandra.db.DiskBoundaryManager.getDiskBoundaries:(Ljava/util/List;Lorg/apache/cassandra/dht/IPartitioner;[Lorg/apache/cassandra/db/Directories$DataDirectory;)Ljava/util/List;
astore 8
start local 8 17: new org.apache.cassandra.db.DiskBoundaries
dup
aload 6
aload 8
lload 2
iload 5
invokespecial org.apache.cassandra.db.DiskBoundaries.<init>:([Lorg/apache/cassandra/db/Directories$DataDirectory;Ljava/util/List;JI)V
areturn
end local 8 end local 7 end local 6 end local 5 end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 cfs Lorg/apache/cassandra/db/ColumnFamilyStore;
6 7 1 localRanges Ljava/util/Collection<Lorg/apache/cassandra/dht/Range<Lorg/apache/cassandra/dht/Token;>;>;
8 18 1 localRanges Ljava/util/Collection<Lorg/apache/cassandra/dht/Range<Lorg/apache/cassandra/dht/Token;>;>;
2 18 2 ringVersion J
1 18 4 tmd Lorg/apache/cassandra/locator/TokenMetadata;
11 18 5 directoriesVersion I
12 18 6 dirs [Lorg/apache/cassandra/db/Directories$DataDirectory;
16 18 7 sortedLocalRanges Ljava/util/List<Lorg/apache/cassandra/dht/Range<Lorg/apache/cassandra/dht/Token;>;>;
17 18 8 positions Ljava/util/List<Lorg/apache/cassandra/db/PartitionPosition;>;
MethodParameters:
Name Flags
cfs
private static java.util.List<org.apache.cassandra.db.PartitionPosition> getDiskBoundaries(java.util.List<org.apache.cassandra.dht.Range<org.apache.cassandra.dht.Token>>, org.apache.cassandra.dht.IPartitioner, org.apache.cassandra.db.Directories$DataDirectory[]);
descriptor: (Ljava/util/List;Lorg/apache/cassandra/dht/IPartitioner;[Lorg/apache/cassandra/db/Directories$DataDirectory;)Ljava/util/List;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=8, args_size=3
start local 0 start local 1 start local 2 0: getstatic org.apache.cassandra.db.DiskBoundaryManager.$assertionsDisabled:Z
ifne 1
aload 1
invokeinterface org.apache.cassandra.dht.IPartitioner.splitter:()Ljava/util/Optional;
invokevirtual java.util.Optional.isPresent:()Z
ifne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 1
invokeinterface org.apache.cassandra.dht.IPartitioner.splitter:()Ljava/util/Optional;
invokevirtual java.util.Optional.get:()Ljava/lang/Object;
checkcast org.apache.cassandra.dht.Splitter
astore 3
start local 3 2: invokestatic org.apache.cassandra.config.DatabaseDescriptor.getNumTokens:()I
iconst_1
if_icmple 3
iconst_1
goto 4
StackMap locals: org.apache.cassandra.dht.Splitter
StackMap stack:
3: iconst_0
StackMap locals:
StackMap stack: int
4: istore 4
start local 4 5: aload 3
aload 2
arraylength
aload 0
iload 4
invokevirtual org.apache.cassandra.dht.Splitter.splitOwnedRanges:(ILjava/util/List;Z)Ljava/util/List;
astore 5
start local 5 6: iload 4
ifeq 8
aload 5
invokeinterface java.util.List.size:()I
aload 2
arraylength
if_icmpge 8
7: aload 3
aload 2
arraylength
aload 0
iconst_0
invokevirtual org.apache.cassandra.dht.Splitter.splitOwnedRanges:(ILjava/util/List;Z)Ljava/util/List;
astore 5
8: StackMap locals: int java.util.List
StackMap stack:
new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 6
start local 6 9: iconst_0
istore 7
start local 7 10: goto 13
11: StackMap locals: java.util.List int
StackMap stack:
aload 6
aload 5
iload 7
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.apache.cassandra.dht.Token
invokevirtual org.apache.cassandra.dht.Token.maxKeyBound:()Lorg/apache/cassandra/dht/Token$KeyBound;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
12: iinc 7 1
StackMap locals:
StackMap stack:
13: iload 7
aload 5
invokeinterface java.util.List.size:()I
iconst_1
isub
if_icmplt 11
end local 7 14: aload 6
aload 1
invokeinterface org.apache.cassandra.dht.IPartitioner.getMaximumToken:()Lorg/apache/cassandra/dht/Token;
invokevirtual org.apache.cassandra.dht.Token.maxKeyBound:()Lorg/apache/cassandra/dht/Token$KeyBound;
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
15: aload 6
areturn
end local 6 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 sortedLocalRanges Ljava/util/List<Lorg/apache/cassandra/dht/Range<Lorg/apache/cassandra/dht/Token;>;>;
0 16 1 partitioner Lorg/apache/cassandra/dht/IPartitioner;
0 16 2 dataDirectories [Lorg/apache/cassandra/db/Directories$DataDirectory;
2 16 3 splitter Lorg/apache/cassandra/dht/Splitter;
5 16 4 dontSplitRanges Z
6 16 5 boundaries Ljava/util/List<Lorg/apache/cassandra/dht/Token;>;
9 16 6 diskBoundaries Ljava/util/List<Lorg/apache/cassandra/db/PartitionPosition;>;
10 14 7 i I
Signature: (Ljava/util/List<Lorg/apache/cassandra/dht/Range<Lorg/apache/cassandra/dht/Token;>;>;Lorg/apache/cassandra/dht/IPartitioner;[Lorg/apache/cassandra/db/Directories$DataDirectory;)Ljava/util/List<Lorg/apache/cassandra/db/PartitionPosition;>;
MethodParameters:
Name Flags
sortedLocalRanges
partitioner
dataDirectories
}
SourceFile: "DiskBoundaryManager.java"
InnerClasses:
public DataDirectory = org.apache.cassandra.db.Directories$DataDirectory of org.apache.cassandra.db.Directories
public KeyBound = org.apache.cassandra.dht.Token$KeyBound of org.apache.cassandra.dht.Token