public class org.apache.cassandra.locator.DynamicEndpointSnitch extends org.apache.cassandra.locator.AbstractEndpointSnitch implements org.apache.cassandra.locator.ILatencySubscriber, org.apache.cassandra.locator.DynamicEndpointSnitchMBean
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.locator.DynamicEndpointSnitch
super_class: org.apache.cassandra.locator.AbstractEndpointSnitch
{
private static final boolean USE_SEVERITY;
descriptor: Z
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final double ALPHA;
descriptor: D
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 0.75
private static final int WINDOW_SIZE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 100
private volatile int dynamicUpdateInterval;
descriptor: I
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private volatile int dynamicResetInterval;
descriptor: I
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private volatile double dynamicBadnessThreshold;
descriptor: D
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private static final double RANGE_MERGING_PREFERENCE;
descriptor: D
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1.5
private java.lang.String mbeanName;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private boolean registered;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private volatile java.util.HashMap<java.net.InetAddress, java.lang.Double> scores;
descriptor: Ljava/util/HashMap;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
Signature: Ljava/util/HashMap<Ljava/net/InetAddress;Ljava/lang/Double;>;
private final java.util.concurrent.ConcurrentHashMap<java.net.InetAddress, com.codahale.metrics.ExponentiallyDecayingReservoir> samples;
descriptor: Ljava/util/concurrent/ConcurrentHashMap;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/concurrent/ConcurrentHashMap<Ljava/net/InetAddress;Lcom/codahale/metrics/ExponentiallyDecayingReservoir;>;
public final org.apache.cassandra.locator.IEndpointSnitch subsnitch;
descriptor: Lorg/apache/cassandra/locator/IEndpointSnitch;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
private volatile java.util.concurrent.ScheduledFuture<?> updateSchedular;
descriptor: Ljava/util/concurrent/ScheduledFuture;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
Signature: Ljava/util/concurrent/ScheduledFuture<*>;
private volatile java.util.concurrent.ScheduledFuture<?> resetSchedular;
descriptor: Ljava/util/concurrent/ScheduledFuture;
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
Signature: Ljava/util/concurrent/ScheduledFuture<*>;
private final java.lang.Runnable update;
descriptor: Ljava/lang/Runnable;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.Runnable reset;
descriptor: Ljava/lang/Runnable;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
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/DynamicEndpointSnitch;
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.DynamicEndpointSnitch.$assertionsDisabled:Z
3: ldc "cassandra.ignore_dynamic_snitch_severity"
invokestatic java.lang.Boolean.getBoolean:(Ljava/lang/String;)Z
ifeq 4
iconst_0
goto 5
StackMap locals:
StackMap stack:
4: iconst_1
StackMap locals:
StackMap stack: int
5: putstatic org.apache.cassandra.locator.DynamicEndpointSnitch.USE_SEVERITY:Z
6: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(org.apache.cassandra.locator.IEndpointSnitch);
descriptor: (Lorg/apache/cassandra/locator/IEndpointSnitch;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
aconst_null
invokespecial org.apache.cassandra.locator.DynamicEndpointSnitch.<init>:(Lorg/apache/cassandra/locator/IEndpointSnitch;Ljava/lang/String;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/locator/DynamicEndpointSnitch;
0 2 1 snitch Lorg/apache/cassandra/locator/IEndpointSnitch;
MethodParameters:
Name Flags
snitch
public void <init>(org.apache.cassandra.locator.IEndpointSnitch, java.lang.String);
descriptor: (Lorg/apache/cassandra/locator/IEndpointSnitch;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial org.apache.cassandra.locator.AbstractEndpointSnitch.<init>:()V
1: aload 0
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getDynamicUpdateInterval:()I
putfield org.apache.cassandra.locator.DynamicEndpointSnitch.dynamicUpdateInterval:I
2: aload 0
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getDynamicResetInterval:()I
putfield org.apache.cassandra.locator.DynamicEndpointSnitch.dynamicResetInterval:I
3: aload 0
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getDynamicBadnessThreshold:()D
putfield org.apache.cassandra.locator.DynamicEndpointSnitch.dynamicBadnessThreshold:D
4: aload 0
iconst_0
putfield org.apache.cassandra.locator.DynamicEndpointSnitch.registered:Z
5: aload 0
new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
putfield org.apache.cassandra.locator.DynamicEndpointSnitch.scores:Ljava/util/HashMap;
6: aload 0
new java.util.concurrent.ConcurrentHashMap
dup
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:()V
putfield org.apache.cassandra.locator.DynamicEndpointSnitch.samples:Ljava/util/concurrent/ConcurrentHashMap;
7: aload 0
ldc "org.apache.cassandra.db:type=DynamicEndpointSnitch"
putfield org.apache.cassandra.locator.DynamicEndpointSnitch.mbeanName:Ljava/lang/String;
8: aload 2
ifnull 10
9: aload 0
dup
getfield org.apache.cassandra.locator.DynamicEndpointSnitch.mbeanName:Ljava/lang/String;
new java.lang.StringBuilder
dup_x1
swap
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ",instance="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
putfield org.apache.cassandra.locator.DynamicEndpointSnitch.mbeanName:Ljava/lang/String;
10: StackMap locals: org.apache.cassandra.locator.DynamicEndpointSnitch org.apache.cassandra.locator.IEndpointSnitch java.lang.String
StackMap stack:
aload 0
aload 1
putfield org.apache.cassandra.locator.DynamicEndpointSnitch.subsnitch:Lorg/apache/cassandra/locator/IEndpointSnitch;
11: aload 0
new org.apache.cassandra.locator.DynamicEndpointSnitch$1
dup
aload 0
invokespecial org.apache.cassandra.locator.DynamicEndpointSnitch$1.<init>:(Lorg/apache/cassandra/locator/DynamicEndpointSnitch;)V
putfield org.apache.cassandra.locator.DynamicEndpointSnitch.update:Ljava/lang/Runnable;
12: aload 0
new org.apache.cassandra.locator.DynamicEndpointSnitch$2
dup
aload 0
invokespecial org.apache.cassandra.locator.DynamicEndpointSnitch$2.<init>:(Lorg/apache/cassandra/locator/DynamicEndpointSnitch;)V
putfield org.apache.cassandra.locator.DynamicEndpointSnitch.reset:Ljava/lang/Runnable;
13: invokestatic org.apache.cassandra.config.DatabaseDescriptor.isDaemonInitialized:()Z
ifeq 17
14: aload 0
getstatic org.apache.cassandra.concurrent.ScheduledExecutors.scheduledTasks:Lorg/apache/cassandra/concurrent/DebuggableScheduledThreadPoolExecutor;
aload 0
getfield org.apache.cassandra.locator.DynamicEndpointSnitch.update:Ljava/lang/Runnable;
aload 0
getfield org.apache.cassandra.locator.DynamicEndpointSnitch.dynamicUpdateInterval:I
i2l
aload 0
getfield org.apache.cassandra.locator.DynamicEndpointSnitch.dynamicUpdateInterval:I
i2l
getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
invokevirtual org.apache.cassandra.concurrent.DebuggableScheduledThreadPoolExecutor.scheduleWithFixedDelay:(Ljava/lang/Runnable;JJLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;
putfield org.apache.cassandra.locator.DynamicEndpointSnitch.updateSchedular:Ljava/util/concurrent/ScheduledFuture;
15: aload 0
getstatic org.apache.cassandra.concurrent.ScheduledExecutors.scheduledTasks:Lorg/apache/cassandra/concurrent/DebuggableScheduledThreadPoolExecutor;
aload 0
getfield org.apache.cassandra.locator.DynamicEndpointSnitch.reset:Ljava/lang/Runnable;
aload 0
getfield org.apache.cassandra.locator.DynamicEndpointSnitch.dynamicResetInterval:I
i2l
aload 0
getfield org.apache.cassandra.locator.DynamicEndpointSnitch.dynamicResetInterval:I
i2l
getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
invokevirtual org.apache.cassandra.concurrent.DebuggableScheduledThreadPoolExecutor.scheduleWithFixedDelay:(Ljava/lang/Runnable;JJLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;
putfield org.apache.cassandra.locator.DynamicEndpointSnitch.resetSchedular:Ljava/util/concurrent/ScheduledFuture;
16: aload 0
invokevirtual org.apache.cassandra.locator.DynamicEndpointSnitch.registerMBean:()V
17: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lorg/apache/cassandra/locator/DynamicEndpointSnitch;
0 18 1 snitch Lorg/apache/cassandra/locator/IEndpointSnitch;
0 18 2 instance Ljava/lang/String;
MethodParameters:
Name Flags
snitch
instance
public void applyConfigChanges();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.locator.DynamicEndpointSnitch.dynamicUpdateInterval:I
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getDynamicUpdateInterval:()I
if_icmpeq 5
1: aload 0
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getDynamicUpdateInterval:()I
putfield org.apache.cassandra.locator.DynamicEndpointSnitch.dynamicUpdateInterval:I
2: invokestatic org.apache.cassandra.config.DatabaseDescriptor.isDaemonInitialized:()Z
ifeq 5
3: aload 0
getfield org.apache.cassandra.locator.DynamicEndpointSnitch.updateSchedular:Ljava/util/concurrent/ScheduledFuture;
iconst_0
invokeinterface java.util.concurrent.ScheduledFuture.cancel:(Z)Z
pop
4: aload 0
getstatic org.apache.cassandra.concurrent.ScheduledExecutors.scheduledTasks:Lorg/apache/cassandra/concurrent/DebuggableScheduledThreadPoolExecutor;
aload 0
getfield org.apache.cassandra.locator.DynamicEndpointSnitch.update:Ljava/lang/Runnable;
aload 0
getfield org.apache.cassandra.locator.DynamicEndpointSnitch.dynamicUpdateInterval:I
i2l
aload 0
getfield org.apache.cassandra.locator.DynamicEndpointSnitch.dynamicUpdateInterval:I
i2l
getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
invokevirtual org.apache.cassandra.concurrent.DebuggableScheduledThreadPoolExecutor.scheduleWithFixedDelay:(Ljava/lang/Runnable;JJLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;
putfield org.apache.cassandra.locator.DynamicEndpointSnitch.updateSchedular:Ljava/util/concurrent/ScheduledFuture;
5: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.locator.DynamicEndpointSnitch.dynamicResetInterval:I
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getDynamicResetInterval:()I
if_icmpeq 10
6: aload 0
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getDynamicResetInterval:()I
putfield org.apache.cassandra.locator.DynamicEndpointSnitch.dynamicResetInterval:I
7: invokestatic org.apache.cassandra.config.DatabaseDescriptor.isDaemonInitialized:()Z
ifeq 10
8: aload 0
getfield org.apache.cassandra.locator.DynamicEndpointSnitch.resetSchedular:Ljava/util/concurrent/ScheduledFuture;
iconst_0
invokeinterface java.util.concurrent.ScheduledFuture.cancel:(Z)Z
pop
9: aload 0
getstatic org.apache.cassandra.concurrent.ScheduledExecutors.scheduledTasks:Lorg/apache/cassandra/concurrent/DebuggableScheduledThreadPoolExecutor;
aload 0
getfield org.apache.cassandra.locator.DynamicEndpointSnitch.reset:Ljava/lang/Runnable;
aload 0
getfield org.apache.cassandra.locator.DynamicEndpointSnitch.dynamicResetInterval:I
i2l
aload 0
getfield org.apache.cassandra.locator.DynamicEndpointSnitch.dynamicResetInterval:I
i2l
getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
invokevirtual org.apache.cassandra.concurrent.DebuggableScheduledThreadPoolExecutor.scheduleWithFixedDelay:(Ljava/lang/Runnable;JJLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;
putfield org.apache.cassandra.locator.DynamicEndpointSnitch.resetSchedular:Ljava/util/concurrent/ScheduledFuture;
10: StackMap locals:
StackMap stack:
aload 0
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getDynamicBadnessThreshold:()D
putfield org.apache.cassandra.locator.DynamicEndpointSnitch.dynamicBadnessThreshold:D
11: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/apache/cassandra/locator/DynamicEndpointSnitch;
private void registerMBean();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: getstatic org.apache.cassandra.utils.MBeanWrapper.instance:Lorg/apache/cassandra/utils/MBeanWrapper;
aload 0
aload 0
getfield org.apache.cassandra.locator.DynamicEndpointSnitch.mbeanName:Ljava/lang/String;
invokeinterface org.apache.cassandra.utils.MBeanWrapper.registerMBean:(Ljava/lang/Object;Ljava/lang/String;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/locator/DynamicEndpointSnitch;
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.locator.DynamicEndpointSnitch.updateSchedular:Ljava/util/concurrent/ScheduledFuture;
iconst_0
invokeinterface java.util.concurrent.ScheduledFuture.cancel:(Z)Z
pop
1: aload 0
getfield org.apache.cassandra.locator.DynamicEndpointSnitch.resetSchedular:Ljava/util/concurrent/ScheduledFuture;
iconst_0
invokeinterface java.util.concurrent.ScheduledFuture.cancel:(Z)Z
pop
2: getstatic org.apache.cassandra.utils.MBeanWrapper.instance:Lorg/apache/cassandra/utils/MBeanWrapper;
aload 0
getfield org.apache.cassandra.locator.DynamicEndpointSnitch.mbeanName:Ljava/lang/String;
invokeinterface org.apache.cassandra.utils.MBeanWrapper.unregisterMBean:(Ljava/lang/String;)V
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/cassandra/locator/DynamicEndpointSnitch;
public void gossiperStarting();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.locator.DynamicEndpointSnitch.subsnitch:Lorg/apache/cassandra/locator/IEndpointSnitch;
invokeinterface org.apache.cassandra.locator.IEndpointSnitch.gossiperStarting:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/locator/DynamicEndpointSnitch;
public java.lang.String getRack(java.net.InetAddress);
descriptor: (Ljava/net/InetAddress;)Ljava/lang/String;
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.DynamicEndpointSnitch.subsnitch:Lorg/apache/cassandra/locator/IEndpointSnitch;
aload 1
invokeinterface org.apache.cassandra.locator.IEndpointSnitch.getRack:(Ljava/net/InetAddress;)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/locator/DynamicEndpointSnitch;
0 1 1 endpoint Ljava/net/InetAddress;
MethodParameters:
Name Flags
endpoint
public java.lang.String getDatacenter(java.net.InetAddress);
descriptor: (Ljava/net/InetAddress;)Ljava/lang/String;
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.DynamicEndpointSnitch.subsnitch:Lorg/apache/cassandra/locator/IEndpointSnitch;
aload 1
invokeinterface org.apache.cassandra.locator.IEndpointSnitch.getDatacenter:(Ljava/net/InetAddress;)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/locator/DynamicEndpointSnitch;
0 1 1 endpoint Ljava/net/InetAddress;
MethodParameters:
Name Flags
endpoint
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.DynamicEndpointSnitch.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/DynamicEndpointSnitch;
0 3 1 address Ljava/net/InetAddress;
0 3 2 addresses Ljava/util/Collection<Ljava/net/InetAddress;>;
1 3 3 list 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 final
addresses
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=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: getstatic org.apache.cassandra.locator.DynamicEndpointSnitch.$assertionsDisabled:Z
ifne 1
aload 1
invokestatic org.apache.cassandra.utils.FBUtilities.getBroadcastAddress:()Ljava/net/InetAddress;
invokevirtual java.net.InetAddress.equals:(Ljava/lang/Object;)Z
ifne 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.DynamicEndpointSnitch.dynamicBadnessThreshold:D
dconst_0
dcmpl
ifne 4
2: aload 0
aload 1
aload 2
invokevirtual org.apache.cassandra.locator.DynamicEndpointSnitch.sortByProximityWithScore:(Ljava/net/InetAddress;Ljava/util/List;)V
3: goto 5
4: StackMap locals:
StackMap stack:
aload 0
aload 1
aload 2
invokevirtual org.apache.cassandra.locator.DynamicEndpointSnitch.sortByProximityWithBadness:(Ljava/net/InetAddress;Ljava/util/List;)V
5: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/cassandra/locator/DynamicEndpointSnitch;
0 6 1 address Ljava/net/InetAddress;
0 6 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
private void sortByProximityWithScore(java.net.InetAddress, java.util.List<java.net.InetAddress>);
descriptor: (Ljava/net/InetAddress;Ljava/util/List;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.apache.cassandra.locator.DynamicEndpointSnitch.scores:Ljava/util/HashMap;
astore 3
start local 3 1: aload 2
new org.apache.cassandra.locator.DynamicEndpointSnitch$3
dup
aload 0
aload 1
aload 3
invokespecial org.apache.cassandra.locator.DynamicEndpointSnitch$3.<init>:(Lorg/apache/cassandra/locator/DynamicEndpointSnitch;Ljava/net/InetAddress;Ljava/util/HashMap;)V
invokestatic java.util.Collections.sort:(Ljava/util/List;Ljava/util/Comparator;)V
2: return
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/DynamicEndpointSnitch;
0 3 1 address Ljava/net/InetAddress;
0 3 2 addresses Ljava/util/List<Ljava/net/InetAddress;>;
1 3 3 scores Ljava/util/HashMap<Ljava/net/InetAddress;Ljava/lang/Double;>;
Signature: (Ljava/net/InetAddress;Ljava/util/List<Ljava/net/InetAddress;>;)V
MethodParameters:
Name Flags
address final
addresses
private void sortByProximityWithBadness(java.net.InetAddress, java.util.List<java.net.InetAddress>);
descriptor: (Ljava/net/InetAddress;Ljava/util/List;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=8, locals=9, args_size=3
start local 0 start local 1 start local 2 0: aload 2
invokeinterface java.util.List.size:()I
iconst_2
if_icmpge 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.locator.DynamicEndpointSnitch.subsnitch:Lorg/apache/cassandra/locator/IEndpointSnitch;
aload 1
aload 2
invokeinterface org.apache.cassandra.locator.IEndpointSnitch.sortByProximity:(Ljava/net/InetAddress;Ljava/util/List;)V
3: aload 0
getfield org.apache.cassandra.locator.DynamicEndpointSnitch.scores:Ljava/util/HashMap;
astore 3
start local 3 4: new java.util.ArrayList
dup
aload 2
invokeinterface java.util.List.size:()I
invokespecial java.util.ArrayList.<init>:(I)V
astore 4
start local 4 5: aload 2
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 6
goto 11
StackMap locals: org.apache.cassandra.locator.DynamicEndpointSnitch java.net.InetAddress java.util.List java.util.HashMap java.util.ArrayList top java.util.Iterator
StackMap stack:
6: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.net.InetAddress
astore 5
start local 5 7: aload 3
aload 5
invokevirtual java.util.HashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Double
astore 7
start local 7 8: aload 7
ifnonnull 10
9: goto 11
10: StackMap locals: org.apache.cassandra.locator.DynamicEndpointSnitch java.net.InetAddress java.util.List java.util.HashMap java.util.ArrayList java.net.InetAddress java.util.Iterator java.lang.Double
StackMap stack:
aload 4
aload 7
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
end local 7 end local 5 11: StackMap locals: org.apache.cassandra.locator.DynamicEndpointSnitch java.net.InetAddress java.util.List java.util.HashMap java.util.ArrayList top java.util.Iterator
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 6
12: new java.util.ArrayList
dup
aload 4
invokespecial java.util.ArrayList.<init>:(Ljava/util/Collection;)V
astore 5
start local 5 13: aload 5
invokestatic java.util.Collections.sort:(Ljava/util/List;)V
14: aload 5
invokevirtual java.util.ArrayList.iterator:()Ljava/util/Iterator;
astore 6
start local 6 15: aload 4
invokevirtual java.util.ArrayList.iterator:()Ljava/util/Iterator;
astore 8
goto 20
StackMap locals: org.apache.cassandra.locator.DynamicEndpointSnitch java.net.InetAddress java.util.List java.util.HashMap java.util.ArrayList java.util.ArrayList java.util.Iterator top java.util.Iterator
StackMap stack:
16: aload 8
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.Double
astore 7
start local 7 17: aload 7
invokevirtual java.lang.Double.doubleValue:()D
aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.lang.Double
invokevirtual java.lang.Double.doubleValue:()D
dconst_1
aload 0
getfield org.apache.cassandra.locator.DynamicEndpointSnitch.dynamicBadnessThreshold:D
dadd
dmul
dcmpl
ifle 20
18: aload 0
aload 1
aload 2
invokevirtual org.apache.cassandra.locator.DynamicEndpointSnitch.sortByProximityWithScore:(Ljava/net/InetAddress;Ljava/util/List;)V
19: return
end local 7 20: StackMap locals:
StackMap stack:
aload 8
invokeinterface java.util.Iterator.hasNext:()Z
ifne 16
21: return
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 22 0 this Lorg/apache/cassandra/locator/DynamicEndpointSnitch;
0 22 1 address Ljava/net/InetAddress;
0 22 2 addresses Ljava/util/List<Ljava/net/InetAddress;>;
4 22 3 scores Ljava/util/HashMap<Ljava/net/InetAddress;Ljava/lang/Double;>;
5 22 4 subsnitchOrderedScores Ljava/util/ArrayList<Ljava/lang/Double;>;
7 11 5 inet Ljava/net/InetAddress;
8 11 7 score Ljava/lang/Double;
13 22 5 sortedScores Ljava/util/ArrayList<Ljava/lang/Double;>;
15 22 6 sortedScoreIterator Ljava/util/Iterator<Ljava/lang/Double;>;
17 20 7 subsnitchScore Ljava/lang/Double;
Signature: (Ljava/net/InetAddress;Ljava/util/List<Ljava/net/InetAddress;>;)V
MethodParameters:
Name Flags
address final
addresses
private int compareEndpoints(java.net.InetAddress, java.net.InetAddress, java.net.InetAddress, java.util.Map<java.net.InetAddress, java.lang.Double>);
descriptor: (Ljava/net/InetAddress;Ljava/net/InetAddress;Ljava/net/InetAddress;Ljava/util/Map;)I
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=7, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 4
aload 2
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Double
astore 5
start local 5 1: aload 4
aload 3
invokeinterface java.util.Map.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Double
astore 6
start local 6 2: aload 5
ifnonnull 4
3: dconst_0
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
astore 5
4: StackMap locals: java.lang.Double java.lang.Double
StackMap stack:
aload 6
ifnonnull 6
5: dconst_0
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
astore 6
6: StackMap locals:
StackMap stack:
aload 5
aload 6
invokevirtual java.lang.Double.equals:(Ljava/lang/Object;)Z
ifeq 8
7: aload 0
getfield org.apache.cassandra.locator.DynamicEndpointSnitch.subsnitch:Lorg/apache/cassandra/locator/IEndpointSnitch;
aload 1
aload 2
aload 3
invokeinterface org.apache.cassandra.locator.IEndpointSnitch.compareEndpoints:(Ljava/net/InetAddress;Ljava/net/InetAddress;Ljava/net/InetAddress;)I
ireturn
8: StackMap locals:
StackMap stack:
aload 5
invokevirtual java.lang.Double.doubleValue:()D
aload 6
invokevirtual java.lang.Double.doubleValue:()D
dcmpg
ifge 10
9: iconst_m1
ireturn
10: StackMap locals:
StackMap stack:
iconst_1
ireturn
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 11 0 this Lorg/apache/cassandra/locator/DynamicEndpointSnitch;
0 11 1 target Ljava/net/InetAddress;
0 11 2 a1 Ljava/net/InetAddress;
0 11 3 a2 Ljava/net/InetAddress;
0 11 4 scores Ljava/util/Map<Ljava/net/InetAddress;Ljava/lang/Double;>;
1 11 5 scored1 Ljava/lang/Double;
2 11 6 scored2 Ljava/lang/Double;
Signature: (Ljava/net/InetAddress;Ljava/net/InetAddress;Ljava/net/InetAddress;Ljava/util/Map<Ljava/net/InetAddress;Ljava/lang/Double;>;)I
MethodParameters:
Name Flags
target
a1
a2
scores
public int compareEndpoints(java.net.InetAddress, java.net.InetAddress, java.net.InetAddress);
descriptor: (Ljava/net/InetAddress;Ljava/net/InetAddress;Ljava/net/InetAddress;)I
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: new java.lang.UnsupportedOperationException
dup
ldc "You shouldn't wrap the DynamicEndpointSnitch (within itself or otherwise)"
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
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/DynamicEndpointSnitch;
0 1 1 target Ljava/net/InetAddress;
0 1 2 a1 Ljava/net/InetAddress;
0 1 3 a2 Ljava/net/InetAddress;
MethodParameters:
Name Flags
target
a1
a2
public void receiveTiming(java.net.InetAddress, long);
descriptor: (Ljava/net/InetAddress;J)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.apache.cassandra.locator.DynamicEndpointSnitch.samples:Ljava/util/concurrent/ConcurrentHashMap;
aload 1
invokevirtual java.util.concurrent.ConcurrentHashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.codahale.metrics.ExponentiallyDecayingReservoir
astore 4
start local 4 1: aload 4
ifnonnull 6
2: new com.codahale.metrics.ExponentiallyDecayingReservoir
dup
bipush 100
ldc 0.75
invokespecial com.codahale.metrics.ExponentiallyDecayingReservoir.<init>:(ID)V
astore 5
start local 5 3: aload 0
getfield org.apache.cassandra.locator.DynamicEndpointSnitch.samples:Ljava/util/concurrent/ConcurrentHashMap;
aload 1
aload 5
invokevirtual java.util.concurrent.ConcurrentHashMap.putIfAbsent:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.codahale.metrics.ExponentiallyDecayingReservoir
astore 4
4: aload 4
ifnonnull 6
5: aload 5
astore 4
end local 5 6: StackMap locals: com.codahale.metrics.ExponentiallyDecayingReservoir
StackMap stack:
aload 4
lload 2
invokevirtual com.codahale.metrics.ExponentiallyDecayingReservoir.update:(J)V
7: return
end local 4 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/apache/cassandra/locator/DynamicEndpointSnitch;
0 8 1 host Ljava/net/InetAddress;
0 8 2 latency J
1 8 4 sample Lcom/codahale/metrics/ExponentiallyDecayingReservoir;
3 6 5 maybeNewSample Lcom/codahale/metrics/ExponentiallyDecayingReservoir;
MethodParameters:
Name Flags
host
latency
private void updateScores();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=9, args_size=1
start local 0 0: getstatic org.apache.cassandra.service.StorageService.instance:Lorg/apache/cassandra/service/StorageService;
invokevirtual org.apache.cassandra.service.StorageService.isGossipActive:()Z
ifne 2
1: return
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.locator.DynamicEndpointSnitch.registered:Z
ifne 6
3: invokestatic org.apache.cassandra.net.MessagingService.instance:()Lorg/apache/cassandra/net/MessagingService;
ifnull 6
4: invokestatic org.apache.cassandra.net.MessagingService.instance:()Lorg/apache/cassandra/net/MessagingService;
aload 0
invokevirtual org.apache.cassandra.net.MessagingService.register:(Lorg/apache/cassandra/locator/ILatencySubscriber;)V
5: aload 0
iconst_1
putfield org.apache.cassandra.locator.DynamicEndpointSnitch.registered:Z
6: StackMap locals:
StackMap stack:
dconst_1
dstore 1
start local 1 7: new java.util.HashMap
dup
aload 0
getfield org.apache.cassandra.locator.DynamicEndpointSnitch.samples:Ljava/util/concurrent/ConcurrentHashMap;
invokevirtual java.util.concurrent.ConcurrentHashMap.size:()I
invokespecial java.util.HashMap.<init>:(I)V
astore 3
start local 3 8: aload 0
getfield org.apache.cassandra.locator.DynamicEndpointSnitch.samples:Ljava/util/concurrent/ConcurrentHashMap;
invokevirtual java.util.concurrent.ConcurrentHashMap.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 5
goto 11
StackMap locals: org.apache.cassandra.locator.DynamicEndpointSnitch double java.util.Map top java.util.Iterator
StackMap stack:
9: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 4
start local 4 10: aload 3
aload 4
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.net.InetAddress
aload 4
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast com.codahale.metrics.ExponentiallyDecayingReservoir
invokevirtual com.codahale.metrics.ExponentiallyDecayingReservoir.getSnapshot:()Lcom/codahale/metrics/Snapshot;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 4 11: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 9
12: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 4
start local 4 13: aload 3
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 6
goto 18
StackMap locals: org.apache.cassandra.locator.DynamicEndpointSnitch double java.util.Map java.util.HashMap top java.util.Iterator
StackMap stack:
14: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 5
start local 5 15: aload 5
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast com.codahale.metrics.Snapshot
invokevirtual com.codahale.metrics.Snapshot.getMedian:()D
dstore 7
start local 7 16: dload 7
dload 1
dcmpl
ifle 18
17: dload 7
dstore 1
end local 7 end local 5 18: StackMap locals:
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 14
19: aload 3
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 6
goto 25
StackMap locals:
StackMap stack:
20: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 5
start local 5 21: aload 5
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast com.codahale.metrics.Snapshot
invokevirtual com.codahale.metrics.Snapshot.getMedian:()D
dload 1
ddiv
dstore 7
start local 7 22: getstatic org.apache.cassandra.locator.DynamicEndpointSnitch.USE_SEVERITY:Z
ifeq 24
23: dload 7
aload 0
aload 5
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.net.InetAddress
invokevirtual org.apache.cassandra.locator.DynamicEndpointSnitch.getSeverity:(Ljava/net/InetAddress;)D
dadd
dstore 7
24: StackMap locals: org.apache.cassandra.locator.DynamicEndpointSnitch double java.util.Map java.util.HashMap java.util.Map$Entry java.util.Iterator double
StackMap stack:
aload 4
aload 5
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.net.InetAddress
dload 7
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
invokevirtual java.util.HashMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 7 end local 5 25: StackMap locals: org.apache.cassandra.locator.DynamicEndpointSnitch double java.util.Map java.util.HashMap top java.util.Iterator
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 20
26: aload 0
aload 4
putfield org.apache.cassandra.locator.DynamicEndpointSnitch.scores:Ljava/util/HashMap;
27: return
end local 4 end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 28 0 this Lorg/apache/cassandra/locator/DynamicEndpointSnitch;
7 28 1 maxLatency D
8 28 3 snapshots Ljava/util/Map<Ljava/net/InetAddress;Lcom/codahale/metrics/Snapshot;>;
10 11 4 entry Ljava/util/Map$Entry<Ljava/net/InetAddress;Lcom/codahale/metrics/ExponentiallyDecayingReservoir;>;
13 28 4 newScores Ljava/util/HashMap<Ljava/net/InetAddress;Ljava/lang/Double;>;
15 18 5 entry Ljava/util/Map$Entry<Ljava/net/InetAddress;Lcom/codahale/metrics/Snapshot;>;
16 18 7 mean D
21 25 5 entry Ljava/util/Map$Entry<Ljava/net/InetAddress;Lcom/codahale/metrics/Snapshot;>;
22 25 7 score D
private void reset();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.locator.DynamicEndpointSnitch.samples:Ljava/util/concurrent/ConcurrentHashMap;
invokevirtual java.util.concurrent.ConcurrentHashMap.clear:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/locator/DynamicEndpointSnitch;
public java.util.Map<java.net.InetAddress, java.lang.Double> getScores();
descriptor: ()Ljava/util/Map;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.locator.DynamicEndpointSnitch.scores:Ljava/util/HashMap;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/locator/DynamicEndpointSnitch;
Signature: ()Ljava/util/Map<Ljava/net/InetAddress;Ljava/lang/Double;>;
public int getUpdateInterval();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.locator.DynamicEndpointSnitch.dynamicUpdateInterval:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/locator/DynamicEndpointSnitch;
public int getResetInterval();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.locator.DynamicEndpointSnitch.dynamicResetInterval:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/locator/DynamicEndpointSnitch;
public double getBadnessThreshold();
descriptor: ()D
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.locator.DynamicEndpointSnitch.dynamicBadnessThreshold:D
dreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/locator/DynamicEndpointSnitch;
public java.lang.String getSubsnitchClassName();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.locator.DynamicEndpointSnitch.subsnitch:Lorg/apache/cassandra/locator/IEndpointSnitch;
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/locator/DynamicEndpointSnitch;
public java.util.List<java.lang.Double> dumpTimings(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=10, args_size=2
start local 0 start local 1 0: aload 1
invokestatic java.net.InetAddress.getByName:(Ljava/lang/String;)Ljava/net/InetAddress;
astore 2
start local 2 1: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 3
start local 3 2: aload 0
getfield org.apache.cassandra.locator.DynamicEndpointSnitch.samples:Ljava/util/concurrent/ConcurrentHashMap;
aload 2
invokevirtual java.util.concurrent.ConcurrentHashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.codahale.metrics.ExponentiallyDecayingReservoir
astore 4
start local 4 3: aload 4
ifnull 9
4: aload 4
invokevirtual com.codahale.metrics.ExponentiallyDecayingReservoir.getSnapshot:()Lcom/codahale/metrics/Snapshot;
invokevirtual com.codahale.metrics.Snapshot.getValues:()[J
dup
astore 9
arraylength
istore 8
iconst_0
istore 7
goto 8
StackMap locals: org.apache.cassandra.locator.DynamicEndpointSnitch java.lang.String java.net.InetAddress java.util.ArrayList com.codahale.metrics.ExponentiallyDecayingReservoir top top int int long[]
StackMap stack:
5: aload 9
iload 7
laload
l2d
dstore 5
start local 5 6: aload 3
dload 5
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
invokevirtual java.util.ArrayList.add:(Ljava/lang/Object;)Z
pop
end local 5 7: iinc 7 1
StackMap locals:
StackMap stack:
8: iload 7
iload 8
if_icmplt 5
9: StackMap locals: org.apache.cassandra.locator.DynamicEndpointSnitch java.lang.String java.net.InetAddress java.util.ArrayList com.codahale.metrics.ExponentiallyDecayingReservoir
StackMap stack:
aload 3
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/apache/cassandra/locator/DynamicEndpointSnitch;
0 10 1 hostname Ljava/lang/String;
1 10 2 host Ljava/net/InetAddress;
2 10 3 timings Ljava/util/ArrayList<Ljava/lang/Double;>;
3 10 4 sample Lcom/codahale/metrics/ExponentiallyDecayingReservoir;
6 7 5 time D
Exceptions:
throws java.net.UnknownHostException
Signature: (Ljava/lang/String;)Ljava/util/List<Ljava/lang/Double;>;
MethodParameters:
Name Flags
hostname
public void setSeverity(double);
descriptor: (D)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: getstatic org.apache.cassandra.gms.Gossiper.instance:Lorg/apache/cassandra/gms/Gossiper;
getstatic org.apache.cassandra.gms.ApplicationState.SEVERITY:Lorg/apache/cassandra/gms/ApplicationState;
getstatic org.apache.cassandra.service.StorageService.instance:Lorg/apache/cassandra/service/StorageService;
getfield org.apache.cassandra.service.StorageService.valueFactory:Lorg/apache/cassandra/gms/VersionedValue$VersionedValueFactory;
dload 1
invokevirtual org.apache.cassandra.gms.VersionedValue$VersionedValueFactory.severity:(D)Lorg/apache/cassandra/gms/VersionedValue;
invokevirtual org.apache.cassandra.gms.Gossiper.addLocalApplicationState:(Lorg/apache/cassandra/gms/ApplicationState;Lorg/apache/cassandra/gms/VersionedValue;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/locator/DynamicEndpointSnitch;
0 2 1 severity D
MethodParameters:
Name Flags
severity
private double getSeverity(java.net.InetAddress);
descriptor: (Ljava/net/InetAddress;)D
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: getstatic org.apache.cassandra.gms.Gossiper.instance:Lorg/apache/cassandra/gms/Gossiper;
aload 1
invokevirtual org.apache.cassandra.gms.Gossiper.getEndpointStateForEndpoint:(Ljava/net/InetAddress;)Lorg/apache/cassandra/gms/EndpointState;
astore 2
start local 2 1: aload 2
ifnonnull 3
2: dconst_0
dreturn
3: StackMap locals: org.apache.cassandra.gms.EndpointState
StackMap stack:
aload 2
getstatic org.apache.cassandra.gms.ApplicationState.SEVERITY:Lorg/apache/cassandra/gms/ApplicationState;
invokevirtual org.apache.cassandra.gms.EndpointState.getApplicationState:(Lorg/apache/cassandra/gms/ApplicationState;)Lorg/apache/cassandra/gms/VersionedValue;
astore 3
start local 3 4: aload 3
ifnonnull 6
5: dconst_0
dreturn
6: StackMap locals: org.apache.cassandra.gms.VersionedValue
StackMap stack:
aload 3
getfield org.apache.cassandra.gms.VersionedValue.value:Ljava/lang/String;
invokestatic java.lang.Double.parseDouble:(Ljava/lang/String;)D
dreturn
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/DynamicEndpointSnitch;
0 7 1 endpoint Ljava/net/InetAddress;
1 7 2 state Lorg/apache/cassandra/gms/EndpointState;
4 7 3 event Lorg/apache/cassandra/gms/VersionedValue;
MethodParameters:
Name Flags
endpoint
public double getSeverity();
descriptor: ()D
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
invokestatic org.apache.cassandra.utils.FBUtilities.getBroadcastAddress:()Ljava/net/InetAddress;
invokevirtual org.apache.cassandra.locator.DynamicEndpointSnitch.getSeverity:(Ljava/net/InetAddress;)D
dreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/locator/DynamicEndpointSnitch;
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=6, locals=10, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
getfield org.apache.cassandra.locator.DynamicEndpointSnitch.subsnitch:Lorg/apache/cassandra/locator/IEndpointSnitch;
aload 1
aload 2
aload 3
invokeinterface org.apache.cassandra.locator.IEndpointSnitch.isWorthMergingForRangeQuery:(Ljava/util/List;Ljava/util/List;Ljava/util/List;)Z
ifne 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 2
invokeinterface java.util.List.size:()I
iconst_1
if_icmpne 4
aload 3
invokeinterface java.util.List.size:()I
iconst_1
if_icmpne 4
aload 2
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast java.net.InetAddress
aload 3
iconst_0
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
invokevirtual java.net.InetAddress.equals:(Ljava/lang/Object;)Z
ifeq 4
3: iconst_1
ireturn
4: StackMap locals:
StackMap stack:
aload 0
aload 1
invokevirtual org.apache.cassandra.locator.DynamicEndpointSnitch.maxScore:(Ljava/util/List;)D
dstore 4
start local 4 5: aload 0
aload 2
invokevirtual org.apache.cassandra.locator.DynamicEndpointSnitch.maxScore:(Ljava/util/List;)D
dstore 6
start local 6 6: aload 0
aload 3
invokevirtual org.apache.cassandra.locator.DynamicEndpointSnitch.maxScore:(Ljava/util/List;)D
dstore 8
start local 8 7: dload 4
dconst_0
dcmpg
iflt 8
dload 6
dconst_0
dcmpg
iflt 8
dload 8
dconst_0
dcmpg
ifge 9
8: StackMap locals: double double double
StackMap stack:
iconst_1
ireturn
9: StackMap locals:
StackMap stack:
dload 4
dload 6
dload 8
dadd
ldc 1.5
dmul
dcmpg
ifgt 10
iconst_1
ireturn
StackMap locals:
StackMap stack:
10: iconst_0
ireturn
end local 8 end local 6 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/apache/cassandra/locator/DynamicEndpointSnitch;
0 11 1 merged Ljava/util/List<Ljava/net/InetAddress;>;
0 11 2 l1 Ljava/util/List<Ljava/net/InetAddress;>;
0 11 3 l2 Ljava/util/List<Ljava/net/InetAddress;>;
5 11 4 maxMerged D
6 11 6 maxL1 D
7 11 8 maxL2 D
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 double maxScore(java.util.List<java.net.InetAddress>);
descriptor: (Ljava/util/List;)D
flags: (0x0002) ACC_PRIVATE
Code:
stack=4, locals=7, args_size=2
start local 0 start local 1 0: ldc -1.0
dstore 2
start local 2 1: aload 1
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 5
goto 8
StackMap locals: org.apache.cassandra.locator.DynamicEndpointSnitch java.util.List double top java.util.Iterator
StackMap stack:
2: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.net.InetAddress
astore 4
start local 4 3: aload 0
getfield org.apache.cassandra.locator.DynamicEndpointSnitch.scores:Ljava/util/HashMap;
aload 4
invokevirtual java.util.HashMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast java.lang.Double
astore 6
start local 6 4: aload 6
ifnonnull 6
5: goto 8
6: StackMap locals: org.apache.cassandra.locator.DynamicEndpointSnitch java.util.List double java.net.InetAddress java.util.Iterator java.lang.Double
StackMap stack:
aload 6
invokevirtual java.lang.Double.doubleValue:()D
dload 2
dcmpl
ifle 8
7: aload 6
invokevirtual java.lang.Double.doubleValue:()D
dstore 2
end local 6 end local 4 8: StackMap locals: org.apache.cassandra.locator.DynamicEndpointSnitch java.util.List double top java.util.Iterator
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
9: dload 2
dreturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/apache/cassandra/locator/DynamicEndpointSnitch;
0 10 1 endpoints Ljava/util/List<Ljava/net/InetAddress;>;
1 10 2 maxScore D
3 8 4 endpoint Ljava/net/InetAddress;
4 8 6 score Ljava/lang/Double;
Signature: (Ljava/util/List<Ljava/net/InetAddress;>;)D
MethodParameters:
Name Flags
endpoints
}
SourceFile: "DynamicEndpointSnitch.java"
NestMembers:
org.apache.cassandra.locator.DynamicEndpointSnitch$1 org.apache.cassandra.locator.DynamicEndpointSnitch$2 org.apache.cassandra.locator.DynamicEndpointSnitch$3
InnerClasses:
public abstract Entry = java.util.Map$Entry of java.util.Map
public VersionedValueFactory = org.apache.cassandra.gms.VersionedValue$VersionedValueFactory of org.apache.cassandra.gms.VersionedValue
org.apache.cassandra.locator.DynamicEndpointSnitch$1
org.apache.cassandra.locator.DynamicEndpointSnitch$2
org.apache.cassandra.locator.DynamicEndpointSnitch$3