final class org.apache.cassandra.locator.NetworkTopologyStrategy$DatacenterEndpoints
minor version: 0
major version: 59
flags: flags: (0x0030) ACC_FINAL, ACC_SUPER
this_class: org.apache.cassandra.locator.NetworkTopologyStrategy$DatacenterEndpoints
super_class: java.lang.Object
{
java.util.Set<java.net.InetAddress> endpoints;
descriptor: Ljava/util/Set;
flags: (0x0000)
Signature: Ljava/util/Set<Ljava/net/InetAddress;>;
java.util.Set<org.apache.cassandra.utils.Pair<java.lang.String, java.lang.String>> racks;
descriptor: Ljava/util/Set;
flags: (0x0000)
Signature: Ljava/util/Set<Lorg/apache/cassandra/utils/Pair<Ljava/lang/String;Ljava/lang/String;>;>;
int rfLeft;
descriptor: I
flags: (0x0000)
int acceptableRackRepeats;
descriptor: I
flags: (0x0000)
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/apache/cassandra/locator/NetworkTopologyStrategy;
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.NetworkTopologyStrategy$DatacenterEndpoints.$assertionsDisabled:Z
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(int, int, int, java.util.Set<java.net.InetAddress>, java.util.Set<org.apache.cassandra.utils.Pair<java.lang.String, java.lang.String>>);
descriptor: (IIILjava/util/Set;Ljava/util/Set;)V
flags: (0x0000)
Code:
stack=3, locals=6, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 4
putfield org.apache.cassandra.locator.NetworkTopologyStrategy$DatacenterEndpoints.endpoints:Ljava/util/Set;
2: aload 0
aload 5
putfield org.apache.cassandra.locator.NetworkTopologyStrategy$DatacenterEndpoints.racks:Ljava/util/Set;
3: aload 0
iload 1
iload 3
invokestatic java.lang.Math.min:(II)I
putfield org.apache.cassandra.locator.NetworkTopologyStrategy$DatacenterEndpoints.rfLeft:I
4: aload 0
iload 1
iload 2
isub
putfield org.apache.cassandra.locator.NetworkTopologyStrategy$DatacenterEndpoints.acceptableRackRepeats:I
5: return
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 6 0 this Lorg/apache/cassandra/locator/NetworkTopologyStrategy$DatacenterEndpoints;
0 6 1 rf I
0 6 2 rackCount I
0 6 3 nodeCount I
0 6 4 endpoints Ljava/util/Set<Ljava/net/InetAddress;>;
0 6 5 racks Ljava/util/Set<Lorg/apache/cassandra/utils/Pair<Ljava/lang/String;Ljava/lang/String;>;>;
Signature: (IIILjava/util/Set<Ljava/net/InetAddress;>;Ljava/util/Set<Lorg/apache/cassandra/utils/Pair<Ljava/lang/String;Ljava/lang/String;>;>;)V
MethodParameters:
Name Flags
rf
rackCount
nodeCount
endpoints
racks
boolean addEndpointAndCheckIfDone(java.net.InetAddress, org.apache.cassandra.utils.Pair<java.lang.String, java.lang.String>);
descriptor: (Ljava/net/InetAddress;Lorg/apache/cassandra/utils/Pair;)Z
flags: (0x0000)
Code:
stack=3, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual org.apache.cassandra.locator.NetworkTopologyStrategy$DatacenterEndpoints.done:()Z
ifeq 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.locator.NetworkTopologyStrategy$DatacenterEndpoints.racks:Ljava/util/Set;
aload 2
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
ifeq 7
3: aload 0
dup
getfield org.apache.cassandra.locator.NetworkTopologyStrategy$DatacenterEndpoints.rfLeft:I
iconst_1
isub
putfield org.apache.cassandra.locator.NetworkTopologyStrategy$DatacenterEndpoints.rfLeft:I
4: aload 0
getfield org.apache.cassandra.locator.NetworkTopologyStrategy$DatacenterEndpoints.endpoints:Ljava/util/Set;
aload 1
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
istore 3
start local 3 5: getstatic org.apache.cassandra.locator.NetworkTopologyStrategy$DatacenterEndpoints.$assertionsDisabled:Z
ifne 6
iload 3
ifne 6
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
6: StackMap locals: int
StackMap stack:
aload 0
invokevirtual org.apache.cassandra.locator.NetworkTopologyStrategy$DatacenterEndpoints.done:()Z
ireturn
end local 3 7: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.locator.NetworkTopologyStrategy$DatacenterEndpoints.acceptableRackRepeats:I
ifgt 9
8: iconst_0
ireturn
9: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.locator.NetworkTopologyStrategy$DatacenterEndpoints.endpoints:Ljava/util/Set;
aload 1
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
ifne 11
10: iconst_0
ireturn
11: StackMap locals:
StackMap stack:
aload 0
dup
getfield org.apache.cassandra.locator.NetworkTopologyStrategy$DatacenterEndpoints.acceptableRackRepeats:I
iconst_1
isub
putfield org.apache.cassandra.locator.NetworkTopologyStrategy$DatacenterEndpoints.acceptableRackRepeats:I
12: aload 0
dup
getfield org.apache.cassandra.locator.NetworkTopologyStrategy$DatacenterEndpoints.rfLeft:I
iconst_1
isub
putfield org.apache.cassandra.locator.NetworkTopologyStrategy$DatacenterEndpoints.rfLeft:I
13: aload 0
invokevirtual org.apache.cassandra.locator.NetworkTopologyStrategy$DatacenterEndpoints.done:()Z
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 14 0 this Lorg/apache/cassandra/locator/NetworkTopologyStrategy$DatacenterEndpoints;
0 14 1 ep Ljava/net/InetAddress;
0 14 2 location Lorg/apache/cassandra/utils/Pair<Ljava/lang/String;Ljava/lang/String;>;
5 7 3 added Z
Signature: (Ljava/net/InetAddress;Lorg/apache/cassandra/utils/Pair<Ljava/lang/String;Ljava/lang/String;>;)Z
MethodParameters:
Name Flags
ep
location
boolean done();
descriptor: ()Z
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic org.apache.cassandra.locator.NetworkTopologyStrategy$DatacenterEndpoints.$assertionsDisabled:Z
ifne 1
aload 0
getfield org.apache.cassandra.locator.NetworkTopologyStrategy$DatacenterEndpoints.rfLeft:I
ifge 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.NetworkTopologyStrategy$DatacenterEndpoints.rfLeft:I
ifne 2
iconst_1
ireturn
StackMap locals:
StackMap stack:
2: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/locator/NetworkTopologyStrategy$DatacenterEndpoints;
}
SourceFile: "NetworkTopologyStrategy.java"
NestHost: org.apache.cassandra.locator.NetworkTopologyStrategy
InnerClasses:
private final DatacenterEndpoints = org.apache.cassandra.locator.NetworkTopologyStrategy$DatacenterEndpoints of org.apache.cassandra.locator.NetworkTopologyStrategy