class org.apache.cassandra.gms.ArrivalWindow
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: org.apache.cassandra.gms.ArrivalWindow
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 long tLast;
descriptor: J
flags: (0x0002) ACC_PRIVATE
private final org.apache.cassandra.gms.ArrayBackedBoundedStats arrivalIntervals;
descriptor: Lorg/apache/cassandra/gms/ArrayBackedBoundedStats;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private double lastReportedPhi;
descriptor: D
flags: (0x0002) ACC_PRIVATE
private final long MAX_INTERVAL_IN_NANO;
descriptor: J
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/gms/ArrivalWindow;
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.gms.ArrivalWindow.$assertionsDisabled:Z
3: ldc Lorg/apache/cassandra/gms/ArrivalWindow;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic org.apache.cassandra.gms.ArrivalWindow.logger:Lorg/slf4j/Logger;
return
LocalVariableTable:
Start End Slot Name Signature
void <init>(int);
descriptor: (I)V
flags: (0x0000)
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
lconst_0
putfield org.apache.cassandra.gms.ArrivalWindow.tLast:J
2: aload 0
ldc 4.9E-324
putfield org.apache.cassandra.gms.ArrivalWindow.lastReportedPhi:D
3: aload 0
invokestatic org.apache.cassandra.gms.ArrivalWindow.getMaxInterval:()J
putfield org.apache.cassandra.gms.ArrivalWindow.MAX_INTERVAL_IN_NANO:J
4: aload 0
new org.apache.cassandra.gms.ArrayBackedBoundedStats
dup
iload 1
invokespecial org.apache.cassandra.gms.ArrayBackedBoundedStats.<init>:(I)V
putfield org.apache.cassandra.gms.ArrivalWindow.arrivalIntervals:Lorg/apache/cassandra/gms/ArrayBackedBoundedStats;
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/cassandra/gms/ArrivalWindow;
0 6 1 size I
MethodParameters:
Name Flags
size
private static long getMaxInterval();
descriptor: ()J
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=1, args_size=0
0: ldc "cassandra.fd_max_interval_ms"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
astore 0
start local 0 1: aload 0
ifnonnull 3
2: getstatic org.apache.cassandra.gms.FailureDetector.INITIAL_VALUE_NANOS:J
lreturn
3: StackMap locals: java.lang.String
StackMap stack:
getstatic org.apache.cassandra.gms.ArrivalWindow.logger:Lorg/slf4j/Logger;
ldc "Overriding FD MAX_INTERVAL to {}ms"
aload 0
invokeinterface org.slf4j.Logger.info:(Ljava/lang/String;Ljava/lang/Object;)V
4: getstatic java.util.concurrent.TimeUnit.NANOSECONDS:Ljava/util/concurrent/TimeUnit;
aload 0
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
i2l
getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
invokevirtual java.util.concurrent.TimeUnit.convert:(JLjava/util/concurrent/TimeUnit;)J
lreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 5 0 newvalue Ljava/lang/String;
synchronized void add(long, java.net.InetAddress);
descriptor: (JLjava/net/InetAddress;)V
flags: (0x0020) ACC_SYNCHRONIZED
Code:
stack=4, locals=6, args_size=3
start local 0 start local 1 start local 3 0: getstatic org.apache.cassandra.gms.ArrivalWindow.$assertionsDisabled:Z
ifne 1
aload 0
getfield org.apache.cassandra.gms.ArrivalWindow.tLast:J
lconst_0
lcmp
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.gms.ArrivalWindow.tLast:J
lconst_0
lcmp
ifle 9
2: lload 1
aload 0
getfield org.apache.cassandra.gms.ArrivalWindow.tLast:J
lsub
lstore 4
start local 4 3: lload 4
aload 0
getfield org.apache.cassandra.gms.ArrivalWindow.MAX_INTERVAL_IN_NANO:J
lcmp
ifgt 7
4: aload 0
getfield org.apache.cassandra.gms.ArrivalWindow.arrivalIntervals:Lorg/apache/cassandra/gms/ArrayBackedBoundedStats;
lload 4
invokevirtual org.apache.cassandra.gms.ArrayBackedBoundedStats.add:(J)V
5: getstatic org.apache.cassandra.gms.ArrivalWindow.logger:Lorg/slf4j/Logger;
ldc "Reporting interval time of {} for {}"
lload 4
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aload 3
invokeinterface org.slf4j.Logger.trace:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
6: goto 10
7: StackMap locals: long
StackMap stack:
getstatic org.apache.cassandra.gms.ArrivalWindow.logger:Lorg/slf4j/Logger;
ldc "Ignoring interval time of {} for {}"
lload 4
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aload 3
invokeinterface org.slf4j.Logger.trace:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
end local 4 8: goto 10
9: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.gms.ArrivalWindow.arrivalIntervals:Lorg/apache/cassandra/gms/ArrayBackedBoundedStats;
getstatic org.apache.cassandra.gms.FailureDetector.INITIAL_VALUE_NANOS:J
invokevirtual org.apache.cassandra.gms.ArrayBackedBoundedStats.add:(J)V
10: StackMap locals:
StackMap stack:
aload 0
lload 1
putfield org.apache.cassandra.gms.ArrivalWindow.tLast:J
11: return
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lorg/apache/cassandra/gms/ArrivalWindow;
0 12 1 value J
0 12 3 ep Ljava/net/InetAddress;
3 8 4 interArrivalTime J
MethodParameters:
Name Flags
value
ep
double mean();
descriptor: ()D
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.gms.ArrivalWindow.arrivalIntervals:Lorg/apache/cassandra/gms/ArrayBackedBoundedStats;
invokevirtual org.apache.cassandra.gms.ArrayBackedBoundedStats.mean:()D
dreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/gms/ArrivalWindow;
double phi(long);
descriptor: (J)D
flags: (0x0000)
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: getstatic org.apache.cassandra.gms.ArrivalWindow.$assertionsDisabled:Z
ifne 2
aload 0
getfield org.apache.cassandra.gms.ArrivalWindow.arrivalIntervals:Lorg/apache/cassandra/gms/ArrayBackedBoundedStats;
invokevirtual org.apache.cassandra.gms.ArrayBackedBoundedStats.mean:()D
dconst_0
dcmpl
ifle 1
aload 0
getfield org.apache.cassandra.gms.ArrivalWindow.tLast:J
lconst_0
lcmp
ifgt 2
StackMap locals:
StackMap stack:
1: new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
2: StackMap locals:
StackMap stack:
lload 1
aload 0
getfield org.apache.cassandra.gms.ArrivalWindow.tLast:J
lsub
lstore 3
start local 3 3: aload 0
lload 3
l2d
aload 0
invokevirtual org.apache.cassandra.gms.ArrivalWindow.mean:()D
ddiv
putfield org.apache.cassandra.gms.ArrivalWindow.lastReportedPhi:D
4: aload 0
getfield org.apache.cassandra.gms.ArrivalWindow.lastReportedPhi:D
dreturn
end local 3 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/apache/cassandra/gms/ArrivalWindow;
0 5 1 tnow J
3 5 3 t J
MethodParameters:
Name Flags
tnow
double getLastReportedPhi();
descriptor: ()D
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.gms.ArrivalWindow.lastReportedPhi:D
dreturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/gms/ArrivalWindow;
public java.lang.String toString();
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.gms.ArrivalWindow.arrivalIntervals:Lorg/apache/cassandra/gms/ArrayBackedBoundedStats;
invokevirtual org.apache.cassandra.gms.ArrayBackedBoundedStats.getArrivalIntervals:()[J
invokestatic java.util.Arrays.toString:([J)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/cassandra/gms/ArrivalWindow;
}
SourceFile: "FailureDetector.java"