public abstract class org.apache.cassandra.locator.AbstractEndpointSnitch implements org.apache.cassandra.locator.IEndpointSnitch
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: org.apache.cassandra.locator.AbstractEndpointSnitch
super_class: java.lang.Object
{
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/locator/AbstractEndpointSnitch;
public abstract int compareEndpoints(java.net.InetAddress, java.net.InetAddress, java.net.InetAddress);
descriptor: (Ljava/net/InetAddress;Ljava/net/InetAddress;Ljava/net/InetAddress;)I
flags: (0x0401) ACC_PUBLIC, ACC_ABSTRACT
MethodParameters:
Name Flags
target
a1
a2
public java.util.List<java.net.InetAddress> getSortedListByProximity(java.net.InetAddress, java.util.Collection<java.net.InetAddress>);
descriptor: (Ljava/net/InetAddress;Ljava/util/Collection;)Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: new java.util.ArrayList
dup
aload 2
invokespecial java.util.ArrayList.<init>:(Ljava/util/Collection;)V
astore 3
start local 3 1: aload 0
aload 1
aload 3
invokevirtual org.apache.cassandra.locator.AbstractEndpointSnitch.sortByProximity:(Ljava/net/InetAddress;Ljava/util/List;)V
2: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/locator/AbstractEndpointSnitch;
0 3 1 address Ljava/net/InetAddress;
0 3 2 unsortedAddress Ljava/util/Collection<Ljava/net/InetAddress;>;
1 3 3 preferred Ljava/util/List<Ljava/net/InetAddress;>;
Signature: (Ljava/net/InetAddress;Ljava/util/Collection<Ljava/net/InetAddress;>;)Ljava/util/List<Ljava/net/InetAddress;>;
MethodParameters:
Name Flags
address
unsortedAddress
public void sortByProximity(java.net.InetAddress, java.util.List<java.net.InetAddress>);
descriptor: (Ljava/net/InetAddress;Ljava/util/List;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 2
new org.apache.cassandra.locator.AbstractEndpointSnitch$1
dup
aload 0
aload 1
invokespecial org.apache.cassandra.locator.AbstractEndpointSnitch$1.<init>:(Lorg/apache/cassandra/locator/AbstractEndpointSnitch;Ljava/net/InetAddress;)V
invokestatic java.util.Collections.sort:(Ljava/util/List;Ljava/util/Comparator;)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/AbstractEndpointSnitch;
0 2 1 address Ljava/net/InetAddress;
0 2 2 addresses Ljava/util/List<Ljava/net/InetAddress;>;
Signature: (Ljava/net/InetAddress;Ljava/util/List<Ljava/net/InetAddress;>;)V
MethodParameters:
Name Flags
address final
addresses
public void gossiperStarting();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=0, locals=1, args_size=1
start local 0 0: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/locator/AbstractEndpointSnitch;
public boolean isWorthMergingForRangeQuery(java.util.List<java.net.InetAddress>, java.util.List<java.net.InetAddress>, java.util.List<java.net.InetAddress>);
descriptor: (Ljava/util/List;Ljava/util/List;Ljava/util/List;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
aload 1
invokevirtual org.apache.cassandra.locator.AbstractEndpointSnitch.hasRemoteNode:(Ljava/util/List;)Z
istore 4
start local 4 1: iload 4
ifeq 4
2: aload 0
aload 2
invokevirtual org.apache.cassandra.locator.AbstractEndpointSnitch.hasRemoteNode:(Ljava/util/List;)Z
ifne 3
aload 0
aload 3
invokevirtual org.apache.cassandra.locator.AbstractEndpointSnitch.hasRemoteNode:(Ljava/util/List;)Z
ifne 3
iconst_0
goto 5
StackMap locals: int
StackMap stack:
3: iconst_1
goto 5
4: StackMap locals:
StackMap stack:
iconst_1
5: StackMap locals:
StackMap stack: int
ireturn
end local 4 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/AbstractEndpointSnitch;
0 6 1 merged Ljava/util/List<Ljava/net/InetAddress;>;
0 6 2 l1 Ljava/util/List<Ljava/net/InetAddress;>;
0 6 3 l2 Ljava/util/List<Ljava/net/InetAddress;>;
1 6 4 mergedHasRemote Z
Signature: (Ljava/util/List<Ljava/net/InetAddress;>;Ljava/util/List<Ljava/net/InetAddress;>;Ljava/util/List<Ljava/net/InetAddress;>;)Z
MethodParameters:
Name Flags
merged
l1
l2
private boolean hasRemoteNode(java.util.List<java.net.InetAddress>);
descriptor: (Ljava/util/List;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=5, args_size=2
start local 0 start local 1 0: invokestatic org.apache.cassandra.config.DatabaseDescriptor.getLocalDataCenter:()Ljava/lang/String;
astore 2
start local 2 1: aload 1
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 5
StackMap locals: org.apache.cassandra.locator.AbstractEndpointSnitch java.util.List java.lang.String top java.util.Iterator
StackMap stack:
2: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.net.InetAddress
astore 3
start local 3 3: aload 2
aload 0
aload 3
invokevirtual org.apache.cassandra.locator.AbstractEndpointSnitch.getDatacenter:(Ljava/net/InetAddress;)Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifne 5
4: iconst_1
ireturn
end local 3 5: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
6: iconst_0
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/locator/AbstractEndpointSnitch;
0 7 1 l Ljava/util/List<Ljava/net/InetAddress;>;
1 7 2 localDc Ljava/lang/String;
3 5 3 ep Ljava/net/InetAddress;
Signature: (Ljava/util/List<Ljava/net/InetAddress;>;)Z
MethodParameters:
Name Flags
l
}
SourceFile: "AbstractEndpointSnitch.java"
NestMembers:
org.apache.cassandra.locator.AbstractEndpointSnitch$1
InnerClasses:
org.apache.cassandra.locator.AbstractEndpointSnitch$1