public class org.apache.cassandra.streaming.DefaultConnectionFactory implements org.apache.cassandra.streaming.StreamConnectionFactory
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.streaming.DefaultConnectionFactory
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 static final int MAX_CONNECT_ATTEMPTS;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 3
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/apache/cassandra/streaming/DefaultConnectionFactory;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic org.apache.cassandra.streaming.DefaultConnectionFactory.logger:Lorg/slf4j/Logger;
1: return
LocalVariableTable:
Start End Slot Name Signature
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/streaming/DefaultConnectionFactory;
public java.net.Socket createConnection(java.net.InetAddress);
descriptor: (Ljava/net/InetAddress;)Ljava/net/Socket;
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=8, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: StackMap locals: int
StackMap stack:
aconst_null
astore 3
start local 3 2: aload 1
invokestatic org.apache.cassandra.net.OutboundTcpConnectionPool.newSocket:(Ljava/net/InetAddress;)Ljava/net/Socket;
astore 3
3: aload 3
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getStreamingSocketTimeout:()I
invokevirtual java.net.Socket.setSoTimeout:(I)V
4: aload 3
iconst_1
invokevirtual java.net.Socket.setKeepAlive:(Z)V
5: aload 3
6: areturn
7: StackMap locals: org.apache.cassandra.streaming.DefaultConnectionFactory java.net.InetAddress int java.net.Socket
StackMap stack: java.io.IOException
astore 4
start local 4 8: aload 3
ifnull 10
9: aload 3
invokevirtual java.net.Socket.close:()V
10: StackMap locals: java.io.IOException
StackMap stack:
iinc 2 1
iload 2
iconst_3
if_icmplt 12
11: aload 4
athrow
12: StackMap locals:
StackMap stack:
invokestatic org.apache.cassandra.config.DatabaseDescriptor.getRpcTimeout:()J
ldc 2.0
iload 2
i2d
invokestatic java.lang.Math.pow:(DD)D
d2l
lmul
lstore 5
start local 5 13: getstatic org.apache.cassandra.streaming.DefaultConnectionFactory.logger:Lorg/slf4j/Logger;
ldc "Failed attempt {} to connect to {}. Retrying in {} ms. ({})"
iconst_4
anewarray java.lang.Object
dup
iconst_0
iload 2
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_1
aload 1
aastore
dup
iconst_2
lload 5
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
aastore
dup
iconst_3
aload 4
aastore
invokeinterface org.slf4j.Logger.warn:(Ljava/lang/String;[Ljava/lang/Object;)V
14: lload 5
invokestatic java.lang.Thread.sleep:(J)V
15: goto 1
16: StackMap locals: org.apache.cassandra.streaming.DefaultConnectionFactory java.net.InetAddress int java.net.Socket java.io.IOException long
StackMap stack: java.lang.InterruptedException
astore 7
start local 7 17: new java.io.IOException
dup
ldc "interrupted"
aload 7
invokespecial java.io.IOException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 7 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 18 0 this Lorg/apache/cassandra/streaming/DefaultConnectionFactory;
0 18 1 peer Ljava/net/InetAddress;
1 18 2 attempts I
2 18 3 socket Ljava/net/Socket;
8 18 4 e Ljava/io/IOException;
13 18 5 waitms J
17 18 7 wtf Ljava/lang/InterruptedException;
Exception table:
from to target type
2 6 7 Class java.io.IOException
14 15 16 Class java.lang.InterruptedException
Exceptions:
throws java.io.IOException
MethodParameters:
Name Flags
peer
}
SourceFile: "DefaultConnectionFactory.java"