public class org.apache.cassandra.locator.TokenMetadata
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.locator.TokenMetadata
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 final org.apache.cassandra.utils.BiMultiValMap<org.apache.cassandra.dht.Token, java.net.InetAddress> tokenToEndpointMap;
descriptor: Lorg/apache/cassandra/utils/BiMultiValMap;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lorg/apache/cassandra/utils/BiMultiValMap<Lorg/apache/cassandra/dht/Token;Ljava/net/InetAddress;>;
private final com.google.common.collect.BiMap<java.net.InetAddress, java.util.UUID> endpointToHostIdMap;
descriptor: Lcom/google/common/collect/BiMap;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lcom/google/common/collect/BiMap<Ljava/net/InetAddress;Ljava/util/UUID;>;
private final org.apache.cassandra.utils.BiMultiValMap<org.apache.cassandra.dht.Token, java.net.InetAddress> bootstrapTokens;
descriptor: Lorg/apache/cassandra/utils/BiMultiValMap;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lorg/apache/cassandra/utils/BiMultiValMap<Lorg/apache/cassandra/dht/Token;Ljava/net/InetAddress;>;
private final com.google.common.collect.BiMap<java.net.InetAddress, java.net.InetAddress> replacementToOriginal;
descriptor: Lcom/google/common/collect/BiMap;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lcom/google/common/collect/BiMap<Ljava/net/InetAddress;Ljava/net/InetAddress;>;
private final java.util.Set<java.net.InetAddress> leavingEndpoints;
descriptor: Ljava/util/Set;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Set<Ljava/net/InetAddress;>;
private final java.util.concurrent.ConcurrentMap<java.lang.String, org.apache.cassandra.locator.PendingRangeMaps> pendingRanges;
descriptor: Ljava/util/concurrent/ConcurrentMap;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/concurrent/ConcurrentMap<Ljava/lang/String;Lorg/apache/cassandra/locator/PendingRangeMaps;>;
private final java.util.Set<org.apache.cassandra.utils.Pair<org.apache.cassandra.dht.Token, java.net.InetAddress>> movingEndpoints;
descriptor: Ljava/util/Set;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Set<Lorg/apache/cassandra/utils/Pair<Lorg/apache/cassandra/dht/Token;Ljava/net/InetAddress;>;>;
private final java.util.concurrent.locks.ReadWriteLock lock;
descriptor: Ljava/util/concurrent/locks/ReadWriteLock;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private volatile java.util.ArrayList<org.apache.cassandra.dht.Token> sortedTokens;
descriptor: Ljava/util/ArrayList;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
Signature: Ljava/util/ArrayList<Lorg/apache/cassandra/dht/Token;>;
private volatile org.apache.cassandra.locator.TokenMetadata$Topology topology;
descriptor: Lorg/apache/cassandra/locator/TokenMetadata$Topology;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
public final org.apache.cassandra.dht.IPartitioner partitioner;
descriptor: Lorg/apache/cassandra/dht/IPartitioner;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
private static final java.util.Comparator<java.net.InetAddress> inetaddressCmp;
descriptor: Ljava/util/Comparator;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Comparator<Ljava/net/InetAddress;>;
private volatile long ringVersion;
descriptor: J
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private final java.util.concurrent.atomic.AtomicReference<org.apache.cassandra.locator.TokenMetadata> cachedTokenMap;
descriptor: Ljava/util/concurrent/atomic/AtomicReference;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/concurrent/atomic/AtomicReference<Lorg/apache/cassandra/locator/TokenMetadata;>;
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=2, locals=0, args_size=0
0: ldc Lorg/apache/cassandra/locator/TokenMetadata;
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.locator.TokenMetadata.$assertionsDisabled:Z
3: ldc Lorg/apache/cassandra/locator/TokenMetadata;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic org.apache.cassandra.locator.TokenMetadata.logger:Lorg/slf4j/Logger;
4: new org.apache.cassandra.locator.TokenMetadata$1
dup
invokespecial org.apache.cassandra.locator.TokenMetadata$1.<init>:()V
putstatic org.apache.cassandra.locator.TokenMetadata.inetaddressCmp:Ljava/util/Comparator;
5: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
aconst_null
getstatic org.apache.cassandra.locator.TokenMetadata.inetaddressCmp:Ljava/util/Comparator;
invokestatic org.apache.cassandra.utils.SortedBiMultiValMap.create:(Ljava/util/Comparator;Ljava/util/Comparator;)Lorg/apache/cassandra/utils/SortedBiMultiValMap;
1: invokestatic com.google.common.collect.HashBiMap.create:()Lcom/google/common/collect/HashBiMap;
2: invokestatic org.apache.cassandra.locator.TokenMetadata$Topology.empty:()Lorg/apache/cassandra/locator/TokenMetadata$Topology;
3: invokestatic org.apache.cassandra.config.DatabaseDescriptor.getPartitioner:()Lorg/apache/cassandra/dht/IPartitioner;
invokespecial org.apache.cassandra.locator.TokenMetadata.<init>:(Lorg/apache/cassandra/utils/BiMultiValMap;Lcom/google/common/collect/BiMap;Lorg/apache/cassandra/locator/TokenMetadata$Topology;Lorg/apache/cassandra/dht/IPartitioner;)V
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/cassandra/locator/TokenMetadata;
private void <init>(org.apache.cassandra.utils.BiMultiValMap<org.apache.cassandra.dht.Token, java.net.InetAddress>, com.google.common.collect.BiMap<java.net.InetAddress, java.util.UUID>, org.apache.cassandra.locator.TokenMetadata$Topology, org.apache.cassandra.dht.IPartitioner);
descriptor: (Lorg/apache/cassandra/utils/BiMultiValMap;Lcom/google/common/collect/BiMap;Lorg/apache/cassandra/locator/TokenMetadata$Topology;Lorg/apache/cassandra/dht/IPartitioner;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new org.apache.cassandra.utils.BiMultiValMap
dup
invokespecial org.apache.cassandra.utils.BiMultiValMap.<init>:()V
putfield org.apache.cassandra.locator.TokenMetadata.bootstrapTokens:Lorg/apache/cassandra/utils/BiMultiValMap;
2: aload 0
invokestatic com.google.common.collect.HashBiMap.create:()Lcom/google/common/collect/HashBiMap;
putfield org.apache.cassandra.locator.TokenMetadata.replacementToOriginal:Lcom/google/common/collect/BiMap;
3: aload 0
new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
putfield org.apache.cassandra.locator.TokenMetadata.leavingEndpoints:Ljava/util/Set;
4: aload 0
new java.util.concurrent.ConcurrentHashMap
dup
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:()V
putfield org.apache.cassandra.locator.TokenMetadata.pendingRanges:Ljava/util/concurrent/ConcurrentMap;
5: aload 0
new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
putfield org.apache.cassandra.locator.TokenMetadata.movingEndpoints:Ljava/util/Set;
6: aload 0
new java.util.concurrent.locks.ReentrantReadWriteLock
dup
iconst_1
invokespecial java.util.concurrent.locks.ReentrantReadWriteLock.<init>:(Z)V
putfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
7: aload 0
lconst_0
putfield org.apache.cassandra.locator.TokenMetadata.ringVersion:J
8: aload 0
new java.util.concurrent.atomic.AtomicReference
dup
invokespecial java.util.concurrent.atomic.AtomicReference.<init>:()V
putfield org.apache.cassandra.locator.TokenMetadata.cachedTokenMap:Ljava/util/concurrent/atomic/AtomicReference;
9: aload 0
aload 1
putfield org.apache.cassandra.locator.TokenMetadata.tokenToEndpointMap:Lorg/apache/cassandra/utils/BiMultiValMap;
10: aload 0
aload 3
putfield org.apache.cassandra.locator.TokenMetadata.topology:Lorg/apache/cassandra/locator/TokenMetadata$Topology;
11: aload 0
aload 4
putfield org.apache.cassandra.locator.TokenMetadata.partitioner:Lorg/apache/cassandra/dht/IPartitioner;
12: aload 0
aload 2
putfield org.apache.cassandra.locator.TokenMetadata.endpointToHostIdMap:Lcom/google/common/collect/BiMap;
13: aload 0
aload 0
invokevirtual org.apache.cassandra.locator.TokenMetadata.sortTokens:()Ljava/util/ArrayList;
putfield org.apache.cassandra.locator.TokenMetadata.sortedTokens:Ljava/util/ArrayList;
14: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lorg/apache/cassandra/locator/TokenMetadata;
0 15 1 tokenToEndpointMap Lorg/apache/cassandra/utils/BiMultiValMap<Lorg/apache/cassandra/dht/Token;Ljava/net/InetAddress;>;
0 15 2 endpointsMap Lcom/google/common/collect/BiMap<Ljava/net/InetAddress;Ljava/util/UUID;>;
0 15 3 topology Lorg/apache/cassandra/locator/TokenMetadata$Topology;
0 15 4 partitioner Lorg/apache/cassandra/dht/IPartitioner;
Signature: (Lorg/apache/cassandra/utils/BiMultiValMap<Lorg/apache/cassandra/dht/Token;Ljava/net/InetAddress;>;Lcom/google/common/collect/BiMap<Ljava/net/InetAddress;Ljava/util/UUID;>;Lorg/apache/cassandra/locator/TokenMetadata$Topology;Lorg/apache/cassandra/dht/IPartitioner;)V
MethodParameters:
Name Flags
tokenToEndpointMap
endpointsMap
topology
partitioner
public org.apache.cassandra.locator.TokenMetadata cloneWithNewPartitioner(org.apache.cassandra.dht.IPartitioner);
descriptor: (Lorg/apache/cassandra/dht/IPartitioner;)Lorg/apache/cassandra/locator/TokenMetadata;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=2, args_size=2
start local 0 start local 1 0: new org.apache.cassandra.locator.TokenMetadata
dup
aload 0
getfield org.apache.cassandra.locator.TokenMetadata.tokenToEndpointMap:Lorg/apache/cassandra/utils/BiMultiValMap;
aload 0
getfield org.apache.cassandra.locator.TokenMetadata.endpointToHostIdMap:Lcom/google/common/collect/BiMap;
aload 0
getfield org.apache.cassandra.locator.TokenMetadata.topology:Lorg/apache/cassandra/locator/TokenMetadata$Topology;
aload 1
invokespecial org.apache.cassandra.locator.TokenMetadata.<init>:(Lorg/apache/cassandra/utils/BiMultiValMap;Lcom/google/common/collect/BiMap;Lorg/apache/cassandra/locator/TokenMetadata$Topology;Lorg/apache/cassandra/dht/IPartitioner;)V
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/locator/TokenMetadata;
0 1 1 newPartitioner Lorg/apache/cassandra/dht/IPartitioner;
RuntimeInvisibleAnnotations:
com.google.common.annotations.VisibleForTesting()
RuntimeInvisibleTypeAnnotations:
METHOD_RETURN
com.google.common.annotations.VisibleForTesting()
MethodParameters:
Name Flags
newPartitioner
private java.util.ArrayList<org.apache.cassandra.dht.Token> sortTokens();
descriptor: ()Ljava/util/ArrayList;
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.util.ArrayList
dup
aload 0
getfield org.apache.cassandra.locator.TokenMetadata.tokenToEndpointMap:Lorg/apache/cassandra/utils/BiMultiValMap;
invokevirtual org.apache.cassandra.utils.BiMultiValMap.keySet:()Ljava/util/Set;
invokespecial java.util.ArrayList.<init>:(Ljava/util/Collection;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/locator/TokenMetadata;
Signature: ()Ljava/util/ArrayList<Lorg/apache/cassandra/dht/Token;>;
public int pendingRangeChanges(java.net.InetAddress);
descriptor: (Ljava/net/InetAddress;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=9, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: aload 0
aload 0
aload 1
invokevirtual org.apache.cassandra.locator.TokenMetadata.getTokens:(Ljava/net/InetAddress;)Ljava/util/Collection;
invokevirtual org.apache.cassandra.locator.TokenMetadata.getPrimaryRangesFor:(Ljava/util/Collection;)Ljava/util/Collection;
astore 3
start local 3 2: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.lock:()V
3: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.bootstrapTokens:Lorg/apache/cassandra/utils/BiMultiValMap;
invokevirtual org.apache.cassandra.utils.BiMultiValMap.keySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 5
goto 10
StackMap locals: org.apache.cassandra.locator.TokenMetadata java.net.InetAddress int java.util.Collection top java.util.Iterator
StackMap stack:
4: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.dht.Token
astore 4
start local 4 5: aload 3
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 7
goto 9
StackMap locals: org.apache.cassandra.locator.TokenMetadata java.net.InetAddress int java.util.Collection org.apache.cassandra.dht.Token java.util.Iterator top java.util.Iterator
StackMap stack:
6: aload 7
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.dht.Range
astore 6
start local 6 7: aload 6
aload 4
invokevirtual org.apache.cassandra.dht.Range.contains:(Lorg/apache/cassandra/dht/RingPosition;)Z
ifeq 9
8: iinc 2 1
end local 6 9: StackMap locals:
StackMap stack:
aload 7
invokeinterface java.util.Iterator.hasNext:()Z
ifne 6
end local 4 10: StackMap locals: org.apache.cassandra.locator.TokenMetadata java.net.InetAddress int java.util.Collection top java.util.Iterator
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
11: goto 15
12: StackMap locals: org.apache.cassandra.locator.TokenMetadata java.net.InetAddress int java.util.Collection
StackMap stack: java.lang.Throwable
astore 8
13: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
14: aload 8
athrow
15: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
16: iload 2
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lorg/apache/cassandra/locator/TokenMetadata;
0 17 1 source Ljava/net/InetAddress;
1 17 2 n I
2 17 3 sourceRanges Ljava/util/Collection<Lorg/apache/cassandra/dht/Range<Lorg/apache/cassandra/dht/Token;>;>;
5 10 4 token Lorg/apache/cassandra/dht/Token;
7 9 6 range Lorg/apache/cassandra/dht/Range<Lorg/apache/cassandra/dht/Token;>;
Exception table:
from to target type
3 12 12 any
MethodParameters:
Name Flags
source
public void updateNormalToken(org.apache.cassandra.dht.Token, java.net.InetAddress);
descriptor: (Lorg/apache/cassandra/dht/Token;Ljava/net/InetAddress;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokestatic java.util.Collections.singleton:(Ljava/lang/Object;)Ljava/util/Set;
aload 2
invokevirtual org.apache.cassandra.locator.TokenMetadata.updateNormalTokens:(Ljava/util/Collection;Ljava/net/InetAddress;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/locator/TokenMetadata;
0 2 1 token Lorg/apache/cassandra/dht/Token;
0 2 2 endpoint Ljava/net/InetAddress;
MethodParameters:
Name Flags
token
endpoint
public void updateNormalTokens(java.util.Collection<org.apache.cassandra.dht.Token>, java.net.InetAddress);
descriptor: (Ljava/util/Collection;Ljava/net/InetAddress;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=3
start local 0 start local 1 start local 2 0: invokestatic com.google.common.collect.HashMultimap.create:()Lcom/google/common/collect/HashMultimap;
astore 3
start local 3 1: aload 1
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 5
goto 4
StackMap locals: org.apache.cassandra.locator.TokenMetadata java.util.Collection java.net.InetAddress com.google.common.collect.Multimap top java.util.Iterator
StackMap stack:
2: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.dht.Token
astore 4
start local 4 3: aload 3
aload 2
aload 4
invokeinterface com.google.common.collect.Multimap.put:(Ljava/lang/Object;Ljava/lang/Object;)Z
pop
end local 4 4: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
5: aload 0
aload 3
invokevirtual org.apache.cassandra.locator.TokenMetadata.updateNormalTokens:(Lcom/google/common/collect/Multimap;)V
6: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/locator/TokenMetadata;
0 7 1 tokens Ljava/util/Collection<Lorg/apache/cassandra/dht/Token;>;
0 7 2 endpoint Ljava/net/InetAddress;
1 7 3 endpointTokens Lcom/google/common/collect/Multimap<Ljava/net/InetAddress;Lorg/apache/cassandra/dht/Token;>;
3 4 4 token Lorg/apache/cassandra/dht/Token;
Signature: (Ljava/util/Collection<Lorg/apache/cassandra/dht/Token;>;Ljava/net/InetAddress;)V
MethodParameters:
Name Flags
tokens
endpoint
public void updateNormalTokens(com.google.common.collect.Multimap<java.net.InetAddress, org.apache.cassandra.dht.Token>);
descriptor: (Lcom/google/common/collect/Multimap;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=11, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface com.google.common.collect.Multimap.isEmpty:()Z
ifeq 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.writeLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.lock:()V
3: iconst_0
istore 2
start local 2 4: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.topology:Lorg/apache/cassandra/locator/TokenMetadata$Topology;
invokevirtual org.apache.cassandra.locator.TokenMetadata$Topology.unbuild:()Lorg/apache/cassandra/locator/TokenMetadata$Topology$Builder;
astore 3
start local 3 5: aload 1
invokeinterface com.google.common.collect.Multimap.keySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 5
goto 24
StackMap locals: org.apache.cassandra.locator.TokenMetadata com.google.common.collect.Multimap int org.apache.cassandra.locator.TokenMetadata$Topology$Builder top java.util.Iterator
StackMap stack:
6: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.net.InetAddress
astore 4
start local 4 7: aload 1
aload 4
invokeinterface com.google.common.collect.Multimap.get:(Ljava/lang/Object;)Ljava/util/Collection;
astore 6
start local 6 8: getstatic org.apache.cassandra.locator.TokenMetadata.$assertionsDisabled:Z
ifne 10
aload 6
ifnull 9
aload 6
invokeinterface java.util.Collection.isEmpty:()Z
ifeq 10
StackMap locals: org.apache.cassandra.locator.TokenMetadata com.google.common.collect.Multimap int org.apache.cassandra.locator.TokenMetadata$Topology$Builder java.net.InetAddress java.util.Iterator java.util.Collection
StackMap stack:
9: new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
10: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.locator.TokenMetadata.bootstrapTokens:Lorg/apache/cassandra/utils/BiMultiValMap;
aload 4
invokevirtual org.apache.cassandra.utils.BiMultiValMap.removeValue:(Ljava/lang/Object;)Ljava/util/Collection;
pop
11: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.tokenToEndpointMap:Lorg/apache/cassandra/utils/BiMultiValMap;
aload 4
invokevirtual org.apache.cassandra.utils.BiMultiValMap.removeValue:(Ljava/lang/Object;)Ljava/util/Collection;
pop
12: aload 3
aload 4
invokevirtual org.apache.cassandra.locator.TokenMetadata$Topology$Builder.addEndpoint:(Ljava/net/InetAddress;)Lorg/apache/cassandra/locator/TokenMetadata$Topology$Builder;
pop
13: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.leavingEndpoints:Ljava/util/Set;
aload 4
invokeinterface java.util.Set.remove:(Ljava/lang/Object;)Z
pop
14: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.replacementToOriginal:Lcom/google/common/collect/BiMap;
aload 4
invokeinterface com.google.common.collect.BiMap.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
15: aload 0
aload 4
invokevirtual org.apache.cassandra.locator.TokenMetadata.removeFromMoving:(Ljava/net/InetAddress;)V
16: aload 6
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 8
goto 23
StackMap locals: org.apache.cassandra.locator.TokenMetadata com.google.common.collect.Multimap int org.apache.cassandra.locator.TokenMetadata$Topology$Builder java.net.InetAddress java.util.Iterator java.util.Collection top java.util.Iterator
StackMap stack:
17: aload 8
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.dht.Token
astore 7
start local 7 18: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.tokenToEndpointMap:Lorg/apache/cassandra/utils/BiMultiValMap;
aload 7
aload 4
invokevirtual org.apache.cassandra.utils.BiMultiValMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.net.InetAddress
astore 9
start local 9 19: aload 4
aload 9
invokevirtual java.net.InetAddress.equals:(Ljava/lang/Object;)Z
ifne 23
20: aload 9
ifnull 22
21: getstatic org.apache.cassandra.locator.TokenMetadata.logger:Lorg/slf4j/Logger;
ldc "Token {} changing ownership from {} to {}"
iconst_3
anewarray java.lang.Object
dup
iconst_0
aload 7
aastore
dup
iconst_1
aload 9
aastore
dup
iconst_2
aload 4
aastore
invokeinterface org.slf4j.Logger.warn:(Ljava/lang/String;[Ljava/lang/Object;)V
22: StackMap locals: org.apache.cassandra.locator.TokenMetadata com.google.common.collect.Multimap int org.apache.cassandra.locator.TokenMetadata$Topology$Builder java.net.InetAddress java.util.Iterator java.util.Collection org.apache.cassandra.dht.Token java.util.Iterator java.net.InetAddress
StackMap stack:
iconst_1
istore 2
end local 9 end local 7 23: StackMap locals: org.apache.cassandra.locator.TokenMetadata com.google.common.collect.Multimap int org.apache.cassandra.locator.TokenMetadata$Topology$Builder java.net.InetAddress java.util.Iterator java.util.Collection top java.util.Iterator
StackMap stack:
aload 8
invokeinterface java.util.Iterator.hasNext:()Z
ifne 17
end local 6 end local 4 24: StackMap locals: org.apache.cassandra.locator.TokenMetadata com.google.common.collect.Multimap int org.apache.cassandra.locator.TokenMetadata$Topology$Builder top java.util.Iterator
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 6
25: aload 0
aload 3
invokevirtual org.apache.cassandra.locator.TokenMetadata$Topology$Builder.build:()Lorg/apache/cassandra/locator/TokenMetadata$Topology;
putfield org.apache.cassandra.locator.TokenMetadata.topology:Lorg/apache/cassandra/locator/TokenMetadata$Topology;
26: iload 2
ifeq 32
27: aload 0
aload 0
invokevirtual org.apache.cassandra.locator.TokenMetadata.sortTokens:()Ljava/util/ArrayList;
putfield org.apache.cassandra.locator.TokenMetadata.sortedTokens:Ljava/util/ArrayList;
end local 3 end local 2 28: goto 32
29: StackMap locals: org.apache.cassandra.locator.TokenMetadata com.google.common.collect.Multimap
StackMap stack: java.lang.Throwable
astore 10
30: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.writeLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
31: aload 10
athrow
32: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.writeLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
33: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 34 0 this Lorg/apache/cassandra/locator/TokenMetadata;
0 34 1 endpointTokens Lcom/google/common/collect/Multimap<Ljava/net/InetAddress;Lorg/apache/cassandra/dht/Token;>;
4 28 2 shouldSortTokens Z
5 28 3 topologyBuilder Lorg/apache/cassandra/locator/TokenMetadata$Topology$Builder;
7 24 4 endpoint Ljava/net/InetAddress;
8 24 6 tokens Ljava/util/Collection<Lorg/apache/cassandra/dht/Token;>;
18 23 7 token Lorg/apache/cassandra/dht/Token;
19 23 9 prev Ljava/net/InetAddress;
Exception table:
from to target type
3 29 29 any
Signature: (Lcom/google/common/collect/Multimap<Ljava/net/InetAddress;Lorg/apache/cassandra/dht/Token;>;)V
MethodParameters:
Name Flags
endpointTokens
public void updateHostId(java.util.UUID, java.net.InetAddress);
descriptor: (Ljava/util/UUID;Ljava/net/InetAddress;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=6, args_size=3
start local 0 start local 1 start local 2 0: getstatic org.apache.cassandra.locator.TokenMetadata.$assertionsDisabled:Z
ifne 1
aload 1
ifnonnull 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.locator.TokenMetadata.$assertionsDisabled:Z
ifne 2
aload 2
ifnonnull 2
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.writeLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.lock:()V
3: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.endpointToHostIdMap:Lcom/google/common/collect/BiMap;
invokeinterface com.google.common.collect.BiMap.inverse:()Lcom/google/common/collect/BiMap;
aload 1
invokeinterface com.google.common.collect.BiMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.net.InetAddress
astore 3
start local 3 4: aload 3
ifnull 11
5: aload 3
aload 2
invokevirtual java.net.InetAddress.equals:(Ljava/lang/Object;)Z
ifne 11
getstatic org.apache.cassandra.gms.FailureDetector.instance:Lorg/apache/cassandra/gms/IFailureDetector;
aload 3
invokeinterface org.apache.cassandra.gms.IFailureDetector.isAlive:(Ljava/net/InetAddress;)Z
ifeq 11
6: new java.lang.RuntimeException
dup
ldc "Host ID collision between active endpoint %s and %s (id=%s)"
iconst_3
anewarray java.lang.Object
dup
iconst_0
7: aload 3
aastore
dup
iconst_1
8: aload 2
aastore
dup
iconst_2
9: aload 1
aastore
10: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
11: StackMap locals: java.net.InetAddress
StackMap stack:
aload 0
getfield org.apache.cassandra.locator.TokenMetadata.endpointToHostIdMap:Lcom/google/common/collect/BiMap;
aload 2
invokeinterface com.google.common.collect.BiMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.UUID
astore 4
start local 4 12: aload 4
ifnull 14
aload 4
aload 1
invokevirtual java.util.UUID.equals:(Ljava/lang/Object;)Z
ifne 14
13: getstatic org.apache.cassandra.locator.TokenMetadata.logger:Lorg/slf4j/Logger;
ldc "Changing {}'s host ID from {} to {}"
iconst_3
anewarray java.lang.Object
dup
iconst_0
aload 2
aastore
dup
iconst_1
aload 4
aastore
dup
iconst_2
aload 1
aastore
invokeinterface org.slf4j.Logger.warn:(Ljava/lang/String;[Ljava/lang/Object;)V
14: StackMap locals: java.util.UUID
StackMap stack:
aload 0
getfield org.apache.cassandra.locator.TokenMetadata.endpointToHostIdMap:Lcom/google/common/collect/BiMap;
aload 2
aload 1
invokeinterface com.google.common.collect.BiMap.forcePut:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 4 end local 3 15: goto 19
16: StackMap locals: org.apache.cassandra.locator.TokenMetadata java.util.UUID java.net.InetAddress
StackMap stack: java.lang.Throwable
astore 5
17: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.writeLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
18: aload 5
athrow
19: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.writeLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
20: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 21 0 this Lorg/apache/cassandra/locator/TokenMetadata;
0 21 1 hostId Ljava/util/UUID;
0 21 2 endpoint Ljava/net/InetAddress;
4 15 3 storedEp Ljava/net/InetAddress;
12 15 4 storedId Ljava/util/UUID;
Exception table:
from to target type
3 16 16 any
MethodParameters:
Name Flags
hostId
endpoint
public java.util.UUID getHostId(java.net.InetAddress);
descriptor: (Ljava/net/InetAddress;)Ljava/util/UUID;
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.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.lock:()V
1: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.endpointToHostIdMap:Lcom/google/common/collect/BiMap;
aload 1
invokeinterface com.google.common.collect.BiMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.util.UUID
astore 3
2: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
3: aload 3
areturn
4: StackMap locals:
StackMap stack: java.lang.Throwable
astore 2
5: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
6: aload 2
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/locator/TokenMetadata;
0 7 1 endpoint Ljava/net/InetAddress;
Exception table:
from to target type
1 2 4 any
MethodParameters:
Name Flags
endpoint
public java.net.InetAddress getEndpointForHostId(java.util.UUID);
descriptor: (Ljava/util/UUID;)Ljava/net/InetAddress;
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.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.lock:()V
1: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.endpointToHostIdMap:Lcom/google/common/collect/BiMap;
invokeinterface com.google.common.collect.BiMap.inverse:()Lcom/google/common/collect/BiMap;
aload 1
invokeinterface com.google.common.collect.BiMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.net.InetAddress
astore 3
2: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
3: aload 3
areturn
4: StackMap locals:
StackMap stack: java.lang.Throwable
astore 2
5: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
6: aload 2
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/locator/TokenMetadata;
0 7 1 hostId Ljava/util/UUID;
Exception table:
from to target type
1 2 4 any
MethodParameters:
Name Flags
hostId
public java.util.Map<java.net.InetAddress, java.util.UUID> getEndpointToHostIdMapForReading();
descriptor: ()Ljava/util/Map;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.lock:()V
1: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 1
start local 1 2: aload 1
aload 0
getfield org.apache.cassandra.locator.TokenMetadata.endpointToHostIdMap:Lcom/google/common/collect/BiMap;
invokeinterface java.util.Map.putAll:(Ljava/util/Map;)V
3: aload 1
astore 3
4: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
5: aload 3
areturn
end local 1 6: StackMap locals:
StackMap stack: java.lang.Throwable
astore 2
7: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
8: aload 2
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/apache/cassandra/locator/TokenMetadata;
2 6 1 readMap Ljava/util/Map<Ljava/net/InetAddress;Ljava/util/UUID;>;
Exception table:
from to target type
1 4 6 any
Signature: ()Ljava/util/Map<Ljava/net/InetAddress;Ljava/util/UUID;>;
public void addBootstrapToken(org.apache.cassandra.dht.Token, java.net.InetAddress);
descriptor: (Lorg/apache/cassandra/dht/Token;Ljava/net/InetAddress;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
invokestatic java.util.Collections.singleton:(Ljava/lang/Object;)Ljava/util/Set;
aload 2
invokevirtual org.apache.cassandra.locator.TokenMetadata.addBootstrapTokens:(Ljava/util/Collection;Ljava/net/InetAddress;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/locator/TokenMetadata;
0 2 1 token Lorg/apache/cassandra/dht/Token;
0 2 2 endpoint Ljava/net/InetAddress;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
token
endpoint
public void addBootstrapTokens(java.util.Collection<org.apache.cassandra.dht.Token>, java.net.InetAddress);
descriptor: (Ljava/util/Collection;Ljava/net/InetAddress;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
aconst_null
invokevirtual org.apache.cassandra.locator.TokenMetadata.addBootstrapTokens:(Ljava/util/Collection;Ljava/net/InetAddress;Ljava/net/InetAddress;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/locator/TokenMetadata;
0 2 1 tokens Ljava/util/Collection<Lorg/apache/cassandra/dht/Token;>;
0 2 2 endpoint Ljava/net/InetAddress;
Signature: (Ljava/util/Collection<Lorg/apache/cassandra/dht/Token;>;Ljava/net/InetAddress;)V
MethodParameters:
Name Flags
tokens
endpoint
private void addBootstrapTokens(java.util.Collection<org.apache.cassandra.dht.Token>, java.net.InetAddress, java.net.InetAddress);
descriptor: (Ljava/util/Collection;Ljava/net/InetAddress;Ljava/net/InetAddress;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=8, args_size=4
start local 0 start local 1 start local 2 start local 3 0: getstatic org.apache.cassandra.locator.TokenMetadata.$assertionsDisabled:Z
ifne 2
aload 1
ifnull 1
aload 1
invokeinterface java.util.Collection.isEmpty:()Z
ifeq 2
StackMap locals:
StackMap stack:
1: new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.locator.TokenMetadata.$assertionsDisabled:Z
ifne 3
aload 2
ifnonnull 3
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
3: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.writeLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.lock:()V
4: aload 1
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 6
goto 12
StackMap locals: org.apache.cassandra.locator.TokenMetadata java.util.Collection java.net.InetAddress java.net.InetAddress top top java.util.Iterator
StackMap stack:
5: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.dht.Token
astore 5
start local 5 6: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.bootstrapTokens:Lorg/apache/cassandra/utils/BiMultiValMap;
aload 5
invokevirtual org.apache.cassandra.utils.BiMultiValMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.net.InetAddress
astore 4
start local 4 7: aload 4
ifnull 9
aload 4
aload 2
invokevirtual java.net.InetAddress.equals:(Ljava/lang/Object;)Z
ifne 9
8: new java.lang.RuntimeException
dup
new java.lang.StringBuilder
dup
ldc "Bootstrap Token collision between "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " and "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " (token "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 5
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
9: StackMap locals: org.apache.cassandra.locator.TokenMetadata java.util.Collection java.net.InetAddress java.net.InetAddress java.net.InetAddress org.apache.cassandra.dht.Token java.util.Iterator
StackMap stack:
aload 0
getfield org.apache.cassandra.locator.TokenMetadata.tokenToEndpointMap:Lorg/apache/cassandra/utils/BiMultiValMap;
aload 5
invokevirtual org.apache.cassandra.utils.BiMultiValMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.net.InetAddress
astore 4
10: aload 4
ifnull 12
aload 4
aload 2
invokevirtual java.net.InetAddress.equals:(Ljava/lang/Object;)Z
ifne 12
aload 4
aload 3
invokevirtual java.net.InetAddress.equals:(Ljava/lang/Object;)Z
ifne 12
11: new java.lang.RuntimeException
dup
new java.lang.StringBuilder
dup
ldc "Bootstrap Token collision between "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " and "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " (token "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 5
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
end local 5 end local 4 12: StackMap locals: org.apache.cassandra.locator.TokenMetadata java.util.Collection java.net.InetAddress java.net.InetAddress top top java.util.Iterator
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
13: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.bootstrapTokens:Lorg/apache/cassandra/utils/BiMultiValMap;
aload 2
invokevirtual org.apache.cassandra.utils.BiMultiValMap.removeValue:(Ljava/lang/Object;)Ljava/util/Collection;
pop
14: aload 1
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 6
goto 17
StackMap locals:
StackMap stack:
15: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.dht.Token
astore 5
start local 5 16: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.bootstrapTokens:Lorg/apache/cassandra/utils/BiMultiValMap;
aload 5
aload 2
invokevirtual org.apache.cassandra.utils.BiMultiValMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 5 17: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 15
18: goto 22
19: StackMap locals: org.apache.cassandra.locator.TokenMetadata java.util.Collection java.net.InetAddress java.net.InetAddress
StackMap stack: java.lang.Throwable
astore 7
20: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.writeLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
21: aload 7
athrow
22: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.writeLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
23: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 24 0 this Lorg/apache/cassandra/locator/TokenMetadata;
0 24 1 tokens Ljava/util/Collection<Lorg/apache/cassandra/dht/Token;>;
0 24 2 endpoint Ljava/net/InetAddress;
0 24 3 original Ljava/net/InetAddress;
7 12 4 oldEndpoint Ljava/net/InetAddress;
6 12 5 token Lorg/apache/cassandra/dht/Token;
16 17 5 token Lorg/apache/cassandra/dht/Token;
Exception table:
from to target type
4 19 19 any
Signature: (Ljava/util/Collection<Lorg/apache/cassandra/dht/Token;>;Ljava/net/InetAddress;Ljava/net/InetAddress;)V
MethodParameters:
Name Flags
tokens
endpoint
original
public void addReplaceTokens(java.util.Collection<org.apache.cassandra.dht.Token>, java.net.InetAddress, java.net.InetAddress);
descriptor: (Ljava/util/Collection;Ljava/net/InetAddress;Ljava/net/InetAddress;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=6, args_size=4
start local 0 start local 1 start local 2 start local 3 0: getstatic org.apache.cassandra.locator.TokenMetadata.$assertionsDisabled:Z
ifne 2
aload 1
ifnull 1
aload 1
invokeinterface java.util.Collection.isEmpty:()Z
ifeq 2
StackMap locals:
StackMap stack:
1: new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.locator.TokenMetadata.$assertionsDisabled:Z
ifne 4
aload 2
ifnull 3
aload 3
ifnonnull 4
StackMap locals:
StackMap stack:
3: new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
4: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.writeLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.lock:()V
5: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.tokenToEndpointMap:Lorg/apache/cassandra/utils/BiMultiValMap;
invokevirtual org.apache.cassandra.utils.BiMultiValMap.inverse:()Lcom/google/common/collect/Multimap;
aload 3
invokeinterface com.google.common.collect.Multimap.get:(Ljava/lang/Object;)Ljava/util/Collection;
astore 4
start local 4 6: aload 1
aload 4
invokeinterface java.util.Collection.containsAll:(Ljava/util/Collection;)Z
ifeq 7
aload 4
aload 1
invokeinterface java.util.Collection.containsAll:(Ljava/util/Collection;)Z
ifne 11
7: StackMap locals: java.util.Collection
StackMap stack:
new java.lang.RuntimeException
dup
ldc "Node %s is trying to replace node %s with tokens %s with a different set of tokens %s."
iconst_4
anewarray java.lang.Object
dup
iconst_0
8: aload 2
aastore
dup
iconst_1
aload 3
aastore
dup
iconst_2
aload 4
aastore
dup
iconst_3
9: aload 1
aastore
10: invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
11: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.locator.TokenMetadata.logger:Lorg/slf4j/Logger;
ldc "Replacing {} with {}"
aload 2
aload 3
invokeinterface org.slf4j.Logger.debug:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
12: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.replacementToOriginal:Lcom/google/common/collect/BiMap;
aload 2
aload 3
invokeinterface com.google.common.collect.BiMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
13: aload 0
aload 1
aload 2
aload 3
invokevirtual org.apache.cassandra.locator.TokenMetadata.addBootstrapTokens:(Ljava/util/Collection;Ljava/net/InetAddress;Ljava/net/InetAddress;)V
end local 4 14: goto 18
15: StackMap locals: org.apache.cassandra.locator.TokenMetadata java.util.Collection java.net.InetAddress java.net.InetAddress
StackMap stack: java.lang.Throwable
astore 5
16: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.writeLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
17: aload 5
athrow
18: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.writeLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
19: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 this Lorg/apache/cassandra/locator/TokenMetadata;
0 20 1 replacingTokens Ljava/util/Collection<Lorg/apache/cassandra/dht/Token;>;
0 20 2 newNode Ljava/net/InetAddress;
0 20 3 oldNode Ljava/net/InetAddress;
6 14 4 oldNodeTokens Ljava/util/Collection<Lorg/apache/cassandra/dht/Token;>;
Exception table:
from to target type
5 15 15 any
Signature: (Ljava/util/Collection<Lorg/apache/cassandra/dht/Token;>;Ljava/net/InetAddress;Ljava/net/InetAddress;)V
MethodParameters:
Name Flags
replacingTokens
newNode
oldNode
public java.util.Optional<java.net.InetAddress> getReplacementNode(java.net.InetAddress);
descriptor: (Ljava/net/InetAddress;)Ljava/util/Optional;
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.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.lock:()V
1: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.replacementToOriginal:Lcom/google/common/collect/BiMap;
invokeinterface com.google.common.collect.BiMap.inverse:()Lcom/google/common/collect/BiMap;
aload 1
invokeinterface com.google.common.collect.BiMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.net.InetAddress
invokestatic java.util.Optional.ofNullable:(Ljava/lang/Object;)Ljava/util/Optional;
astore 3
2: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
3: aload 3
areturn
4: StackMap locals:
StackMap stack: java.lang.Throwable
astore 2
5: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
6: aload 2
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/locator/TokenMetadata;
0 7 1 endpoint Ljava/net/InetAddress;
Exception table:
from to target type
1 2 4 any
Signature: (Ljava/net/InetAddress;)Ljava/util/Optional<Ljava/net/InetAddress;>;
MethodParameters:
Name Flags
endpoint
public java.util.Optional<java.net.InetAddress> getReplacingNode(java.net.InetAddress);
descriptor: (Ljava/net/InetAddress;)Ljava/util/Optional;
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.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.lock:()V
1: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.replacementToOriginal:Lcom/google/common/collect/BiMap;
aload 1
invokeinterface com.google.common.collect.BiMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.net.InetAddress
invokestatic java.util.Optional.ofNullable:(Ljava/lang/Object;)Ljava/util/Optional;
astore 3
2: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
3: aload 3
areturn
4: StackMap locals:
StackMap stack: java.lang.Throwable
astore 2
5: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
6: aload 2
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/locator/TokenMetadata;
0 7 1 endpoint Ljava/net/InetAddress;
Exception table:
from to target type
1 2 4 any
Signature: (Ljava/net/InetAddress;)Ljava/util/Optional<Ljava/net/InetAddress;>;
MethodParameters:
Name Flags
endpoint
public void removeBootstrapTokens(java.util.Collection<org.apache.cassandra.dht.Token>);
descriptor: (Ljava/util/Collection;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=2
start local 0 start local 1 0: getstatic org.apache.cassandra.locator.TokenMetadata.$assertionsDisabled:Z
ifne 2
aload 1
ifnull 1
aload 1
invokeinterface java.util.Collection.isEmpty:()Z
ifeq 2
StackMap locals:
StackMap stack:
1: new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.writeLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.lock:()V
3: aload 1
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 3
goto 6
StackMap locals: org.apache.cassandra.locator.TokenMetadata java.util.Collection top java.util.Iterator
StackMap stack:
4: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.dht.Token
astore 2
start local 2 5: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.bootstrapTokens:Lorg/apache/cassandra/utils/BiMultiValMap;
aload 2
invokevirtual org.apache.cassandra.utils.BiMultiValMap.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 2 6: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
7: goto 11
8: StackMap locals: org.apache.cassandra.locator.TokenMetadata java.util.Collection
StackMap stack: java.lang.Throwable
astore 4
9: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.writeLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
10: aload 4
athrow
11: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.writeLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
12: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/apache/cassandra/locator/TokenMetadata;
0 13 1 tokens Ljava/util/Collection<Lorg/apache/cassandra/dht/Token;>;
5 6 2 token Lorg/apache/cassandra/dht/Token;
Exception table:
from to target type
3 8 8 any
Signature: (Ljava/util/Collection<Lorg/apache/cassandra/dht/Token;>;)V
MethodParameters:
Name Flags
tokens
public void addLeavingEndpoint(java.net.InetAddress);
descriptor: (Ljava/net/InetAddress;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: getstatic org.apache.cassandra.locator.TokenMetadata.$assertionsDisabled:Z
ifne 1
aload 1
ifnonnull 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.writeLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.lock:()V
2: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.leavingEndpoints:Ljava/util/Set;
aload 1
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
3: goto 7
4: StackMap locals:
StackMap stack: java.lang.Throwable
astore 2
5: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.writeLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
6: aload 2
athrow
7: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.writeLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
8: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/apache/cassandra/locator/TokenMetadata;
0 9 1 endpoint Ljava/net/InetAddress;
Exception table:
from to target type
2 4 4 any
MethodParameters:
Name Flags
endpoint
public void addMovingEndpoint(org.apache.cassandra.dht.Token, java.net.InetAddress);
descriptor: (Lorg/apache/cassandra/dht/Token;Ljava/net/InetAddress;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: getstatic org.apache.cassandra.locator.TokenMetadata.$assertionsDisabled:Z
ifne 1
aload 2
ifnonnull 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.writeLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.lock:()V
2: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.movingEndpoints:Ljava/util/Set;
aload 1
aload 2
invokestatic org.apache.cassandra.utils.Pair.create:(Ljava/lang/Object;Ljava/lang/Object;)Lorg/apache/cassandra/utils/Pair;
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
3: goto 7
4: StackMap locals:
StackMap stack: java.lang.Throwable
astore 3
5: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.writeLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
6: aload 3
athrow
7: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.writeLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
8: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/apache/cassandra/locator/TokenMetadata;
0 9 1 token Lorg/apache/cassandra/dht/Token;
0 9 2 endpoint Ljava/net/InetAddress;
Exception table:
from to target type
2 4 4 any
MethodParameters:
Name Flags
token
endpoint
public void removeEndpoint(java.net.InetAddress);
descriptor: (Ljava/net/InetAddress;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: getstatic org.apache.cassandra.locator.TokenMetadata.$assertionsDisabled:Z
ifne 1
aload 1
ifnonnull 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.writeLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.lock:()V
2: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.bootstrapTokens:Lorg/apache/cassandra/utils/BiMultiValMap;
aload 1
invokevirtual org.apache.cassandra.utils.BiMultiValMap.removeValue:(Ljava/lang/Object;)Ljava/util/Collection;
pop
3: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.tokenToEndpointMap:Lorg/apache/cassandra/utils/BiMultiValMap;
aload 1
invokevirtual org.apache.cassandra.utils.BiMultiValMap.removeValue:(Ljava/lang/Object;)Ljava/util/Collection;
pop
4: aload 0
aload 0
getfield org.apache.cassandra.locator.TokenMetadata.topology:Lorg/apache/cassandra/locator/TokenMetadata$Topology;
invokevirtual org.apache.cassandra.locator.TokenMetadata$Topology.unbuild:()Lorg/apache/cassandra/locator/TokenMetadata$Topology$Builder;
aload 1
invokevirtual org.apache.cassandra.locator.TokenMetadata$Topology$Builder.removeEndpoint:(Ljava/net/InetAddress;)Lorg/apache/cassandra/locator/TokenMetadata$Topology$Builder;
invokevirtual org.apache.cassandra.locator.TokenMetadata$Topology$Builder.build:()Lorg/apache/cassandra/locator/TokenMetadata$Topology;
putfield org.apache.cassandra.locator.TokenMetadata.topology:Lorg/apache/cassandra/locator/TokenMetadata$Topology;
5: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.leavingEndpoints:Ljava/util/Set;
aload 1
invokeinterface java.util.Set.remove:(Ljava/lang/Object;)Z
pop
6: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.replacementToOriginal:Lcom/google/common/collect/BiMap;
aload 1
invokeinterface com.google.common.collect.BiMap.remove:(Ljava/lang/Object;)Ljava/lang/Object;
ifnull 8
7: getstatic org.apache.cassandra.locator.TokenMetadata.logger:Lorg/slf4j/Logger;
ldc "Node {} failed during replace."
aload 1
invokeinterface org.slf4j.Logger.debug:(Ljava/lang/String;Ljava/lang/Object;)V
8: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.locator.TokenMetadata.endpointToHostIdMap:Lcom/google/common/collect/BiMap;
aload 1
invokeinterface com.google.common.collect.BiMap.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
9: aload 0
aload 0
invokevirtual org.apache.cassandra.locator.TokenMetadata.sortTokens:()Ljava/util/ArrayList;
putfield org.apache.cassandra.locator.TokenMetadata.sortedTokens:Ljava/util/ArrayList;
10: aload 0
invokevirtual org.apache.cassandra.locator.TokenMetadata.invalidateCachedRings:()V
11: goto 15
12: StackMap locals:
StackMap stack: java.lang.Throwable
astore 2
13: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.writeLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
14: aload 2
athrow
15: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.writeLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
16: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lorg/apache/cassandra/locator/TokenMetadata;
0 17 1 endpoint Ljava/net/InetAddress;
Exception table:
from to target type
2 12 12 any
MethodParameters:
Name Flags
endpoint
public org.apache.cassandra.locator.TokenMetadata$Topology updateTopology(java.net.InetAddress);
descriptor: (Ljava/net/InetAddress;)Lorg/apache/cassandra/locator/TokenMetadata$Topology;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: getstatic org.apache.cassandra.locator.TokenMetadata.$assertionsDisabled:Z
ifne 1
aload 1
ifnonnull 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.writeLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.lock:()V
2: getstatic org.apache.cassandra.locator.TokenMetadata.logger:Lorg/slf4j/Logger;
ldc "Updating topology for {}"
aload 1
invokeinterface org.slf4j.Logger.info:(Ljava/lang/String;Ljava/lang/Object;)V
3: aload 0
aload 0
getfield org.apache.cassandra.locator.TokenMetadata.topology:Lorg/apache/cassandra/locator/TokenMetadata$Topology;
invokevirtual org.apache.cassandra.locator.TokenMetadata$Topology.unbuild:()Lorg/apache/cassandra/locator/TokenMetadata$Topology$Builder;
aload 1
invokevirtual org.apache.cassandra.locator.TokenMetadata$Topology$Builder.updateEndpoint:(Ljava/net/InetAddress;)Lorg/apache/cassandra/locator/TokenMetadata$Topology$Builder;
invokevirtual org.apache.cassandra.locator.TokenMetadata$Topology$Builder.build:()Lorg/apache/cassandra/locator/TokenMetadata$Topology;
putfield org.apache.cassandra.locator.TokenMetadata.topology:Lorg/apache/cassandra/locator/TokenMetadata$Topology;
4: aload 0
invokevirtual org.apache.cassandra.locator.TokenMetadata.invalidateCachedRings:()V
5: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.topology:Lorg/apache/cassandra/locator/TokenMetadata$Topology;
astore 3
6: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.writeLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
7: aload 3
areturn
8: StackMap locals:
StackMap stack: java.lang.Throwable
astore 2
9: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.writeLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
10: aload 2
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/apache/cassandra/locator/TokenMetadata;
0 11 1 endpoint Ljava/net/InetAddress;
Exception table:
from to target type
2 6 8 any
MethodParameters:
Name Flags
endpoint
public org.apache.cassandra.locator.TokenMetadata$Topology updateTopology();
descriptor: ()Lorg/apache/cassandra/locator/TokenMetadata$Topology;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.writeLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.lock:()V
1: getstatic org.apache.cassandra.locator.TokenMetadata.logger:Lorg/slf4j/Logger;
ldc "Updating topology for all endpoints that have changed"
invokeinterface org.slf4j.Logger.info:(Ljava/lang/String;)V
2: aload 0
aload 0
getfield org.apache.cassandra.locator.TokenMetadata.topology:Lorg/apache/cassandra/locator/TokenMetadata$Topology;
invokevirtual org.apache.cassandra.locator.TokenMetadata$Topology.unbuild:()Lorg/apache/cassandra/locator/TokenMetadata$Topology$Builder;
invokevirtual org.apache.cassandra.locator.TokenMetadata$Topology$Builder.updateEndpoints:()Lorg/apache/cassandra/locator/TokenMetadata$Topology$Builder;
invokevirtual org.apache.cassandra.locator.TokenMetadata$Topology$Builder.build:()Lorg/apache/cassandra/locator/TokenMetadata$Topology;
putfield org.apache.cassandra.locator.TokenMetadata.topology:Lorg/apache/cassandra/locator/TokenMetadata$Topology;
3: aload 0
invokevirtual org.apache.cassandra.locator.TokenMetadata.invalidateCachedRings:()V
4: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.topology:Lorg/apache/cassandra/locator/TokenMetadata$Topology;
astore 2
5: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.writeLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
6: aload 2
areturn
7: StackMap locals:
StackMap stack: java.lang.Throwable
astore 1
8: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.writeLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
9: aload 1
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/apache/cassandra/locator/TokenMetadata;
Exception table:
from to target type
1 5 7 any
public void removeFromMoving(java.net.InetAddress);
descriptor: (Ljava/net/InetAddress;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=2
start local 0 start local 1 0: getstatic org.apache.cassandra.locator.TokenMetadata.$assertionsDisabled:Z
ifne 1
aload 1
ifnonnull 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.writeLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.lock:()V
2: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.movingEndpoints:Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 3
goto 7
StackMap locals: org.apache.cassandra.locator.TokenMetadata java.net.InetAddress top java.util.Iterator
StackMap stack:
3: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.utils.Pair
astore 2
start local 2 4: aload 2
getfield org.apache.cassandra.utils.Pair.right:Ljava/lang/Object;
checkcast java.net.InetAddress
aload 1
invokevirtual java.net.InetAddress.equals:(Ljava/lang/Object;)Z
ifeq 7
5: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.movingEndpoints:Ljava/util/Set;
aload 2
invokeinterface java.util.Set.remove:(Ljava/lang/Object;)Z
pop
6: goto 8
end local 2 7: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
8: StackMap locals: org.apache.cassandra.locator.TokenMetadata java.net.InetAddress
StackMap stack:
aload 0
invokevirtual org.apache.cassandra.locator.TokenMetadata.invalidateCachedRings:()V
9: goto 13
10: StackMap locals:
StackMap stack: java.lang.Throwable
astore 4
11: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.writeLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
12: aload 4
athrow
13: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.writeLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
14: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 15 0 this Lorg/apache/cassandra/locator/TokenMetadata;
0 15 1 endpoint Ljava/net/InetAddress;
4 7 2 pair Lorg/apache/cassandra/utils/Pair<Lorg/apache/cassandra/dht/Token;Ljava/net/InetAddress;>;
Exception table:
from to target type
2 10 10 any
MethodParameters:
Name Flags
endpoint
public java.util.Collection<org.apache.cassandra.dht.Token> getTokens(java.net.InetAddress);
descriptor: (Ljava/net/InetAddress;)Ljava/util/Collection;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: getstatic org.apache.cassandra.locator.TokenMetadata.$assertionsDisabled:Z
ifne 1
aload 1
ifnonnull 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.locator.TokenMetadata.$assertionsDisabled:Z
ifne 2
aload 0
aload 1
invokevirtual org.apache.cassandra.locator.TokenMetadata.isMember:(Ljava/net/InetAddress;)Z
ifne 2
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.lock:()V
3: new java.util.ArrayList
dup
aload 0
getfield org.apache.cassandra.locator.TokenMetadata.tokenToEndpointMap:Lorg/apache/cassandra/utils/BiMultiValMap;
invokevirtual org.apache.cassandra.utils.BiMultiValMap.inverse:()Lcom/google/common/collect/Multimap;
aload 1
invokeinterface com.google.common.collect.Multimap.get:(Ljava/lang/Object;)Ljava/util/Collection;
invokespecial java.util.ArrayList.<init>:(Ljava/util/Collection;)V
astore 3
4: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
5: aload 3
areturn
6: StackMap locals:
StackMap stack: java.lang.Throwable
astore 2
7: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
8: aload 2
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/apache/cassandra/locator/TokenMetadata;
0 9 1 endpoint Ljava/net/InetAddress;
Exception table:
from to target type
3 4 6 any
Signature: (Ljava/net/InetAddress;)Ljava/util/Collection<Lorg/apache/cassandra/dht/Token;>;
MethodParameters:
Name Flags
endpoint
public org.apache.cassandra.dht.Token getToken(java.net.InetAddress);
descriptor: (Ljava/net/InetAddress;)Lorg/apache/cassandra/dht/Token;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual org.apache.cassandra.locator.TokenMetadata.getTokens:(Ljava/net/InetAddress;)Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.dht.Token
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/locator/TokenMetadata;
0 1 1 endpoint Ljava/net/InetAddress;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
endpoint
public boolean isMember(java.net.InetAddress);
descriptor: (Ljava/net/InetAddress;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: getstatic org.apache.cassandra.locator.TokenMetadata.$assertionsDisabled:Z
ifne 1
aload 1
ifnonnull 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.lock:()V
2: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.tokenToEndpointMap:Lorg/apache/cassandra/utils/BiMultiValMap;
invokevirtual org.apache.cassandra.utils.BiMultiValMap.inverse:()Lcom/google/common/collect/Multimap;
aload 1
invokeinterface com.google.common.collect.Multimap.containsKey:(Ljava/lang/Object;)Z
istore 3
3: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
4: iload 3
ireturn
5: StackMap locals:
StackMap stack: java.lang.Throwable
astore 2
6: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
7: aload 2
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/apache/cassandra/locator/TokenMetadata;
0 8 1 endpoint Ljava/net/InetAddress;
Exception table:
from to target type
2 3 5 any
MethodParameters:
Name Flags
endpoint
public boolean isLeaving(java.net.InetAddress);
descriptor: (Ljava/net/InetAddress;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: getstatic org.apache.cassandra.locator.TokenMetadata.$assertionsDisabled:Z
ifne 1
aload 1
ifnonnull 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.lock:()V
2: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.leavingEndpoints:Ljava/util/Set;
aload 1
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
istore 3
3: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
4: iload 3
ireturn
5: StackMap locals:
StackMap stack: java.lang.Throwable
astore 2
6: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
7: aload 2
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/apache/cassandra/locator/TokenMetadata;
0 8 1 endpoint Ljava/net/InetAddress;
Exception table:
from to target type
2 3 5 any
MethodParameters:
Name Flags
endpoint
public boolean isMoving(java.net.InetAddress);
descriptor: (Ljava/net/InetAddress;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=2
start local 0 start local 1 0: getstatic org.apache.cassandra.locator.TokenMetadata.$assertionsDisabled:Z
ifne 1
aload 1
ifnonnull 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.lock:()V
2: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.movingEndpoints:Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 3
goto 7
StackMap locals: org.apache.cassandra.locator.TokenMetadata java.net.InetAddress top java.util.Iterator
StackMap stack:
3: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.utils.Pair
astore 2
start local 2 4: aload 2
getfield org.apache.cassandra.utils.Pair.right:Ljava/lang/Object;
checkcast java.net.InetAddress
aload 1
invokevirtual java.net.InetAddress.equals:(Ljava/lang/Object;)Z
ifeq 7
5: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
6: iconst_1
ireturn
end local 2 7: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
8: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
9: iconst_0
ireturn
10: StackMap locals: org.apache.cassandra.locator.TokenMetadata java.net.InetAddress
StackMap stack: java.lang.Throwable
astore 4
11: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
12: aload 4
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/apache/cassandra/locator/TokenMetadata;
0 13 1 endpoint Ljava/net/InetAddress;
4 7 2 pair Lorg/apache/cassandra/utils/Pair<Lorg/apache/cassandra/dht/Token;Ljava/net/InetAddress;>;
Exception table:
from to target type
2 5 10 any
7 8 10 any
MethodParameters:
Name Flags
endpoint
public org.apache.cassandra.locator.TokenMetadata cloneOnlyTokenMap();
descriptor: ()Lorg/apache/cassandra/locator/TokenMetadata;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=3, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.lock:()V
1: new org.apache.cassandra.locator.TokenMetadata
dup
aload 0
getfield org.apache.cassandra.locator.TokenMetadata.tokenToEndpointMap:Lorg/apache/cassandra/utils/BiMultiValMap;
aconst_null
getstatic org.apache.cassandra.locator.TokenMetadata.inetaddressCmp:Ljava/util/Comparator;
invokestatic org.apache.cassandra.utils.SortedBiMultiValMap.create:(Lorg/apache/cassandra/utils/BiMultiValMap;Ljava/util/Comparator;Ljava/util/Comparator;)Lorg/apache/cassandra/utils/SortedBiMultiValMap;
2: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.endpointToHostIdMap:Lcom/google/common/collect/BiMap;
invokestatic com.google.common.collect.HashBiMap.create:(Ljava/util/Map;)Lcom/google/common/collect/HashBiMap;
3: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.topology:Lorg/apache/cassandra/locator/TokenMetadata$Topology;
4: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.partitioner:Lorg/apache/cassandra/dht/IPartitioner;
5: invokespecial org.apache.cassandra.locator.TokenMetadata.<init>:(Lorg/apache/cassandra/utils/BiMultiValMap;Lcom/google/common/collect/BiMap;Lorg/apache/cassandra/locator/TokenMetadata$Topology;Lorg/apache/cassandra/dht/IPartitioner;)V
astore 2
6: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
7: aload 2
areturn
8: StackMap locals:
StackMap stack: java.lang.Throwable
astore 1
9: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
10: aload 1
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/apache/cassandra/locator/TokenMetadata;
Exception table:
from to target type
1 6 8 any
public org.apache.cassandra.locator.TokenMetadata cachedOnlyTokenMap();
descriptor: ()Lorg/apache/cassandra/locator/TokenMetadata;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.cachedTokenMap:Ljava/util/concurrent/atomic/AtomicReference;
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
checkcast org.apache.cassandra.locator.TokenMetadata
astore 1
start local 1 1: aload 1
ifnull 3
2: aload 1
areturn
3: StackMap locals: org.apache.cassandra.locator.TokenMetadata
StackMap stack:
aload 0
dup
astore 2
monitorenter
4: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.cachedTokenMap:Ljava/util/concurrent/atomic/AtomicReference;
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
checkcast org.apache.cassandra.locator.TokenMetadata
dup
astore 1
ifnull 7
5: aload 1
aload 2
monitorexit
6: areturn
7: StackMap locals: org.apache.cassandra.locator.TokenMetadata
StackMap stack:
aload 0
invokevirtual org.apache.cassandra.locator.TokenMetadata.cloneOnlyTokenMap:()Lorg/apache/cassandra/locator/TokenMetadata;
astore 1
8: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.cachedTokenMap:Ljava/util/concurrent/atomic/AtomicReference;
aload 1
invokevirtual java.util.concurrent.atomic.AtomicReference.set:(Ljava/lang/Object;)V
9: aload 1
aload 2
monitorexit
10: areturn
11: StackMap locals:
StackMap stack: java.lang.Throwable
aload 2
monitorexit
12: athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/apache/cassandra/locator/TokenMetadata;
1 13 1 tm Lorg/apache/cassandra/locator/TokenMetadata;
Exception table:
from to target type
4 6 11 any
7 10 11 any
11 12 11 any
public org.apache.cassandra.locator.TokenMetadata cloneAfterAllLeft();
descriptor: ()Lorg/apache/cassandra/locator/TokenMetadata;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=3, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.lock:()V
1: aload 0
invokevirtual org.apache.cassandra.locator.TokenMetadata.cloneOnlyTokenMap:()Lorg/apache/cassandra/locator/TokenMetadata;
aload 0
getfield org.apache.cassandra.locator.TokenMetadata.leavingEndpoints:Ljava/util/Set;
invokestatic org.apache.cassandra.locator.TokenMetadata.removeEndpoints:(Lorg/apache/cassandra/locator/TokenMetadata;Ljava/util/Set;)Lorg/apache/cassandra/locator/TokenMetadata;
astore 2
2: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
3: aload 2
areturn
4: StackMap locals:
StackMap stack: java.lang.Throwable
astore 1
5: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
6: aload 1
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/locator/TokenMetadata;
Exception table:
from to target type
1 2 4 any
private static org.apache.cassandra.locator.TokenMetadata removeEndpoints(org.apache.cassandra.locator.TokenMetadata, java.util.Set<java.net.InetAddress>);
descriptor: (Lorg/apache/cassandra/locator/TokenMetadata;Ljava/util/Set;)Lorg/apache/cassandra/locator/TokenMetadata;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 3
goto 3
StackMap locals: org.apache.cassandra.locator.TokenMetadata java.util.Set top java.util.Iterator
StackMap stack:
1: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.net.InetAddress
astore 2
start local 2 2: aload 0
aload 2
invokevirtual org.apache.cassandra.locator.TokenMetadata.removeEndpoint:(Ljava/net/InetAddress;)V
end local 2 3: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
4: aload 0
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 allLeftMetadata Lorg/apache/cassandra/locator/TokenMetadata;
0 5 1 leavingEndpoints Ljava/util/Set<Ljava/net/InetAddress;>;
2 3 2 endpoint Ljava/net/InetAddress;
Signature: (Lorg/apache/cassandra/locator/TokenMetadata;Ljava/util/Set<Ljava/net/InetAddress;>;)Lorg/apache/cassandra/locator/TokenMetadata;
MethodParameters:
Name Flags
allLeftMetadata
leavingEndpoints
public org.apache.cassandra.locator.TokenMetadata cloneAfterAllSettled();
descriptor: ()Lorg/apache/cassandra/locator/TokenMetadata;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.lock:()V
1: aload 0
invokevirtual org.apache.cassandra.locator.TokenMetadata.cloneOnlyTokenMap:()Lorg/apache/cassandra/locator/TokenMetadata;
astore 1
start local 1 2: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.leavingEndpoints:Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 3
goto 5
StackMap locals: org.apache.cassandra.locator.TokenMetadata org.apache.cassandra.locator.TokenMetadata top java.util.Iterator
StackMap stack:
3: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.net.InetAddress
astore 2
start local 2 4: aload 1
aload 2
invokevirtual org.apache.cassandra.locator.TokenMetadata.removeEndpoint:(Ljava/net/InetAddress;)V
end local 2 5: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
6: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.movingEndpoints:Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 3
goto 9
StackMap locals:
StackMap stack:
7: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.utils.Pair
astore 2
start local 2 8: aload 1
aload 2
getfield org.apache.cassandra.utils.Pair.left:Ljava/lang/Object;
checkcast org.apache.cassandra.dht.Token
aload 2
getfield org.apache.cassandra.utils.Pair.right:Ljava/lang/Object;
checkcast java.net.InetAddress
invokevirtual org.apache.cassandra.locator.TokenMetadata.updateNormalToken:(Lorg/apache/cassandra/dht/Token;Ljava/net/InetAddress;)V
end local 2 9: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 7
10: aload 1
astore 5
11: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
12: aload 5
areturn
end local 1 13: StackMap locals: org.apache.cassandra.locator.TokenMetadata
StackMap stack: java.lang.Throwable
astore 4
14: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
15: aload 4
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lorg/apache/cassandra/locator/TokenMetadata;
2 13 1 metadata Lorg/apache/cassandra/locator/TokenMetadata;
4 5 2 endpoint Ljava/net/InetAddress;
8 9 2 pair Lorg/apache/cassandra/utils/Pair<Lorg/apache/cassandra/dht/Token;Ljava/net/InetAddress;>;
Exception table:
from to target type
1 11 13 any
public java.net.InetAddress getEndpoint(org.apache.cassandra.dht.Token);
descriptor: (Lorg/apache/cassandra/dht/Token;)Ljava/net/InetAddress;
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.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.lock:()V
1: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.tokenToEndpointMap:Lorg/apache/cassandra/utils/BiMultiValMap;
aload 1
invokevirtual org.apache.cassandra.utils.BiMultiValMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.net.InetAddress
astore 3
2: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
3: aload 3
areturn
4: StackMap locals:
StackMap stack: java.lang.Throwable
astore 2
5: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
6: aload 2
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/locator/TokenMetadata;
0 7 1 token Lorg/apache/cassandra/dht/Token;
Exception table:
from to target type
1 2 4 any
MethodParameters:
Name Flags
token
public java.util.Collection<org.apache.cassandra.dht.Range<org.apache.cassandra.dht.Token>> getPrimaryRangesFor(java.util.Collection<org.apache.cassandra.dht.Token>);
descriptor: (Ljava/util/Collection;)Ljava/util/Collection;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: new java.util.ArrayList
dup
aload 1
invokeinterface java.util.Collection.size:()I
invokespecial java.util.ArrayList.<init>:(I)V
astore 2
start local 2 1: aload 1
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 4
goto 4
StackMap locals: org.apache.cassandra.locator.TokenMetadata java.util.Collection java.util.Collection top java.util.Iterator
StackMap stack:
2: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.dht.Token
astore 3
start local 3 3: aload 2
new org.apache.cassandra.dht.Range
dup
aload 0
aload 3
invokevirtual org.apache.cassandra.locator.TokenMetadata.getPredecessor:(Lorg/apache/cassandra/dht/Token;)Lorg/apache/cassandra/dht/Token;
aload 3
invokespecial org.apache.cassandra.dht.Range.<init>:(Lorg/apache/cassandra/dht/RingPosition;Lorg/apache/cassandra/dht/RingPosition;)V
invokeinterface java.util.Collection.add:(Ljava/lang/Object;)Z
pop
end local 3 4: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
5: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/cassandra/locator/TokenMetadata;
0 6 1 tokens Ljava/util/Collection<Lorg/apache/cassandra/dht/Token;>;
1 6 2 ranges Ljava/util/Collection<Lorg/apache/cassandra/dht/Range<Lorg/apache/cassandra/dht/Token;>;>;
3 4 3 right Lorg/apache/cassandra/dht/Token;
Signature: (Ljava/util/Collection<Lorg/apache/cassandra/dht/Token;>;)Ljava/util/Collection<Lorg/apache/cassandra/dht/Range<Lorg/apache/cassandra/dht/Token;>;>;
MethodParameters:
Name Flags
tokens
public org.apache.cassandra.dht.Range<org.apache.cassandra.dht.Token> getPrimaryRangeFor(org.apache.cassandra.dht.Token);
descriptor: (Lorg/apache/cassandra/dht/Token;)Lorg/apache/cassandra/dht/Range;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iconst_1
anewarray org.apache.cassandra.dht.Token
dup
iconst_0
aload 1
aastore
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
invokevirtual org.apache.cassandra.locator.TokenMetadata.getPrimaryRangesFor:(Ljava/util/Collection;)Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.dht.Range
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/locator/TokenMetadata;
0 1 1 right Lorg/apache/cassandra/dht/Token;
Signature: (Lorg/apache/cassandra/dht/Token;)Lorg/apache/cassandra/dht/Range<Lorg/apache/cassandra/dht/Token;>;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
MethodParameters:
Name Flags
right
public java.util.ArrayList<org.apache.cassandra.dht.Token> sortedTokens();
descriptor: ()Ljava/util/ArrayList;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.sortedTokens:Ljava/util/ArrayList;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/locator/TokenMetadata;
Signature: ()Ljava/util/ArrayList<Lorg/apache/cassandra/dht/Token;>;
public com.google.common.collect.Multimap<org.apache.cassandra.dht.Range<org.apache.cassandra.dht.Token>, java.net.InetAddress> getPendingRangesMM(java.lang.String);
descriptor: (Ljava/lang/String;)Lcom/google/common/collect/Multimap;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=9, args_size=2
start local 0 start local 1 0: invokestatic com.google.common.collect.HashMultimap.create:()Lcom/google/common/collect/HashMultimap;
astore 2
start local 2 1: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.pendingRanges:Ljava/util/concurrent/ConcurrentMap;
aload 1
invokeinterface java.util.concurrent.ConcurrentMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.apache.cassandra.locator.PendingRangeMaps
astore 3
start local 3 2: aload 3
ifnull 11
3: aload 3
invokevirtual org.apache.cassandra.locator.PendingRangeMaps.iterator:()Ljava/util/Iterator;
astore 5
goto 10
StackMap locals: org.apache.cassandra.locator.TokenMetadata java.lang.String com.google.common.collect.Multimap org.apache.cassandra.locator.PendingRangeMaps top java.util.Iterator
StackMap stack:
4: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 4
start local 4 5: aload 4
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast org.apache.cassandra.dht.Range
astore 6
start local 6 6: aload 4
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast java.util.List
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 8
goto 9
StackMap locals: org.apache.cassandra.locator.TokenMetadata java.lang.String com.google.common.collect.Multimap org.apache.cassandra.locator.PendingRangeMaps java.util.Map$Entry java.util.Iterator org.apache.cassandra.dht.Range top java.util.Iterator
StackMap stack:
7: aload 8
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.net.InetAddress
astore 7
start local 7 8: aload 2
aload 6
aload 7
invokeinterface com.google.common.collect.Multimap.put:(Ljava/lang/Object;Ljava/lang/Object;)Z
pop
end local 7 9: StackMap locals:
StackMap stack:
aload 8
invokeinterface java.util.Iterator.hasNext:()Z
ifne 7
end local 6 end local 4 10: StackMap locals: org.apache.cassandra.locator.TokenMetadata java.lang.String com.google.common.collect.Multimap org.apache.cassandra.locator.PendingRangeMaps top java.util.Iterator
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 4
11: StackMap locals: org.apache.cassandra.locator.TokenMetadata java.lang.String com.google.common.collect.Multimap org.apache.cassandra.locator.PendingRangeMaps
StackMap stack:
aload 2
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/apache/cassandra/locator/TokenMetadata;
0 12 1 keyspaceName Ljava/lang/String;
1 12 2 map Lcom/google/common/collect/Multimap<Lorg/apache/cassandra/dht/Range<Lorg/apache/cassandra/dht/Token;>;Ljava/net/InetAddress;>;
2 12 3 pendingRangeMaps Lorg/apache/cassandra/locator/PendingRangeMaps;
5 10 4 entry Ljava/util/Map$Entry<Lorg/apache/cassandra/dht/Range<Lorg/apache/cassandra/dht/Token;>;Ljava/util/List<Ljava/net/InetAddress;>;>;
6 10 6 range Lorg/apache/cassandra/dht/Range<Lorg/apache/cassandra/dht/Token;>;
8 9 7 address Ljava/net/InetAddress;
Signature: (Ljava/lang/String;)Lcom/google/common/collect/Multimap<Lorg/apache/cassandra/dht/Range<Lorg/apache/cassandra/dht/Token;>;Ljava/net/InetAddress;>;
MethodParameters:
Name Flags
keyspaceName
public org.apache.cassandra.locator.PendingRangeMaps getPendingRanges(java.lang.String);
descriptor: (Ljava/lang/String;)Lorg/apache/cassandra/locator/PendingRangeMaps;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.pendingRanges:Ljava/util/concurrent/ConcurrentMap;
aload 1
invokeinterface java.util.concurrent.ConcurrentMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.apache.cassandra.locator.PendingRangeMaps
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/locator/TokenMetadata;
0 1 1 keyspaceName Ljava/lang/String;
MethodParameters:
Name Flags
keyspaceName
public java.util.List<org.apache.cassandra.dht.Range<org.apache.cassandra.dht.Token>> getPendingRanges(java.lang.String, java.net.InetAddress);
descriptor: (Ljava/lang/String;Ljava/net/InetAddress;)Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=6, args_size=3
start local 0 start local 1 start local 2 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 3
start local 3 1: aload 0
aload 1
invokevirtual org.apache.cassandra.locator.TokenMetadata.getPendingRangesMM:(Ljava/lang/String;)Lcom/google/common/collect/Multimap;
invokeinterface com.google.common.collect.Multimap.entries:()Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 5
goto 5
StackMap locals: org.apache.cassandra.locator.TokenMetadata java.lang.String java.net.InetAddress java.util.List top java.util.Iterator
StackMap stack:
2: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 4
start local 4 3: aload 4
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast java.net.InetAddress
aload 2
invokevirtual java.net.InetAddress.equals:(Ljava/lang/Object;)Z
ifeq 5
4: aload 3
aload 4
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast org.apache.cassandra.dht.Range
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 4 5: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
6: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/locator/TokenMetadata;
0 7 1 keyspaceName Ljava/lang/String;
0 7 2 endpoint Ljava/net/InetAddress;
1 7 3 ranges Ljava/util/List<Lorg/apache/cassandra/dht/Range<Lorg/apache/cassandra/dht/Token;>;>;
3 5 4 entry Ljava/util/Map$Entry<Lorg/apache/cassandra/dht/Range<Lorg/apache/cassandra/dht/Token;>;Ljava/net/InetAddress;>;
Signature: (Ljava/lang/String;Ljava/net/InetAddress;)Ljava/util/List<Lorg/apache/cassandra/dht/Range<Lorg/apache/cassandra/dht/Token;>;>;
MethodParameters:
Name Flags
keyspaceName
endpoint
public void calculatePendingRanges(org.apache.cassandra.locator.AbstractReplicationStrategy, java.lang.String);
descriptor: (Lorg/apache/cassandra/locator/AbstractReplicationStrategy;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=12, args_size=3
start local 0 start local 1 start local 2 0: invokestatic java.lang.System.currentTimeMillis:()J
lstore 3
start local 3 1: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.pendingRanges:Ljava/util/concurrent/ConcurrentMap;
dup
astore 5
monitorenter
2: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.lock:()V
3: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.bootstrapTokens:Lorg/apache/cassandra/utils/BiMultiValMap;
invokevirtual org.apache.cassandra.utils.BiMultiValMap.isEmpty:()Z
ifeq 10
aload 0
getfield org.apache.cassandra.locator.TokenMetadata.leavingEndpoints:Ljava/util/Set;
invokeinterface java.util.Set.isEmpty:()Z
ifeq 10
aload 0
getfield org.apache.cassandra.locator.TokenMetadata.movingEndpoints:Ljava/util/Set;
invokeinterface java.util.Set.isEmpty:()Z
ifeq 10
4: getstatic org.apache.cassandra.locator.TokenMetadata.logger:Lorg/slf4j/Logger;
invokeinterface org.slf4j.Logger.isTraceEnabled:()Z
ifeq 6
5: getstatic org.apache.cassandra.locator.TokenMetadata.logger:Lorg/slf4j/Logger;
ldc "No bootstrapping, leaving or moving nodes -> empty pending ranges for {}"
aload 2
invokeinterface org.slf4j.Logger.trace:(Ljava/lang/String;Ljava/lang/Object;)V
6: StackMap locals: long java.util.concurrent.ConcurrentMap
StackMap stack:
aload 0
getfield org.apache.cassandra.locator.TokenMetadata.pendingRanges:Ljava/util/concurrent/ConcurrentMap;
aload 2
new org.apache.cassandra.locator.PendingRangeMaps
dup
invokespecial org.apache.cassandra.locator.PendingRangeMaps.<init>:()V
invokeinterface java.util.concurrent.ConcurrentMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
7: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
8: aload 5
monitorexit
9: return
10: StackMap locals:
StackMap stack:
getstatic org.apache.cassandra.locator.TokenMetadata.logger:Lorg/slf4j/Logger;
invokeinterface org.slf4j.Logger.isDebugEnabled:()Z
ifeq 12
11: getstatic org.apache.cassandra.locator.TokenMetadata.logger:Lorg/slf4j/Logger;
ldc "Starting pending range calculation for {}"
aload 2
invokeinterface org.slf4j.Logger.debug:(Ljava/lang/String;Ljava/lang/Object;)V
12: StackMap locals:
StackMap stack:
new org.apache.cassandra.utils.BiMultiValMap
dup
aload 0
getfield org.apache.cassandra.locator.TokenMetadata.bootstrapTokens:Lorg/apache/cassandra/utils/BiMultiValMap;
invokespecial org.apache.cassandra.utils.BiMultiValMap.<init>:(Lorg/apache/cassandra/utils/BiMultiValMap;)V
astore 6
start local 6 13: new java.util.HashSet
dup
aload 0
getfield org.apache.cassandra.locator.TokenMetadata.leavingEndpoints:Ljava/util/Set;
invokespecial java.util.HashSet.<init>:(Ljava/util/Collection;)V
astore 7
start local 7 14: new java.util.HashSet
dup
aload 0
getfield org.apache.cassandra.locator.TokenMetadata.movingEndpoints:Ljava/util/Set;
invokespecial java.util.HashSet.<init>:(Ljava/util/Collection;)V
astore 8
start local 8 15: aload 0
invokevirtual org.apache.cassandra.locator.TokenMetadata.cloneOnlyTokenMap:()Lorg/apache/cassandra/locator/TokenMetadata;
astore 9
start local 9 16: goto 20
end local 9 end local 8 end local 7 end local 6 17: StackMap locals:
StackMap stack: java.lang.Throwable
astore 10
18: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
19: aload 10
athrow
start local 6 start local 7 start local 8 start local 9 20: StackMap locals: org.apache.cassandra.locator.TokenMetadata org.apache.cassandra.locator.AbstractReplicationStrategy java.lang.String long java.util.concurrent.ConcurrentMap org.apache.cassandra.utils.BiMultiValMap java.util.Set java.util.Set org.apache.cassandra.locator.TokenMetadata
StackMap stack:
aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
21: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.pendingRanges:Ljava/util/concurrent/ConcurrentMap;
aload 2
aload 1
aload 9
aload 6
22: aload 7
aload 8
23: invokestatic org.apache.cassandra.locator.TokenMetadata.calculatePendingRanges:(Lorg/apache/cassandra/locator/AbstractReplicationStrategy;Lorg/apache/cassandra/locator/TokenMetadata;Lorg/apache/cassandra/utils/BiMultiValMap;Ljava/util/Set;Ljava/util/Set;)Lorg/apache/cassandra/locator/PendingRangeMaps;
invokeinterface java.util.concurrent.ConcurrentMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
24: invokestatic java.lang.System.currentTimeMillis:()J
lload 3
lsub
lstore 10
start local 10 25: getstatic org.apache.cassandra.locator.TokenMetadata.logger:Lorg/slf4j/Logger;
invokeinterface org.slf4j.Logger.isDebugEnabled:()Z
ifeq 27
26: getstatic org.apache.cassandra.locator.TokenMetadata.logger:Lorg/slf4j/Logger;
ldc "Pending range calculation for {} completed (took: {}ms)"
aload 2
lload 10
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
invokeinterface org.slf4j.Logger.debug:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
27: StackMap locals: long
StackMap stack:
getstatic org.apache.cassandra.locator.TokenMetadata.logger:Lorg/slf4j/Logger;
invokeinterface org.slf4j.Logger.isTraceEnabled:()Z
ifeq 31
28: getstatic org.apache.cassandra.locator.TokenMetadata.logger:Lorg/slf4j/Logger;
ldc "Calculated pending ranges for {}:\n{}"
aload 2
aload 0
getfield org.apache.cassandra.locator.TokenMetadata.pendingRanges:Ljava/util/concurrent/ConcurrentMap;
invokeinterface java.util.concurrent.ConcurrentMap.isEmpty:()Z
ifeq 29
ldc "<empty>"
goto 30
StackMap locals: org.apache.cassandra.locator.TokenMetadata org.apache.cassandra.locator.AbstractReplicationStrategy java.lang.String long java.util.concurrent.ConcurrentMap org.apache.cassandra.utils.BiMultiValMap java.util.Set java.util.Set org.apache.cassandra.locator.TokenMetadata long
StackMap stack: org.slf4j.Logger java.lang.String java.lang.String
29: aload 0
invokevirtual org.apache.cassandra.locator.TokenMetadata.printPendingRanges:()Ljava/lang/String;
StackMap locals: org.apache.cassandra.locator.TokenMetadata org.apache.cassandra.locator.AbstractReplicationStrategy java.lang.String long java.util.concurrent.ConcurrentMap org.apache.cassandra.utils.BiMultiValMap java.util.Set java.util.Set org.apache.cassandra.locator.TokenMetadata long
StackMap stack: org.slf4j.Logger java.lang.String java.lang.String java.lang.String
30: invokeinterface org.slf4j.Logger.trace:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
end local 10 end local 9 end local 8 end local 7 end local 6 31: StackMap locals: org.apache.cassandra.locator.TokenMetadata org.apache.cassandra.locator.AbstractReplicationStrategy java.lang.String long java.util.concurrent.ConcurrentMap
StackMap stack:
aload 5
monitorexit
32: goto 35
StackMap locals:
StackMap stack: java.lang.Throwable
33: aload 5
monitorexit
34: athrow
35: StackMap locals:
StackMap stack:
return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 36 0 this Lorg/apache/cassandra/locator/TokenMetadata;
0 36 1 strategy Lorg/apache/cassandra/locator/AbstractReplicationStrategy;
0 36 2 keyspaceName Ljava/lang/String;
1 36 3 startedAt J
13 17 6 bootstrapTokensClone Lorg/apache/cassandra/utils/BiMultiValMap<Lorg/apache/cassandra/dht/Token;Ljava/net/InetAddress;>;
20 31 6 bootstrapTokensClone Lorg/apache/cassandra/utils/BiMultiValMap<Lorg/apache/cassandra/dht/Token;Ljava/net/InetAddress;>;
14 17 7 leavingEndpointsClone Ljava/util/Set<Ljava/net/InetAddress;>;
20 31 7 leavingEndpointsClone Ljava/util/Set<Ljava/net/InetAddress;>;
15 17 8 movingEndpointsClone Ljava/util/Set<Lorg/apache/cassandra/utils/Pair<Lorg/apache/cassandra/dht/Token;Ljava/net/InetAddress;>;>;
20 31 8 movingEndpointsClone Ljava/util/Set<Lorg/apache/cassandra/utils/Pair<Lorg/apache/cassandra/dht/Token;Ljava/net/InetAddress;>;>;
16 17 9 metadata Lorg/apache/cassandra/locator/TokenMetadata;
20 31 9 metadata Lorg/apache/cassandra/locator/TokenMetadata;
25 31 10 took J
Exception table:
from to target type
3 7 17 any
10 17 17 any
2 9 33 any
10 32 33 any
33 34 33 any
MethodParameters:
Name Flags
strategy
keyspaceName
private static org.apache.cassandra.locator.PendingRangeMaps calculatePendingRanges(org.apache.cassandra.locator.AbstractReplicationStrategy, org.apache.cassandra.locator.TokenMetadata, org.apache.cassandra.utils.BiMultiValMap<org.apache.cassandra.dht.Token, java.net.InetAddress>, java.util.Set<java.net.InetAddress>, java.util.Set<org.apache.cassandra.utils.Pair<org.apache.cassandra.dht.Token, java.net.InetAddress>>);
descriptor: (Lorg/apache/cassandra/locator/AbstractReplicationStrategy;Lorg/apache/cassandra/locator/TokenMetadata;Lorg/apache/cassandra/utils/BiMultiValMap;Ljava/util/Set;Ljava/util/Set;)Lorg/apache/cassandra/locator/PendingRangeMaps;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=27, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: new org.apache.cassandra.locator.PendingRangeMaps
dup
invokespecial org.apache.cassandra.locator.PendingRangeMaps.<init>:()V
astore 5
start local 5 1: aload 0
aload 1
invokevirtual org.apache.cassandra.locator.AbstractReplicationStrategy.getAddressRanges:(Lorg/apache/cassandra/locator/TokenMetadata;)Lcom/google/common/collect/Multimap;
astore 6
start local 6 2: aload 1
invokevirtual org.apache.cassandra.locator.TokenMetadata.cloneOnlyTokenMap:()Lorg/apache/cassandra/locator/TokenMetadata;
aload 3
invokestatic org.apache.cassandra.locator.TokenMetadata.removeEndpoints:(Lorg/apache/cassandra/locator/TokenMetadata;Ljava/util/Set;)Lorg/apache/cassandra/locator/TokenMetadata;
astore 7
start local 7 3: new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
astore 8
start local 8 4: aload 3
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 10
goto 7
StackMap locals: org.apache.cassandra.locator.AbstractReplicationStrategy org.apache.cassandra.locator.TokenMetadata org.apache.cassandra.utils.BiMultiValMap java.util.Set java.util.Set org.apache.cassandra.locator.PendingRangeMaps com.google.common.collect.Multimap org.apache.cassandra.locator.TokenMetadata java.util.Set top java.util.Iterator
StackMap stack:
5: aload 10
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.net.InetAddress
astore 9
start local 9 6: aload 8
aload 6
aload 9
invokeinterface com.google.common.collect.Multimap.get:(Ljava/lang/Object;)Ljava/util/Collection;
invokeinterface java.util.Set.addAll:(Ljava/util/Collection;)Z
pop
end local 9 7: StackMap locals:
StackMap stack:
aload 10
invokeinterface java.util.Iterator.hasNext:()Z
ifne 5
8: aload 8
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 10
goto 16
StackMap locals:
StackMap stack:
9: aload 10
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.dht.Range
astore 9
start local 9 10: aload 0
aload 9
getfield org.apache.cassandra.dht.Range.right:Lorg/apache/cassandra/dht/RingPosition;
checkcast org.apache.cassandra.dht.Token
aload 1
invokevirtual org.apache.cassandra.locator.AbstractReplicationStrategy.calculateNaturalEndpoints:(Lorg/apache/cassandra/dht/Token;Lorg/apache/cassandra/locator/TokenMetadata;)Ljava/util/List;
invokestatic com.google.common.collect.ImmutableSet.copyOf:(Ljava/util/Collection;)Lcom/google/common/collect/ImmutableSet;
astore 11
start local 11 11: aload 0
aload 9
getfield org.apache.cassandra.dht.Range.right:Lorg/apache/cassandra/dht/RingPosition;
checkcast org.apache.cassandra.dht.Token
aload 7
invokevirtual org.apache.cassandra.locator.AbstractReplicationStrategy.calculateNaturalEndpoints:(Lorg/apache/cassandra/dht/Token;Lorg/apache/cassandra/locator/TokenMetadata;)Ljava/util/List;
invokestatic com.google.common.collect.ImmutableSet.copyOf:(Ljava/util/Collection;)Lcom/google/common/collect/ImmutableSet;
astore 12
start local 12 12: aload 12
aload 11
invokestatic com.google.common.collect.Sets.difference:(Ljava/util/Set;Ljava/util/Set;)Lcom/google/common/collect/Sets$SetView;
invokevirtual com.google.common.collect.Sets$SetView.iterator:()Ljava/util/Iterator;
astore 14
goto 15
StackMap locals: org.apache.cassandra.locator.AbstractReplicationStrategy org.apache.cassandra.locator.TokenMetadata org.apache.cassandra.utils.BiMultiValMap java.util.Set java.util.Set org.apache.cassandra.locator.PendingRangeMaps com.google.common.collect.Multimap org.apache.cassandra.locator.TokenMetadata java.util.Set org.apache.cassandra.dht.Range java.util.Iterator java.util.Set java.util.Set top java.util.Iterator
StackMap stack:
13: aload 14
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.net.InetAddress
astore 13
start local 13 14: aload 5
aload 9
aload 13
invokevirtual org.apache.cassandra.locator.PendingRangeMaps.addPendingRange:(Lorg/apache/cassandra/dht/Range;Ljava/net/InetAddress;)V
end local 13 15: StackMap locals:
StackMap stack:
aload 14
invokeinterface java.util.Iterator.hasNext:()Z
ifne 13
end local 12 end local 11 end local 9 16: StackMap locals: org.apache.cassandra.locator.AbstractReplicationStrategy org.apache.cassandra.locator.TokenMetadata org.apache.cassandra.utils.BiMultiValMap java.util.Set java.util.Set org.apache.cassandra.locator.PendingRangeMaps com.google.common.collect.Multimap org.apache.cassandra.locator.TokenMetadata java.util.Set top java.util.Iterator
StackMap stack:
aload 10
invokeinterface java.util.Iterator.hasNext:()Z
ifne 9
17: aload 2
invokevirtual org.apache.cassandra.utils.BiMultiValMap.inverse:()Lcom/google/common/collect/Multimap;
astore 9
start local 9 18: aload 9
invokeinterface com.google.common.collect.Multimap.keySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 11
goto 27
StackMap locals: org.apache.cassandra.locator.AbstractReplicationStrategy org.apache.cassandra.locator.TokenMetadata org.apache.cassandra.utils.BiMultiValMap java.util.Set java.util.Set org.apache.cassandra.locator.PendingRangeMaps com.google.common.collect.Multimap org.apache.cassandra.locator.TokenMetadata java.util.Set com.google.common.collect.Multimap top java.util.Iterator
StackMap stack:
19: aload 11
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.net.InetAddress
astore 10
start local 10 20: aload 9
aload 10
invokeinterface com.google.common.collect.Multimap.get:(Ljava/lang/Object;)Ljava/util/Collection;
astore 12
start local 12 21: aload 7
aload 12
aload 10
invokevirtual org.apache.cassandra.locator.TokenMetadata.updateNormalTokens:(Ljava/util/Collection;Ljava/net/InetAddress;)V
22: aload 0
aload 7
invokevirtual org.apache.cassandra.locator.AbstractReplicationStrategy.getAddressRanges:(Lorg/apache/cassandra/locator/TokenMetadata;)Lcom/google/common/collect/Multimap;
aload 10
invokeinterface com.google.common.collect.Multimap.get:(Ljava/lang/Object;)Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 14
goto 25
StackMap locals: org.apache.cassandra.locator.AbstractReplicationStrategy org.apache.cassandra.locator.TokenMetadata org.apache.cassandra.utils.BiMultiValMap java.util.Set java.util.Set org.apache.cassandra.locator.PendingRangeMaps com.google.common.collect.Multimap org.apache.cassandra.locator.TokenMetadata java.util.Set com.google.common.collect.Multimap java.net.InetAddress java.util.Iterator java.util.Collection top java.util.Iterator
StackMap stack:
23: aload 14
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.dht.Range
astore 13
start local 13 24: aload 5
aload 13
aload 10
invokevirtual org.apache.cassandra.locator.PendingRangeMaps.addPendingRange:(Lorg/apache/cassandra/dht/Range;Ljava/net/InetAddress;)V
end local 13 25: StackMap locals:
StackMap stack:
aload 14
invokeinterface java.util.Iterator.hasNext:()Z
ifne 23
26: aload 7
aload 10
invokevirtual org.apache.cassandra.locator.TokenMetadata.removeEndpoint:(Ljava/net/InetAddress;)V
end local 12 end local 10 27: StackMap locals: org.apache.cassandra.locator.AbstractReplicationStrategy org.apache.cassandra.locator.TokenMetadata org.apache.cassandra.utils.BiMultiValMap java.util.Set java.util.Set org.apache.cassandra.locator.PendingRangeMaps com.google.common.collect.Multimap org.apache.cassandra.locator.TokenMetadata java.util.Set com.google.common.collect.Multimap top java.util.Iterator
StackMap stack:
aload 11
invokeinterface java.util.Iterator.hasNext:()Z
ifne 19
28: aload 4
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 11
goto 61
StackMap locals:
StackMap stack:
29: aload 11
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.utils.Pair
astore 10
start local 10 30: new java.util.HashSet
dup
invokespecial java.util.HashSet.<init>:()V
astore 12
start local 12 31: aload 10
getfield org.apache.cassandra.utils.Pair.right:Ljava/lang/Object;
checkcast java.net.InetAddress
astore 13
start local 13 32: aload 0
aload 7
invokevirtual org.apache.cassandra.locator.AbstractReplicationStrategy.getAddressRanges:(Lorg/apache/cassandra/locator/TokenMetadata;)Lcom/google/common/collect/Multimap;
aload 13
invokeinterface com.google.common.collect.Multimap.get:(Ljava/lang/Object;)Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 15
goto 35
StackMap locals: org.apache.cassandra.locator.AbstractReplicationStrategy org.apache.cassandra.locator.TokenMetadata org.apache.cassandra.utils.BiMultiValMap java.util.Set java.util.Set org.apache.cassandra.locator.PendingRangeMaps com.google.common.collect.Multimap org.apache.cassandra.locator.TokenMetadata java.util.Set com.google.common.collect.Multimap org.apache.cassandra.utils.Pair java.util.Iterator java.util.Set java.net.InetAddress top java.util.Iterator
StackMap stack:
33: aload 15
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.dht.Range
astore 14
start local 14 34: aload 12
aload 14
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
end local 14 35: StackMap locals:
StackMap stack:
aload 15
invokeinterface java.util.Iterator.hasNext:()Z
ifne 33
36: aload 7
aload 10
getfield org.apache.cassandra.utils.Pair.left:Ljava/lang/Object;
checkcast org.apache.cassandra.dht.Token
aload 13
invokevirtual org.apache.cassandra.locator.TokenMetadata.updateNormalToken:(Lorg/apache/cassandra/dht/Token;Ljava/net/InetAddress;)V
37: aload 0
aload 7
invokevirtual org.apache.cassandra.locator.AbstractReplicationStrategy.getAddressRanges:(Lorg/apache/cassandra/locator/TokenMetadata;)Lcom/google/common/collect/Multimap;
aload 13
invokeinterface com.google.common.collect.Multimap.get:(Ljava/lang/Object;)Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 15
goto 40
StackMap locals:
StackMap stack:
38: aload 15
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.dht.Range
astore 14
start local 14 39: aload 12
aload 14
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
end local 14 40: StackMap locals:
StackMap stack:
aload 15
invokeinterface java.util.Iterator.hasNext:()Z
ifne 38
41: aload 12
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 15
goto 59
StackMap locals:
StackMap stack:
42: aload 15
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.dht.Range
astore 14
start local 14 43: aload 0
aload 14
getfield org.apache.cassandra.dht.Range.right:Lorg/apache/cassandra/dht/RingPosition;
checkcast org.apache.cassandra.dht.Token
aload 1
invokevirtual org.apache.cassandra.locator.AbstractReplicationStrategy.calculateNaturalEndpoints:(Lorg/apache/cassandra/dht/Token;Lorg/apache/cassandra/locator/TokenMetadata;)Ljava/util/List;
invokestatic com.google.common.collect.ImmutableSet.copyOf:(Ljava/util/Collection;)Lcom/google/common/collect/ImmutableSet;
astore 16
start local 16 44: aload 0
aload 14
getfield org.apache.cassandra.dht.Range.right:Lorg/apache/cassandra/dht/RingPosition;
checkcast org.apache.cassandra.dht.Token
aload 7
invokevirtual org.apache.cassandra.locator.AbstractReplicationStrategy.calculateNaturalEndpoints:(Lorg/apache/cassandra/dht/Token;Lorg/apache/cassandra/locator/TokenMetadata;)Ljava/util/List;
invokestatic com.google.common.collect.ImmutableSet.copyOf:(Ljava/util/Collection;)Lcom/google/common/collect/ImmutableSet;
astore 17
start local 17 45: aload 17
aload 16
invokestatic com.google.common.collect.Sets.difference:(Ljava/util/Set;Ljava/util/Set;)Lcom/google/common/collect/Sets$SetView;
astore 18
start local 18 46: aload 18
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 20
goto 58
StackMap locals: org.apache.cassandra.locator.AbstractReplicationStrategy org.apache.cassandra.locator.TokenMetadata org.apache.cassandra.utils.BiMultiValMap java.util.Set java.util.Set org.apache.cassandra.locator.PendingRangeMaps com.google.common.collect.Multimap org.apache.cassandra.locator.TokenMetadata java.util.Set com.google.common.collect.Multimap org.apache.cassandra.utils.Pair java.util.Iterator java.util.Set java.net.InetAddress org.apache.cassandra.dht.Range java.util.Iterator java.util.Set java.util.Set java.util.Set top java.util.Iterator
StackMap stack:
47: aload 20
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.net.InetAddress
astore 19
start local 19 48: aload 0
aload 7
invokevirtual org.apache.cassandra.locator.AbstractReplicationStrategy.getAddressRanges:(Lorg/apache/cassandra/locator/TokenMetadata;)Lcom/google/common/collect/Multimap;
aload 19
invokeinterface com.google.common.collect.Multimap.get:(Ljava/lang/Object;)Ljava/util/Collection;
astore 21
start local 21 49: aload 0
aload 1
invokevirtual org.apache.cassandra.locator.AbstractReplicationStrategy.getAddressRanges:(Lorg/apache/cassandra/locator/TokenMetadata;)Lcom/google/common/collect/Multimap;
aload 19
invokeinterface com.google.common.collect.Multimap.get:(Ljava/lang/Object;)Ljava/util/Collection;
astore 22
start local 22 50: aload 21
aload 22
invokeinterface java.util.Collection.removeAll:(Ljava/util/Collection;)Z
pop
51: aload 21
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 24
goto 57
StackMap locals: org.apache.cassandra.locator.AbstractReplicationStrategy org.apache.cassandra.locator.TokenMetadata org.apache.cassandra.utils.BiMultiValMap java.util.Set java.util.Set org.apache.cassandra.locator.PendingRangeMaps com.google.common.collect.Multimap org.apache.cassandra.locator.TokenMetadata java.util.Set com.google.common.collect.Multimap org.apache.cassandra.utils.Pair java.util.Iterator java.util.Set java.net.InetAddress org.apache.cassandra.dht.Range java.util.Iterator java.util.Set java.util.Set java.util.Set java.net.InetAddress java.util.Iterator java.util.Collection java.util.Collection top java.util.Iterator
StackMap stack:
52: aload 24
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.dht.Range
astore 23
start local 23 53: aload 23
aload 22
invokevirtual org.apache.cassandra.dht.Range.subtractAll:(Ljava/util/Collection;)Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 26
goto 56
StackMap locals: org.apache.cassandra.locator.AbstractReplicationStrategy org.apache.cassandra.locator.TokenMetadata org.apache.cassandra.utils.BiMultiValMap java.util.Set java.util.Set org.apache.cassandra.locator.PendingRangeMaps com.google.common.collect.Multimap org.apache.cassandra.locator.TokenMetadata java.util.Set com.google.common.collect.Multimap org.apache.cassandra.utils.Pair java.util.Iterator java.util.Set java.net.InetAddress org.apache.cassandra.dht.Range java.util.Iterator java.util.Set java.util.Set java.util.Set java.net.InetAddress java.util.Iterator java.util.Collection java.util.Collection org.apache.cassandra.dht.Range java.util.Iterator top java.util.Iterator
StackMap stack:
54: aload 26
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.dht.Range
astore 25
start local 25 55: aload 5
aload 25
aload 19
invokevirtual org.apache.cassandra.locator.PendingRangeMaps.addPendingRange:(Lorg/apache/cassandra/dht/Range;Ljava/net/InetAddress;)V
end local 25 56: StackMap locals:
StackMap stack:
aload 26
invokeinterface java.util.Iterator.hasNext:()Z
ifne 54
end local 23 57: StackMap locals: org.apache.cassandra.locator.AbstractReplicationStrategy org.apache.cassandra.locator.TokenMetadata org.apache.cassandra.utils.BiMultiValMap java.util.Set java.util.Set org.apache.cassandra.locator.PendingRangeMaps com.google.common.collect.Multimap org.apache.cassandra.locator.TokenMetadata java.util.Set com.google.common.collect.Multimap org.apache.cassandra.utils.Pair java.util.Iterator java.util.Set java.net.InetAddress org.apache.cassandra.dht.Range java.util.Iterator java.util.Set java.util.Set java.util.Set java.net.InetAddress java.util.Iterator java.util.Collection java.util.Collection top java.util.Iterator
StackMap stack:
aload 24
invokeinterface java.util.Iterator.hasNext:()Z
ifne 52
end local 22 end local 21 end local 19 58: StackMap locals: org.apache.cassandra.locator.AbstractReplicationStrategy org.apache.cassandra.locator.TokenMetadata org.apache.cassandra.utils.BiMultiValMap java.util.Set java.util.Set org.apache.cassandra.locator.PendingRangeMaps com.google.common.collect.Multimap org.apache.cassandra.locator.TokenMetadata java.util.Set com.google.common.collect.Multimap org.apache.cassandra.utils.Pair java.util.Iterator java.util.Set java.net.InetAddress org.apache.cassandra.dht.Range java.util.Iterator java.util.Set java.util.Set java.util.Set top java.util.Iterator
StackMap stack:
aload 20
invokeinterface java.util.Iterator.hasNext:()Z
ifne 47
end local 18 end local 17 end local 16 end local 14 59: StackMap locals: org.apache.cassandra.locator.AbstractReplicationStrategy org.apache.cassandra.locator.TokenMetadata org.apache.cassandra.utils.BiMultiValMap java.util.Set java.util.Set org.apache.cassandra.locator.PendingRangeMaps com.google.common.collect.Multimap org.apache.cassandra.locator.TokenMetadata java.util.Set com.google.common.collect.Multimap org.apache.cassandra.utils.Pair java.util.Iterator java.util.Set java.net.InetAddress top java.util.Iterator
StackMap stack:
aload 15
invokeinterface java.util.Iterator.hasNext:()Z
ifne 42
60: aload 7
aload 13
invokevirtual org.apache.cassandra.locator.TokenMetadata.removeEndpoint:(Ljava/net/InetAddress;)V
end local 13 end local 12 end local 10 61: StackMap locals: org.apache.cassandra.locator.AbstractReplicationStrategy org.apache.cassandra.locator.TokenMetadata org.apache.cassandra.utils.BiMultiValMap java.util.Set java.util.Set org.apache.cassandra.locator.PendingRangeMaps com.google.common.collect.Multimap org.apache.cassandra.locator.TokenMetadata java.util.Set com.google.common.collect.Multimap top java.util.Iterator
StackMap stack:
aload 11
invokeinterface java.util.Iterator.hasNext:()Z
ifne 29
62: aload 5
areturn
end local 9 end local 8 end local 7 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 63 0 strategy Lorg/apache/cassandra/locator/AbstractReplicationStrategy;
0 63 1 metadata Lorg/apache/cassandra/locator/TokenMetadata;
0 63 2 bootstrapTokens Lorg/apache/cassandra/utils/BiMultiValMap<Lorg/apache/cassandra/dht/Token;Ljava/net/InetAddress;>;
0 63 3 leavingEndpoints Ljava/util/Set<Ljava/net/InetAddress;>;
0 63 4 movingEndpoints Ljava/util/Set<Lorg/apache/cassandra/utils/Pair<Lorg/apache/cassandra/dht/Token;Ljava/net/InetAddress;>;>;
1 63 5 newPendingRanges Lorg/apache/cassandra/locator/PendingRangeMaps;
2 63 6 addressRanges Lcom/google/common/collect/Multimap<Ljava/net/InetAddress;Lorg/apache/cassandra/dht/Range<Lorg/apache/cassandra/dht/Token;>;>;
3 63 7 allLeftMetadata Lorg/apache/cassandra/locator/TokenMetadata;
4 63 8 affectedRanges Ljava/util/Set<Lorg/apache/cassandra/dht/Range<Lorg/apache/cassandra/dht/Token;>;>;
6 7 9 endpoint Ljava/net/InetAddress;
10 16 9 range Lorg/apache/cassandra/dht/Range<Lorg/apache/cassandra/dht/Token;>;
11 16 11 currentEndpoints Ljava/util/Set<Ljava/net/InetAddress;>;
12 16 12 newEndpoints Ljava/util/Set<Ljava/net/InetAddress;>;
14 15 13 address Ljava/net/InetAddress;
18 63 9 bootstrapAddresses Lcom/google/common/collect/Multimap<Ljava/net/InetAddress;Lorg/apache/cassandra/dht/Token;>;
20 27 10 endpoint Ljava/net/InetAddress;
21 27 12 tokens Ljava/util/Collection<Lorg/apache/cassandra/dht/Token;>;
24 25 13 range Lorg/apache/cassandra/dht/Range<Lorg/apache/cassandra/dht/Token;>;
30 61 10 moving Lorg/apache/cassandra/utils/Pair<Lorg/apache/cassandra/dht/Token;Ljava/net/InetAddress;>;
31 61 12 moveAffectedRanges Ljava/util/Set<Lorg/apache/cassandra/dht/Range<Lorg/apache/cassandra/dht/Token;>;>;
32 61 13 endpoint Ljava/net/InetAddress;
34 35 14 range Lorg/apache/cassandra/dht/Range<Lorg/apache/cassandra/dht/Token;>;
39 40 14 range Lorg/apache/cassandra/dht/Range<Lorg/apache/cassandra/dht/Token;>;
43 59 14 range Lorg/apache/cassandra/dht/Range<Lorg/apache/cassandra/dht/Token;>;
44 59 16 currentEndpoints Ljava/util/Set<Ljava/net/InetAddress;>;
45 59 17 newEndpoints Ljava/util/Set<Ljava/net/InetAddress;>;
46 59 18 difference Ljava/util/Set<Ljava/net/InetAddress;>;
48 58 19 address Ljava/net/InetAddress;
49 58 21 newRanges Ljava/util/Collection<Lorg/apache/cassandra/dht/Range<Lorg/apache/cassandra/dht/Token;>;>;
50 58 22 oldRanges Ljava/util/Collection<Lorg/apache/cassandra/dht/Range<Lorg/apache/cassandra/dht/Token;>;>;
53 57 23 newRange Lorg/apache/cassandra/dht/Range<Lorg/apache/cassandra/dht/Token;>;
55 56 25 pendingRange Lorg/apache/cassandra/dht/Range<Lorg/apache/cassandra/dht/Token;>;
Signature: (Lorg/apache/cassandra/locator/AbstractReplicationStrategy;Lorg/apache/cassandra/locator/TokenMetadata;Lorg/apache/cassandra/utils/BiMultiValMap<Lorg/apache/cassandra/dht/Token;Ljava/net/InetAddress;>;Ljava/util/Set<Ljava/net/InetAddress;>;Ljava/util/Set<Lorg/apache/cassandra/utils/Pair<Lorg/apache/cassandra/dht/Token;Ljava/net/InetAddress;>;>;)Lorg/apache/cassandra/locator/PendingRangeMaps;
MethodParameters:
Name Flags
strategy
metadata
bootstrapTokens
leavingEndpoints
movingEndpoints
public org.apache.cassandra.dht.Token getPredecessor(org.apache.cassandra.dht.Token);
descriptor: (Lorg/apache/cassandra/dht/Token;)Lorg/apache/cassandra/dht/Token;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.apache.cassandra.locator.TokenMetadata.sortedTokens:()Ljava/util/ArrayList;
astore 2
start local 2 1: aload 2
aload 1
invokestatic java.util.Collections.binarySearch:(Ljava/util/List;Ljava/lang/Object;)I
istore 3
start local 3 2: getstatic org.apache.cassandra.locator.TokenMetadata.$assertionsDisabled:Z
ifne 3
iload 3
ifge 3
new java.lang.AssertionError
dup
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " not found in "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual org.apache.cassandra.locator.TokenMetadata.tokenToEndpointMapKeysAsStrings:()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.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
3: StackMap locals: java.util.List int
StackMap stack:
iload 3
ifne 4
aload 2
aload 2
invokeinterface java.util.List.size:()I
iconst_1
isub
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.apache.cassandra.dht.Token
goto 5
StackMap locals:
StackMap stack:
4: aload 2
iload 3
iconst_1
isub
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.apache.cassandra.dht.Token
StackMap locals:
StackMap stack: org.apache.cassandra.dht.Token
5: areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/cassandra/locator/TokenMetadata;
0 6 1 token Lorg/apache/cassandra/dht/Token;
1 6 2 tokens Ljava/util/List<Lorg/apache/cassandra/dht/Token;>;
2 6 3 index I
MethodParameters:
Name Flags
token
public org.apache.cassandra.dht.Token getSuccessor(org.apache.cassandra.dht.Token);
descriptor: (Lorg/apache/cassandra/dht/Token;)Lorg/apache/cassandra/dht/Token;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.apache.cassandra.locator.TokenMetadata.sortedTokens:()Ljava/util/ArrayList;
astore 2
start local 2 1: aload 2
aload 1
invokestatic java.util.Collections.binarySearch:(Ljava/util/List;Ljava/lang/Object;)I
istore 3
start local 3 2: getstatic org.apache.cassandra.locator.TokenMetadata.$assertionsDisabled:Z
ifne 3
iload 3
ifge 3
new java.lang.AssertionError
dup
new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc " not found in "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual org.apache.cassandra.locator.TokenMetadata.tokenToEndpointMapKeysAsStrings:()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.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
3: StackMap locals: java.util.List int
StackMap stack:
iload 3
aload 2
invokeinterface java.util.List.size:()I
iconst_1
isub
if_icmpne 4
aload 2
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.apache.cassandra.dht.Token
goto 5
StackMap locals:
StackMap stack:
4: aload 2
iload 3
iconst_1
iadd
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.apache.cassandra.dht.Token
StackMap locals:
StackMap stack: org.apache.cassandra.dht.Token
5: areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/cassandra/locator/TokenMetadata;
0 6 1 token Lorg/apache/cassandra/dht/Token;
1 6 2 tokens Ljava/util/List<Lorg/apache/cassandra/dht/Token;>;
2 6 3 index I
MethodParameters:
Name Flags
token
private java.lang.String tokenToEndpointMapKeysAsStrings();
descriptor: ()Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.lock:()V
1: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.tokenToEndpointMap:Lorg/apache/cassandra/utils/BiMultiValMap;
invokevirtual org.apache.cassandra.utils.BiMultiValMap.keySet:()Ljava/util/Set;
ldc ", "
invokestatic org.apache.commons.lang3.StringUtils.join:(Ljava/lang/Iterable;Ljava/lang/String;)Ljava/lang/String;
astore 2
2: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
3: aload 2
areturn
4: StackMap locals:
StackMap stack: java.lang.Throwable
astore 1
5: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
6: aload 1
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/locator/TokenMetadata;
Exception table:
from to target type
1 2 4 any
public org.apache.cassandra.utils.BiMultiValMap<org.apache.cassandra.dht.Token, java.net.InetAddress> getBootstrapTokens();
descriptor: ()Lorg/apache/cassandra/utils/BiMultiValMap;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.lock:()V
1: new org.apache.cassandra.utils.BiMultiValMap
dup
aload 0
getfield org.apache.cassandra.locator.TokenMetadata.bootstrapTokens:Lorg/apache/cassandra/utils/BiMultiValMap;
invokespecial org.apache.cassandra.utils.BiMultiValMap.<init>:(Lorg/apache/cassandra/utils/BiMultiValMap;)V
astore 2
2: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
3: aload 2
areturn
4: StackMap locals:
StackMap stack: java.lang.Throwable
astore 1
5: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
6: aload 1
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/locator/TokenMetadata;
Exception table:
from to target type
1 2 4 any
Signature: ()Lorg/apache/cassandra/utils/BiMultiValMap<Lorg/apache/cassandra/dht/Token;Ljava/net/InetAddress;>;
public java.util.Set<java.net.InetAddress> getAllEndpoints();
descriptor: ()Ljava/util/Set;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=3, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.lock:()V
1: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.endpointToHostIdMap:Lcom/google/common/collect/BiMap;
invokeinterface com.google.common.collect.BiMap.keySet:()Ljava/util/Set;
invokestatic com.google.common.collect.ImmutableSet.copyOf:(Ljava/util/Collection;)Lcom/google/common/collect/ImmutableSet;
astore 2
2: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
3: aload 2
areturn
4: StackMap locals:
StackMap stack: java.lang.Throwable
astore 1
5: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
6: aload 1
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/locator/TokenMetadata;
Exception table:
from to target type
1 2 4 any
Signature: ()Ljava/util/Set<Ljava/net/InetAddress;>;
public java.util.Set<java.net.InetAddress> getLeavingEndpoints();
descriptor: ()Ljava/util/Set;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=3, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.lock:()V
1: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.leavingEndpoints:Ljava/util/Set;
invokestatic com.google.common.collect.ImmutableSet.copyOf:(Ljava/util/Collection;)Lcom/google/common/collect/ImmutableSet;
astore 2
2: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
3: aload 2
areturn
4: StackMap locals:
StackMap stack: java.lang.Throwable
astore 1
5: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
6: aload 1
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/locator/TokenMetadata;
Exception table:
from to target type
1 2 4 any
Signature: ()Ljava/util/Set<Ljava/net/InetAddress;>;
public java.util.Set<org.apache.cassandra.utils.Pair<org.apache.cassandra.dht.Token, java.net.InetAddress>> getMovingEndpoints();
descriptor: ()Ljava/util/Set;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=3, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.lock:()V
1: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.movingEndpoints:Ljava/util/Set;
invokestatic com.google.common.collect.ImmutableSet.copyOf:(Ljava/util/Collection;)Lcom/google/common/collect/ImmutableSet;
astore 2
2: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
3: aload 2
areturn
4: StackMap locals:
StackMap stack: java.lang.Throwable
astore 1
5: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
6: aload 1
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/locator/TokenMetadata;
Exception table:
from to target type
1 2 4 any
Signature: ()Ljava/util/Set<Lorg/apache/cassandra/utils/Pair<Lorg/apache/cassandra/dht/Token;Ljava/net/InetAddress;>;>;
public static int firstTokenIndex(java.util.ArrayList<org.apache.cassandra.dht.Token>, org.apache.cassandra.dht.Token, );
descriptor: (Ljava/util/ArrayList;Lorg/apache/cassandra/dht/Token;Z)I
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=4, args_size=3
start local 0 start local 1 start local 2 0: getstatic org.apache.cassandra.locator.TokenMetadata.$assertionsDisabled:Z
ifne 1
aload 0
invokevirtual java.util.ArrayList.size:()I
ifgt 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
aload 1
invokestatic java.util.Collections.binarySearch:(Ljava/util/List;Ljava/lang/Object;)I
istore 3
start local 3 2: iload 3
ifge 8
3: iload 3
iconst_1
iadd
iconst_m1
imul
istore 3
4: iload 3
aload 0
invokevirtual java.util.ArrayList.size:()I
if_icmplt 8
5: iload 2
ifeq 6
iconst_m1
goto 7
StackMap locals: int
StackMap stack:
6: iconst_0
StackMap locals:
StackMap stack: int
7: istore 3
8: StackMap locals:
StackMap stack:
iload 3
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 ring Ljava/util/ArrayList<Lorg/apache/cassandra/dht/Token;>;
0 9 1 start Lorg/apache/cassandra/dht/Token;
0 9 2 insertMin Z
2 9 3 i I
Signature: (Ljava/util/ArrayList<Lorg/apache/cassandra/dht/Token;>;Lorg/apache/cassandra/dht/Token;Z)I
MethodParameters:
Name Flags
ring final
start
insertMin
public static org.apache.cassandra.dht.Token firstToken(java.util.ArrayList<org.apache.cassandra.dht.Token>, org.apache.cassandra.dht.Token);
descriptor: (Ljava/util/ArrayList;Lorg/apache/cassandra/dht/Token;)Lorg/apache/cassandra/dht/Token;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 0
aload 1
iconst_0
invokestatic org.apache.cassandra.locator.TokenMetadata.firstTokenIndex:(Ljava/util/ArrayList;Lorg/apache/cassandra/dht/Token;Z)I
invokevirtual java.util.ArrayList.get:(I)Ljava/lang/Object;
checkcast org.apache.cassandra.dht.Token
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 ring Ljava/util/ArrayList<Lorg/apache/cassandra/dht/Token;>;
0 1 1 start Lorg/apache/cassandra/dht/Token;
Signature: (Ljava/util/ArrayList<Lorg/apache/cassandra/dht/Token;>;Lorg/apache/cassandra/dht/Token;)Lorg/apache/cassandra/dht/Token;
MethodParameters:
Name Flags
ring final
start
public static java.util.Iterator<org.apache.cassandra.dht.Token> ringIterator(java.util.ArrayList<org.apache.cassandra.dht.Token>, org.apache.cassandra.dht.Token, boolean);
descriptor: (Ljava/util/ArrayList;Lorg/apache/cassandra/dht/Token;Z)Ljava/util/Iterator;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual java.util.ArrayList.isEmpty:()Z
ifeq 4
1: iload 2
ifeq 2
aload 1
invokevirtual org.apache.cassandra.dht.Token.getPartitioner:()Lorg/apache/cassandra/dht/IPartitioner;
invokeinterface org.apache.cassandra.dht.IPartitioner.getMinimumToken:()Lorg/apache/cassandra/dht/Token;
invokestatic com.google.common.collect.Iterators.singletonIterator:(Ljava/lang/Object;)Lcom/google/common/collect/UnmodifiableIterator;
goto 3
2: StackMap locals:
StackMap stack:
invokestatic java.util.Collections.emptyIterator:()Ljava/util/Iterator;
3: StackMap locals:
StackMap stack: java.util.Iterator
areturn
4: StackMap locals:
StackMap stack:
iload 2
ifeq 5
aload 0
iconst_0
invokevirtual java.util.ArrayList.get:(I)Ljava/lang/Object;
checkcast org.apache.cassandra.dht.Token
invokevirtual org.apache.cassandra.dht.Token.isMinimum:()Z
ifne 5
iconst_1
goto 6
StackMap locals:
StackMap stack:
5: iconst_0
StackMap locals:
StackMap stack: int
6: istore 3
start local 3 7: aload 0
aload 1
iload 3
invokestatic org.apache.cassandra.locator.TokenMetadata.firstTokenIndex:(Ljava/util/ArrayList;Lorg/apache/cassandra/dht/Token;Z)I
istore 4
start local 4 8: new org.apache.cassandra.locator.TokenMetadata$2
dup
iload 4
aload 0
iload 3
aload 1
invokespecial org.apache.cassandra.locator.TokenMetadata$2.<init>:(ILjava/util/ArrayList;ZLorg/apache/cassandra/dht/Token;)V
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 ring Ljava/util/ArrayList<Lorg/apache/cassandra/dht/Token;>;
0 9 1 start Lorg/apache/cassandra/dht/Token;
0 9 2 includeMin Z
7 9 3 insertMin Z
8 9 4 startIndex I
Signature: (Ljava/util/ArrayList<Lorg/apache/cassandra/dht/Token;>;Lorg/apache/cassandra/dht/Token;Z)Ljava/util/Iterator<Lorg/apache/cassandra/dht/Token;>;
MethodParameters:
Name Flags
ring final
start
includeMin
public void clearUnsafe();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.writeLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.lock:()V
1: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.tokenToEndpointMap:Lorg/apache/cassandra/utils/BiMultiValMap;
invokevirtual org.apache.cassandra.utils.BiMultiValMap.clear:()V
2: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.endpointToHostIdMap:Lcom/google/common/collect/BiMap;
invokeinterface com.google.common.collect.BiMap.clear:()V
3: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.bootstrapTokens:Lorg/apache/cassandra/utils/BiMultiValMap;
invokevirtual org.apache.cassandra.utils.BiMultiValMap.clear:()V
4: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.leavingEndpoints:Ljava/util/Set;
invokeinterface java.util.Set.clear:()V
5: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.pendingRanges:Ljava/util/concurrent/ConcurrentMap;
invokeinterface java.util.concurrent.ConcurrentMap.clear:()V
6: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.movingEndpoints:Ljava/util/Set;
invokeinterface java.util.Set.clear:()V
7: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.sortedTokens:Ljava/util/ArrayList;
invokevirtual java.util.ArrayList.clear:()V
8: aload 0
invokestatic org.apache.cassandra.locator.TokenMetadata$Topology.empty:()Lorg/apache/cassandra/locator/TokenMetadata$Topology;
putfield org.apache.cassandra.locator.TokenMetadata.topology:Lorg/apache/cassandra/locator/TokenMetadata$Topology;
9: aload 0
invokevirtual org.apache.cassandra.locator.TokenMetadata.invalidateCachedRings:()V
10: goto 14
11: StackMap locals:
StackMap stack: java.lang.Throwable
astore 1
12: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.writeLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
13: aload 1
athrow
14: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.writeLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
15: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lorg/apache/cassandra/locator/TokenMetadata;
Exception table:
from to target type
1 11 11 any
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=7, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 1
start local 1 1: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.lock:()V
2: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.tokenToEndpointMap:Lorg/apache/cassandra/utils/BiMultiValMap;
invokevirtual org.apache.cassandra.utils.BiMultiValMap.inverse:()Lcom/google/common/collect/Multimap;
astore 2
start local 2 3: aload 2
invokeinterface com.google.common.collect.Multimap.keySet:()Ljava/util/Set;
astore 3
start local 3 4: aload 3
invokeinterface java.util.Set.isEmpty:()Z
ifne 14
5: aload 1
ldc "Normal Tokens:"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
6: aload 1
ldc "line.separator"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
7: aload 3
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 5
goto 13
StackMap locals: org.apache.cassandra.locator.TokenMetadata java.lang.StringBuilder com.google.common.collect.Multimap java.util.Set top java.util.Iterator
StackMap stack:
8: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.net.InetAddress
astore 4
start local 4 9: aload 1
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
pop
10: aload 1
bipush 58
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
11: aload 1
aload 2
aload 4
invokeinterface com.google.common.collect.Multimap.get:(Ljava/lang/Object;)Ljava/util/Collection;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
pop
12: aload 1
ldc "line.separator"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
end local 4 13: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 8
14: StackMap locals: org.apache.cassandra.locator.TokenMetadata java.lang.StringBuilder com.google.common.collect.Multimap java.util.Set
StackMap stack:
aload 0
getfield org.apache.cassandra.locator.TokenMetadata.bootstrapTokens:Lorg/apache/cassandra/utils/BiMultiValMap;
invokevirtual org.apache.cassandra.utils.BiMultiValMap.isEmpty:()Z
ifne 22
15: aload 1
ldc "Bootstrapping Tokens:"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
16: aload 1
ldc "line.separator"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
17: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.bootstrapTokens:Lorg/apache/cassandra/utils/BiMultiValMap;
invokevirtual org.apache.cassandra.utils.BiMultiValMap.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 5
goto 21
StackMap locals: org.apache.cassandra.locator.TokenMetadata java.lang.StringBuilder com.google.common.collect.Multimap java.util.Set top java.util.Iterator
StackMap stack:
18: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 4
start local 4 19: aload 1
aload 4
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
bipush 58
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
aload 4
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
pop
20: aload 1
ldc "line.separator"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
end local 4 21: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 18
22: StackMap locals: org.apache.cassandra.locator.TokenMetadata java.lang.StringBuilder com.google.common.collect.Multimap java.util.Set
StackMap stack:
aload 0
getfield org.apache.cassandra.locator.TokenMetadata.leavingEndpoints:Ljava/util/Set;
invokeinterface java.util.Set.isEmpty:()Z
ifne 30
23: aload 1
ldc "Leaving Endpoints:"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
24: aload 1
ldc "line.separator"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
25: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.leavingEndpoints:Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 5
goto 29
StackMap locals: org.apache.cassandra.locator.TokenMetadata java.lang.StringBuilder com.google.common.collect.Multimap java.util.Set top java.util.Iterator
StackMap stack:
26: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.net.InetAddress
astore 4
start local 4 27: aload 1
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
pop
28: aload 1
ldc "line.separator"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
end local 4 29: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 26
30: StackMap locals: org.apache.cassandra.locator.TokenMetadata java.lang.StringBuilder com.google.common.collect.Multimap java.util.Set
StackMap stack:
aload 0
getfield org.apache.cassandra.locator.TokenMetadata.pendingRanges:Ljava/util/concurrent/ConcurrentMap;
invokeinterface java.util.concurrent.ConcurrentMap.isEmpty:()Z
ifne 38
31: aload 1
ldc "Pending Ranges:"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
32: aload 1
ldc "line.separator"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
33: aload 1
aload 0
invokevirtual org.apache.cassandra.locator.TokenMetadata.printPendingRanges:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
end local 3 end local 2 34: goto 38
35: StackMap locals: org.apache.cassandra.locator.TokenMetadata java.lang.StringBuilder
StackMap stack: java.lang.Throwable
astore 6
36: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
37: aload 6
athrow
38: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
39: aload 1
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 40 0 this Lorg/apache/cassandra/locator/TokenMetadata;
1 40 1 sb Ljava/lang/StringBuilder;
3 34 2 endpointToTokenMap Lcom/google/common/collect/Multimap<Ljava/net/InetAddress;Lorg/apache/cassandra/dht/Token;>;
4 34 3 eps Ljava/util/Set<Ljava/net/InetAddress;>;
9 13 4 ep Ljava/net/InetAddress;
19 21 4 entry Ljava/util/Map$Entry<Lorg/apache/cassandra/dht/Token;Ljava/net/InetAddress;>;
27 29 4 ep Ljava/net/InetAddress;
Exception table:
from to target type
2 35 35 any
private java.lang.String printPendingRanges();
descriptor: ()Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=4, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 1
start local 1 1: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.pendingRanges:Ljava/util/concurrent/ConcurrentMap;
invokeinterface java.util.concurrent.ConcurrentMap.values:()Ljava/util/Collection;
invokeinterface java.util.Collection.iterator:()Ljava/util/Iterator;
astore 3
goto 4
StackMap locals: org.apache.cassandra.locator.TokenMetadata java.lang.StringBuilder top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast org.apache.cassandra.locator.PendingRangeMaps
astore 2
start local 2 3: aload 1
aload 2
invokevirtual org.apache.cassandra.locator.PendingRangeMaps.printPendingRanges:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
end local 2 4: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
5: aload 1
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/cassandra/locator/TokenMetadata;
1 6 1 sb Ljava/lang/StringBuilder;
3 4 2 pendingRangeMaps Lorg/apache/cassandra/locator/PendingRangeMaps;
public java.util.Collection<java.net.InetAddress> pendingEndpointsFor(org.apache.cassandra.dht.Token, java.lang.String);
descriptor: (Lorg/apache/cassandra/dht/Token;Ljava/lang/String;)Ljava/util/Collection;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.pendingRanges:Ljava/util/concurrent/ConcurrentMap;
aload 2
invokeinterface java.util.concurrent.ConcurrentMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.apache.cassandra.locator.PendingRangeMaps
astore 3
start local 3 1: aload 3
ifnonnull 3
2: invokestatic java.util.Collections.emptyList:()Ljava/util/List;
areturn
3: StackMap locals: org.apache.cassandra.locator.PendingRangeMaps
StackMap stack:
aload 3
aload 1
invokevirtual org.apache.cassandra.locator.PendingRangeMaps.pendingEndpointsFor:(Lorg/apache/cassandra/dht/Token;)Ljava/util/Collection;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/cassandra/locator/TokenMetadata;
0 4 1 token Lorg/apache/cassandra/dht/Token;
0 4 2 keyspaceName Ljava/lang/String;
1 4 3 pendingRangeMaps Lorg/apache/cassandra/locator/PendingRangeMaps;
Signature: (Lorg/apache/cassandra/dht/Token;Ljava/lang/String;)Ljava/util/Collection<Ljava/net/InetAddress;>;
MethodParameters:
Name Flags
token
keyspaceName
public java.util.Collection<java.net.InetAddress> getWriteEndpoints(org.apache.cassandra.dht.Token, java.lang.String, java.util.Collection<java.net.InetAddress>);
descriptor: (Lorg/apache/cassandra/dht/Token;Ljava/lang/String;Ljava/util/Collection;)Ljava/util/Collection;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 3
aload 0
aload 1
aload 2
invokevirtual org.apache.cassandra.locator.TokenMetadata.pendingEndpointsFor:(Lorg/apache/cassandra/dht/Token;Ljava/lang/String;)Ljava/util/Collection;
invokestatic com.google.common.collect.Iterables.concat:(Ljava/lang/Iterable;Ljava/lang/Iterable;)Ljava/lang/Iterable;
invokestatic com.google.common.collect.ImmutableList.copyOf:(Ljava/lang/Iterable;)Lcom/google/common/collect/ImmutableList;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/locator/TokenMetadata;
0 1 1 token Lorg/apache/cassandra/dht/Token;
0 1 2 keyspaceName Ljava/lang/String;
0 1 3 naturalEndpoints Ljava/util/Collection<Ljava/net/InetAddress;>;
Signature: (Lorg/apache/cassandra/dht/Token;Ljava/lang/String;Ljava/util/Collection<Ljava/net/InetAddress;>;)Ljava/util/Collection<Ljava/net/InetAddress;>;
MethodParameters:
Name Flags
token
keyspaceName
naturalEndpoints
public com.google.common.collect.Multimap<java.net.InetAddress, org.apache.cassandra.dht.Token> getEndpointToTokenMapForReading();
descriptor: ()Lcom/google/common/collect/Multimap;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.lock:()V
1: invokestatic com.google.common.collect.HashMultimap.create:()Lcom/google/common/collect/HashMultimap;
astore 1
start local 1 2: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.tokenToEndpointMap:Lorg/apache/cassandra/utils/BiMultiValMap;
invokevirtual org.apache.cassandra.utils.BiMultiValMap.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 3
goto 5
StackMap locals: org.apache.cassandra.locator.TokenMetadata com.google.common.collect.Multimap top java.util.Iterator
StackMap stack:
3: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 2
start local 2 4: aload 1
aload 2
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast java.net.InetAddress
aload 2
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast org.apache.cassandra.dht.Token
invokeinterface com.google.common.collect.Multimap.put:(Ljava/lang/Object;Ljava/lang/Object;)Z
pop
end local 2 5: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
6: aload 1
astore 5
7: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
8: aload 5
areturn
end local 1 9: StackMap locals: org.apache.cassandra.locator.TokenMetadata
StackMap stack: java.lang.Throwable
astore 4
10: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
11: aload 4
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/apache/cassandra/locator/TokenMetadata;
2 9 1 cloned Lcom/google/common/collect/Multimap<Ljava/net/InetAddress;Lorg/apache/cassandra/dht/Token;>;
4 5 2 entry Ljava/util/Map$Entry<Lorg/apache/cassandra/dht/Token;Ljava/net/InetAddress;>;
Exception table:
from to target type
1 7 9 any
Signature: ()Lcom/google/common/collect/Multimap<Ljava/net/InetAddress;Lorg/apache/cassandra/dht/Token;>;
public java.util.Map<org.apache.cassandra.dht.Token, java.net.InetAddress> getNormalAndBootstrappingTokenToEndpointMap();
descriptor: ()Ljava/util/Map;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.lock:()V
1: new java.util.HashMap
dup
aload 0
getfield org.apache.cassandra.locator.TokenMetadata.tokenToEndpointMap:Lorg/apache/cassandra/utils/BiMultiValMap;
invokevirtual org.apache.cassandra.utils.BiMultiValMap.size:()I
aload 0
getfield org.apache.cassandra.locator.TokenMetadata.bootstrapTokens:Lorg/apache/cassandra/utils/BiMultiValMap;
invokevirtual org.apache.cassandra.utils.BiMultiValMap.size:()I
iadd
invokespecial java.util.HashMap.<init>:(I)V
astore 1
start local 1 2: aload 1
aload 0
getfield org.apache.cassandra.locator.TokenMetadata.tokenToEndpointMap:Lorg/apache/cassandra/utils/BiMultiValMap;
invokeinterface java.util.Map.putAll:(Ljava/util/Map;)V
3: aload 1
aload 0
getfield org.apache.cassandra.locator.TokenMetadata.bootstrapTokens:Lorg/apache/cassandra/utils/BiMultiValMap;
invokeinterface java.util.Map.putAll:(Ljava/util/Map;)V
4: aload 1
astore 3
5: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
6: aload 3
areturn
end local 1 7: StackMap locals:
StackMap stack: java.lang.Throwable
astore 2
8: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.lock:Ljava/util/concurrent/locks/ReadWriteLock;
invokeinterface java.util.concurrent.locks.ReadWriteLock.readLock:()Ljava/util/concurrent/locks/Lock;
invokeinterface java.util.concurrent.locks.Lock.unlock:()V
9: aload 2
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/apache/cassandra/locator/TokenMetadata;
2 7 1 map Ljava/util/Map<Lorg/apache/cassandra/dht/Token;Ljava/net/InetAddress;>;
Exception table:
from to target type
1 5 7 any
Signature: ()Ljava/util/Map<Lorg/apache/cassandra/dht/Token;Ljava/net/InetAddress;>;
public org.apache.cassandra.locator.TokenMetadata$Topology getTopology();
descriptor: ()Lorg/apache/cassandra/locator/TokenMetadata$Topology;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic org.apache.cassandra.locator.TokenMetadata.$assertionsDisabled:Z
ifne 1
aload 0
getstatic org.apache.cassandra.service.StorageService.instance:Lorg/apache/cassandra/service/StorageService;
invokevirtual org.apache.cassandra.service.StorageService.getTokenMetadata:()Lorg/apache/cassandra/locator/TokenMetadata;
if_acmpne 1
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
1: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.locator.TokenMetadata.topology:Lorg/apache/cassandra/locator/TokenMetadata$Topology;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/locator/TokenMetadata;
public long getRingVersion();
descriptor: ()J
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.ringVersion:J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/locator/TokenMetadata;
public void invalidateCachedRings();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
dup
getfield org.apache.cassandra.locator.TokenMetadata.ringVersion:J
lconst_1
ladd
putfield org.apache.cassandra.locator.TokenMetadata.ringVersion:J
1: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.cachedTokenMap:Ljava/util/concurrent/atomic/AtomicReference;
aconst_null
invokevirtual java.util.concurrent.atomic.AtomicReference.set:(Ljava/lang/Object;)V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/locator/TokenMetadata;
public org.apache.cassandra.db.DecoratedKey decorateKey(java.nio.ByteBuffer);
descriptor: (Ljava/nio/ByteBuffer;)Lorg/apache/cassandra/db/DecoratedKey;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.apache.cassandra.locator.TokenMetadata.partitioner:Lorg/apache/cassandra/dht/IPartitioner;
aload 1
invokeinterface org.apache.cassandra.dht.IPartitioner.decorateKey:(Ljava/nio/ByteBuffer;)Lorg/apache/cassandra/db/DecoratedKey;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/locator/TokenMetadata;
0 1 1 key Ljava/nio/ByteBuffer;
MethodParameters:
Name Flags
key
}
SourceFile: "TokenMetadata.java"
NestMembers:
org.apache.cassandra.locator.TokenMetadata$1 org.apache.cassandra.locator.TokenMetadata$2 org.apache.cassandra.locator.TokenMetadata$Topology org.apache.cassandra.locator.TokenMetadata$Topology$Builder
InnerClasses:
public abstract SetView = com.google.common.collect.Sets$SetView of com.google.common.collect.Sets
public abstract Entry = java.util.Map$Entry of java.util.Map
org.apache.cassandra.locator.TokenMetadata$1
org.apache.cassandra.locator.TokenMetadata$2
public Topology = org.apache.cassandra.locator.TokenMetadata$Topology of org.apache.cassandra.locator.TokenMetadata
private Builder = org.apache.cassandra.locator.TokenMetadata$Topology$Builder of org.apache.cassandra.locator.TokenMetadata$Topology