public class org.apache.cassandra.thrift.TCustomSocket extends org.apache.thrift.transport.TIOStreamTransport
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.thrift.TCustomSocket
super_class: org.apache.thrift.transport.TIOStreamTransport
{
private static final org.slf4j.Logger LOGGER;
descriptor: Lorg/slf4j/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private java.net.Socket socket;
descriptor: Ljava/net/Socket;
flags: (0x0002) ACC_PRIVATE
private java.lang.String host;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private int port;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int timeout;
descriptor: I
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/apache/cassandra/thrift/TCustomSocket;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/String;)Lorg/slf4j/Logger;
putstatic org.apache.cassandra.thrift.TCustomSocket.LOGGER:Lorg/slf4j/Logger;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.net.Socket);
descriptor: (Ljava/net/Socket;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokespecial org.apache.thrift.transport.TIOStreamTransport.<init>:()V
1: aload 0
aconst_null
putfield org.apache.cassandra.thrift.TCustomSocket.socket:Ljava/net/Socket;
2: aload 0
aconst_null
putfield org.apache.cassandra.thrift.TCustomSocket.host:Ljava/lang/String;
3: aload 0
iconst_0
putfield org.apache.cassandra.thrift.TCustomSocket.port:I
4: aload 0
iconst_0
putfield org.apache.cassandra.thrift.TCustomSocket.timeout:I
5: aload 0
aload 1
putfield org.apache.cassandra.thrift.TCustomSocket.socket:Ljava/net/Socket;
6: aload 1
iconst_0
iconst_0
invokevirtual java.net.Socket.setSoLinger:(ZI)V
7: aload 1
iconst_1
invokevirtual java.net.Socket.setTcpNoDelay:(Z)V
8: goto 11
9: StackMap locals: org.apache.cassandra.thrift.TCustomSocket java.net.Socket
StackMap stack: java.net.SocketException
astore 2
start local 2 10: getstatic org.apache.cassandra.thrift.TCustomSocket.LOGGER:Lorg/slf4j/Logger;
ldc "Could not configure socket."
aload 2
invokeinterface org.slf4j.Logger.warn:(Ljava/lang/String;Ljava/lang/Throwable;)V
end local 2 11: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.apache.cassandra.thrift.TCustomSocket.isOpen:()Z
ifeq 18
12: aload 0
new java.io.BufferedInputStream
dup
aload 1
invokevirtual java.net.Socket.getInputStream:()Ljava/io/InputStream;
sipush 1024
invokespecial java.io.BufferedInputStream.<init>:(Ljava/io/InputStream;I)V
putfield org.apache.cassandra.thrift.TCustomSocket.inputStream_:Ljava/io/InputStream;
13: aload 0
new java.io.BufferedOutputStream
dup
aload 1
invokevirtual java.net.Socket.getOutputStream:()Ljava/io/OutputStream;
sipush 1024
invokespecial java.io.BufferedOutputStream.<init>:(Ljava/io/OutputStream;I)V
putfield org.apache.cassandra.thrift.TCustomSocket.outputStream_:Ljava/io/OutputStream;
14: goto 18
15: StackMap locals:
StackMap stack: java.io.IOException
astore 2
start local 2 16: aload 0
invokevirtual org.apache.cassandra.thrift.TCustomSocket.close:()V
17: new org.apache.thrift.transport.TTransportException
dup
iconst_1
aload 2
invokespecial org.apache.thrift.transport.TTransportException.<init>:(ILjava/lang/Throwable;)V
athrow
end local 2 18: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 this Lorg/apache/cassandra/thrift/TCustomSocket;
0 19 1 socket Ljava/net/Socket;
10 11 2 sx Ljava/net/SocketException;
16 18 2 iox Ljava/io/IOException;
Exception table:
from to target type
6 8 9 Class java.net.SocketException
12 14 15 Class java.io.IOException
Exceptions:
throws org.apache.thrift.transport.TTransportException
MethodParameters:
Name Flags
socket
public void <init>(java.lang.String, int);
descriptor: (Ljava/lang/String;I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
iload 2
iconst_0
invokespecial org.apache.cassandra.thrift.TCustomSocket.<init>:(Ljava/lang/String;II)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/thrift/TCustomSocket;
0 2 1 host Ljava/lang/String;
0 2 2 port I
MethodParameters:
Name Flags
host
port
public void <init>(java.lang.String, int, int);
descriptor: (Ljava/lang/String;II)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
invokespecial org.apache.thrift.transport.TIOStreamTransport.<init>:()V
1: aload 0
aconst_null
putfield org.apache.cassandra.thrift.TCustomSocket.socket:Ljava/net/Socket;
2: aload 0
aconst_null
putfield org.apache.cassandra.thrift.TCustomSocket.host:Ljava/lang/String;
3: aload 0
iconst_0
putfield org.apache.cassandra.thrift.TCustomSocket.port:I
4: aload 0
iconst_0
putfield org.apache.cassandra.thrift.TCustomSocket.timeout:I
5: aload 0
aload 1
putfield org.apache.cassandra.thrift.TCustomSocket.host:Ljava/lang/String;
6: aload 0
iload 2
putfield org.apache.cassandra.thrift.TCustomSocket.port:I
7: aload 0
iload 3
putfield org.apache.cassandra.thrift.TCustomSocket.timeout:I
8: aload 0
invokevirtual org.apache.cassandra.thrift.TCustomSocket.initSocket:()V
9: return
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/thrift/TCustomSocket;
0 10 1 host Ljava/lang/String;
0 10 2 port I
0 10 3 timeout I
MethodParameters:
Name Flags
host
port
timeout
private void initSocket();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
new java.net.Socket
dup
invokespecial java.net.Socket.<init>:()V
putfield org.apache.cassandra.thrift.TCustomSocket.socket:Ljava/net/Socket;
1: aload 0
getfield org.apache.cassandra.thrift.TCustomSocket.socket:Ljava/net/Socket;
iconst_0
iconst_0
invokevirtual java.net.Socket.setSoLinger:(ZI)V
2: aload 0
getfield org.apache.cassandra.thrift.TCustomSocket.socket:Ljava/net/Socket;
iconst_1
invokevirtual java.net.Socket.setTcpNoDelay:(Z)V
3: aload 0
getfield org.apache.cassandra.thrift.TCustomSocket.socket:Ljava/net/Socket;
aload 0
getfield org.apache.cassandra.thrift.TCustomSocket.timeout:I
invokevirtual java.net.Socket.setSoTimeout:(I)V
4: goto 7
5: StackMap locals:
StackMap stack: java.net.SocketException
astore 1
start local 1 6: getstatic org.apache.cassandra.thrift.TCustomSocket.LOGGER:Lorg/slf4j/Logger;
ldc "Could not configure socket."
aload 1
invokeinterface org.slf4j.Logger.error:(Ljava/lang/String;Ljava/lang/Throwable;)V
end local 1 7: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/apache/cassandra/thrift/TCustomSocket;
6 7 1 sx Ljava/net/SocketException;
Exception table:
from to target type
1 4 5 Class java.net.SocketException
public void setTimeout(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield org.apache.cassandra.thrift.TCustomSocket.timeout:I
1: aload 0
getfield org.apache.cassandra.thrift.TCustomSocket.socket:Ljava/net/Socket;
iload 1
invokevirtual java.net.Socket.setSoTimeout:(I)V
2: goto 5
3: StackMap locals:
StackMap stack: java.net.SocketException
astore 2
start local 2 4: getstatic org.apache.cassandra.thrift.TCustomSocket.LOGGER:Lorg/slf4j/Logger;
ldc "Could not set socket timeout."
aload 2
invokeinterface org.slf4j.Logger.warn:(Ljava/lang/String;Ljava/lang/Throwable;)V
end local 2 5: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/cassandra/thrift/TCustomSocket;
0 6 1 timeout I
4 5 2 sx Ljava/net/SocketException;
Exception table:
from to target type
1 2 3 Class java.net.SocketException
MethodParameters:
Name Flags
timeout
public java.net.Socket getSocket();
descriptor: ()Ljava/net/Socket;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.thrift.TCustomSocket.socket:Ljava/net/Socket;
ifnonnull 2
1: aload 0
invokevirtual org.apache.cassandra.thrift.TCustomSocket.initSocket:()V
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.thrift.TCustomSocket.socket:Ljava/net/Socket;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/thrift/TCustomSocket;
public boolean isOpen();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.thrift.TCustomSocket.socket:Ljava/net/Socket;
ifnonnull 2
1: iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.thrift.TCustomSocket.socket:Ljava/net/Socket;
invokevirtual java.net.Socket.isConnected:()Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/thrift/TCustomSocket;
public void open();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.cassandra.thrift.TCustomSocket.isOpen:()Z
ifeq 2
1: new org.apache.thrift.transport.TTransportException
dup
iconst_2
ldc "Socket already connected."
invokespecial org.apache.thrift.transport.TTransportException.<init>:(ILjava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.thrift.TCustomSocket.host:Ljava/lang/String;
invokevirtual java.lang.String.length:()I
ifne 4
3: new org.apache.thrift.transport.TTransportException
dup
iconst_1
ldc "Cannot open null host."
invokespecial org.apache.thrift.transport.TTransportException.<init>:(ILjava/lang/String;)V
athrow
4: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.thrift.TCustomSocket.port:I
ifgt 6
5: new org.apache.thrift.transport.TTransportException
dup
iconst_1
ldc "Cannot open without port."
invokespecial org.apache.thrift.transport.TTransportException.<init>:(ILjava/lang/String;)V
athrow
6: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.thrift.TCustomSocket.socket:Ljava/net/Socket;
ifnonnull 8
7: aload 0
invokevirtual org.apache.cassandra.thrift.TCustomSocket.initSocket:()V
8: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.thrift.TCustomSocket.socket:Ljava/net/Socket;
new java.net.InetSocketAddress
dup
aload 0
getfield org.apache.cassandra.thrift.TCustomSocket.host:Ljava/lang/String;
aload 0
getfield org.apache.cassandra.thrift.TCustomSocket.port:I
invokespecial java.net.InetSocketAddress.<init>:(Ljava/lang/String;I)V
aload 0
getfield org.apache.cassandra.thrift.TCustomSocket.timeout:I
invokevirtual java.net.Socket.connect:(Ljava/net/SocketAddress;I)V
9: aload 0
new java.io.BufferedInputStream
dup
aload 0
getfield org.apache.cassandra.thrift.TCustomSocket.socket:Ljava/net/Socket;
invokevirtual java.net.Socket.getInputStream:()Ljava/io/InputStream;
sipush 1024
invokespecial java.io.BufferedInputStream.<init>:(Ljava/io/InputStream;I)V
putfield org.apache.cassandra.thrift.TCustomSocket.inputStream_:Ljava/io/InputStream;
10: aload 0
new java.io.BufferedOutputStream
dup
aload 0
getfield org.apache.cassandra.thrift.TCustomSocket.socket:Ljava/net/Socket;
invokevirtual java.net.Socket.getOutputStream:()Ljava/io/OutputStream;
sipush 1024
invokespecial java.io.BufferedOutputStream.<init>:(Ljava/io/OutputStream;I)V
putfield org.apache.cassandra.thrift.TCustomSocket.outputStream_:Ljava/io/OutputStream;
11: goto 15
12: StackMap locals:
StackMap stack: java.io.IOException
astore 1
start local 1 13: aload 0
invokevirtual org.apache.cassandra.thrift.TCustomSocket.close:()V
14: new org.apache.thrift.transport.TTransportException
dup
iconst_1
aload 1
invokespecial org.apache.thrift.transport.TTransportException.<init>:(ILjava/lang/Throwable;)V
athrow
end local 1 15: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 16 0 this Lorg/apache/cassandra/thrift/TCustomSocket;
13 15 1 iox Ljava/io/IOException;
Exception table:
from to target type
8 11 12 Class java.io.IOException
Exceptions:
throws org.apache.thrift.transport.TTransportException
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
invokespecial org.apache.thrift.transport.TIOStreamTransport.close:()V
1: aload 0
getfield org.apache.cassandra.thrift.TCustomSocket.socket:Ljava/net/Socket;
ifnull 7
2: aload 0
getfield org.apache.cassandra.thrift.TCustomSocket.socket:Ljava/net/Socket;
invokevirtual java.net.Socket.close:()V
3: goto 6
4: StackMap locals:
StackMap stack: java.io.IOException
astore 1
start local 1 5: getstatic org.apache.cassandra.thrift.TCustomSocket.LOGGER:Lorg/slf4j/Logger;
ldc "Could not close socket."
aload 1
invokeinterface org.slf4j.Logger.warn:(Ljava/lang/String;Ljava/lang/Throwable;)V
end local 1 6: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield org.apache.cassandra.thrift.TCustomSocket.socket:Ljava/net/Socket;
7: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/apache/cassandra/thrift/TCustomSocket;
5 6 1 iox Ljava/io/IOException;
Exception table:
from to target type
2 3 4 Class java.io.IOException
}
SourceFile: "TCustomSocket.java"