public class org.apache.cassandra.thrift.TCustomServerSocket extends org.apache.thrift.transport.TServerTransport
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.thrift.TCustomServerSocket
super_class: org.apache.thrift.transport.TServerTransport
{
private static final org.slf4j.Logger logger;
descriptor: Lorg/slf4j/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private java.net.ServerSocket serverSocket;
descriptor: Ljava/net/ServerSocket;
flags: (0x0002) ACC_PRIVATE
private final boolean keepAlive;
descriptor: Z
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.Integer sendBufferSize;
descriptor: Ljava/lang/Integer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.Integer recvBufferSize;
descriptor: Ljava/lang/Integer;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/apache/cassandra/thrift/TCustomServerSocket;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic org.apache.cassandra.thrift.TCustomServerSocket.logger:Lorg/slf4j/Logger;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(java.net.InetSocketAddress, boolean, java.lang.Integer, java.lang.Integer, java.lang.Integer);
descriptor: (Ljava/net/InetSocketAddress;ZLjava/lang/Integer;Ljava/lang/Integer;Ljava/lang/Integer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, 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 org.apache.thrift.transport.TServerTransport.<init>:()V
1: aload 0
aconst_null
putfield org.apache.cassandra.thrift.TCustomServerSocket.serverSocket:Ljava/net/ServerSocket;
2: aload 0
new java.net.ServerSocket
dup
invokespecial java.net.ServerSocket.<init>:()V
putfield org.apache.cassandra.thrift.TCustomServerSocket.serverSocket:Ljava/net/ServerSocket;
3: aload 0
getfield org.apache.cassandra.thrift.TCustomServerSocket.serverSocket:Ljava/net/ServerSocket;
iconst_1
invokevirtual java.net.ServerSocket.setReuseAddress:(Z)V
4: aload 0
getfield org.apache.cassandra.thrift.TCustomServerSocket.serverSocket:Ljava/net/ServerSocket;
aload 1
aload 5
invokevirtual java.lang.Integer.intValue:()I
invokevirtual java.net.ServerSocket.bind:(Ljava/net/SocketAddress;I)V
5: goto 9
6: StackMap locals: org.apache.cassandra.thrift.TCustomServerSocket java.net.InetSocketAddress int java.lang.Integer java.lang.Integer java.lang.Integer
StackMap stack: java.io.IOException
pop
7: aload 0
aconst_null
putfield org.apache.cassandra.thrift.TCustomServerSocket.serverSocket:Ljava/net/ServerSocket;
8: new org.apache.thrift.transport.TTransportException
dup
new java.lang.StringBuilder
dup
ldc "Could not create ServerSocket on address "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "."
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial org.apache.thrift.transport.TTransportException.<init>:(Ljava/lang/String;)V
athrow
9: StackMap locals:
StackMap stack:
aload 0
iload 2
putfield org.apache.cassandra.thrift.TCustomServerSocket.keepAlive:Z
10: aload 0
aload 3
putfield org.apache.cassandra.thrift.TCustomServerSocket.sendBufferSize:Ljava/lang/Integer;
11: aload 0
aload 4
putfield org.apache.cassandra.thrift.TCustomServerSocket.recvBufferSize:Ljava/lang/Integer;
12: 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 13 0 this Lorg/apache/cassandra/thrift/TCustomServerSocket;
0 13 1 bindAddr Ljava/net/InetSocketAddress;
0 13 2 keepAlive Z
0 13 3 sendBufferSize Ljava/lang/Integer;
0 13 4 recvBufferSize Ljava/lang/Integer;
0 13 5 listenBacklog Ljava/lang/Integer;
Exception table:
from to target type
2 5 6 Class java.io.IOException
Exceptions:
throws org.apache.thrift.transport.TTransportException
MethodParameters:
Name Flags
bindAddr
keepAlive
sendBufferSize
recvBufferSize
listenBacklog
public void <init>(java.net.ServerSocket, boolean, java.lang.Integer, java.lang.Integer);
descriptor: (Ljava/net/ServerSocket;ZLjava/lang/Integer;Ljava/lang/Integer;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
invokespecial org.apache.thrift.transport.TServerTransport.<init>:()V
1: aload 0
aconst_null
putfield org.apache.cassandra.thrift.TCustomServerSocket.serverSocket:Ljava/net/ServerSocket;
2: aload 0
aload 1
putfield org.apache.cassandra.thrift.TCustomServerSocket.serverSocket:Ljava/net/ServerSocket;
3: aload 0
iload 2
putfield org.apache.cassandra.thrift.TCustomServerSocket.keepAlive:Z
4: aload 0
aload 3
putfield org.apache.cassandra.thrift.TCustomServerSocket.sendBufferSize:Ljava/lang/Integer;
5: aload 0
aload 4
putfield org.apache.cassandra.thrift.TCustomServerSocket.recvBufferSize:Ljava/lang/Integer;
6: return
end local 4 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/thrift/TCustomServerSocket;
0 7 1 socket Ljava/net/ServerSocket;
0 7 2 keepAlive Z
0 7 3 sendBufferSize Ljava/lang/Integer;
0 7 4 recvBufferSize Ljava/lang/Integer;
MethodParameters:
Name Flags
socket
keepAlive
sendBufferSize
recvBufferSize
protected org.apache.cassandra.thrift.TCustomSocket acceptImpl();
descriptor: ()Lorg/apache/cassandra/thrift/TCustomSocket;
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=4, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.thrift.TCustomServerSocket.serverSocket:Ljava/net/ServerSocket;
ifnonnull 2
1: new org.apache.thrift.transport.TTransportException
dup
iconst_1
ldc "No underlying server socket."
invokespecial org.apache.thrift.transport.TTransportException.<init>:(ILjava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
aconst_null
astore 1
start local 1 3: aconst_null
astore 2
start local 2 4: aload 0
getfield org.apache.cassandra.thrift.TCustomServerSocket.serverSocket:Ljava/net/ServerSocket;
invokevirtual java.net.ServerSocket.accept:()Ljava/net/Socket;
astore 2
5: new org.apache.cassandra.thrift.TCustomSocket
dup
aload 2
invokespecial org.apache.cassandra.thrift.TCustomSocket.<init>:(Ljava/net/Socket;)V
astore 1
6: aload 1
iconst_0
invokevirtual org.apache.cassandra.thrift.TCustomSocket.setTimeout:(I)V
7: goto 10
8: StackMap locals: org.apache.cassandra.thrift.TCustomServerSocket org.apache.cassandra.thrift.TCustomSocket java.net.Socket
StackMap stack: java.io.IOException
astore 3
start local 3 9: new org.apache.thrift.transport.TTransportException
dup
aload 3
invokespecial org.apache.thrift.transport.TTransportException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 3 10: StackMap locals:
StackMap stack:
aload 2
aload 0
getfield org.apache.cassandra.thrift.TCustomServerSocket.keepAlive:Z
invokevirtual java.net.Socket.setKeepAlive:(Z)V
11: goto 14
12: StackMap locals:
StackMap stack: java.net.SocketException
astore 3
start local 3 13: getstatic org.apache.cassandra.thrift.TCustomServerSocket.logger:Lorg/slf4j/Logger;
ldc "Failed to set keep-alive on Thrift socket."
aload 3
invokeinterface org.slf4j.Logger.warn:(Ljava/lang/String;Ljava/lang/Throwable;)V
end local 3 14: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.thrift.TCustomServerSocket.sendBufferSize:Ljava/lang/Integer;
ifnull 19
15: aload 2
aload 0
getfield org.apache.cassandra.thrift.TCustomServerSocket.sendBufferSize:Ljava/lang/Integer;
invokevirtual java.lang.Integer.intValue:()I
invokevirtual java.net.Socket.setSendBufferSize:(I)V
16: goto 19
17: StackMap locals:
StackMap stack: java.net.SocketException
astore 3
start local 3 18: getstatic org.apache.cassandra.thrift.TCustomServerSocket.logger:Lorg/slf4j/Logger;
ldc "Failed to set send buffer size on Thrift socket."
aload 3
invokeinterface org.slf4j.Logger.warn:(Ljava/lang/String;Ljava/lang/Throwable;)V
end local 3 19: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.thrift.TCustomServerSocket.recvBufferSize:Ljava/lang/Integer;
ifnull 24
20: aload 2
aload 0
getfield org.apache.cassandra.thrift.TCustomServerSocket.recvBufferSize:Ljava/lang/Integer;
invokevirtual java.lang.Integer.intValue:()I
invokevirtual java.net.Socket.setReceiveBufferSize:(I)V
21: goto 24
22: StackMap locals:
StackMap stack: java.net.SocketException
astore 3
start local 3 23: getstatic org.apache.cassandra.thrift.TCustomServerSocket.logger:Lorg/slf4j/Logger;
ldc "Failed to set receive buffer size on Thrift socket."
aload 3
invokeinterface org.slf4j.Logger.warn:(Ljava/lang/String;Ljava/lang/Throwable;)V
end local 3 24: StackMap locals:
StackMap stack:
aload 1
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 25 0 this Lorg/apache/cassandra/thrift/TCustomServerSocket;
3 25 1 tsocket Lorg/apache/cassandra/thrift/TCustomSocket;
4 25 2 socket Ljava/net/Socket;
9 10 3 iox Ljava/io/IOException;
13 14 3 se Ljava/net/SocketException;
18 19 3 se Ljava/net/SocketException;
23 24 3 se Ljava/net/SocketException;
Exception table:
from to target type
4 7 8 Class java.io.IOException
10 11 12 Class java.net.SocketException
15 16 17 Class java.net.SocketException
20 21 22 Class java.net.SocketException
Exceptions:
throws org.apache.thrift.transport.TTransportException
public void listen();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.thrift.TCustomServerSocket.serverSocket:Ljava/net/ServerSocket;
ifnull 5
1: aload 0
getfield org.apache.cassandra.thrift.TCustomServerSocket.serverSocket:Ljava/net/ServerSocket;
bipush 100
invokevirtual java.net.ServerSocket.setSoTimeout:(I)V
2: goto 5
3: StackMap locals:
StackMap stack: java.net.SocketException
astore 1
start local 1 4: getstatic org.apache.cassandra.thrift.TCustomServerSocket.logger:Lorg/slf4j/Logger;
ldc "Could not set socket timeout."
aload 1
invokeinterface org.slf4j.Logger.error:(Ljava/lang/String;Ljava/lang/Throwable;)V
end local 1 5: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/cassandra/thrift/TCustomServerSocket;
4 5 1 sx Ljava/net/SocketException;
Exception table:
from to target type
1 2 3 Class java.net.SocketException
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
getfield org.apache.cassandra.thrift.TCustomServerSocket.serverSocket:Ljava/net/ServerSocket;
ifnull 6
1: aload 0
getfield org.apache.cassandra.thrift.TCustomServerSocket.serverSocket:Ljava/net/ServerSocket;
invokevirtual java.net.ServerSocket.close:()V
2: goto 5
3: StackMap locals:
StackMap stack: java.io.IOException
astore 1
start local 1 4: getstatic org.apache.cassandra.thrift.TCustomServerSocket.logger:Lorg/slf4j/Logger;
ldc "Could not close server socket."
aload 1
invokeinterface org.slf4j.Logger.warn:(Ljava/lang/String;Ljava/lang/Throwable;)V
end local 1 5: StackMap locals:
StackMap stack:
aload 0
aconst_null
putfield org.apache.cassandra.thrift.TCustomServerSocket.serverSocket:Ljava/net/ServerSocket;
6: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/apache/cassandra/thrift/TCustomServerSocket;
4 5 1 iox Ljava/io/IOException;
Exception table:
from to target type
1 2 3 Class java.io.IOException
public void interrupt();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual org.apache.cassandra.thrift.TCustomServerSocket.close:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/cassandra/thrift/TCustomServerSocket;
protected org.apache.thrift.transport.TTransport acceptImpl();
descriptor: ()Lorg/apache/thrift/transport/TTransport;
flags: (0x1044) ACC_PROTECTED, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual org.apache.cassandra.thrift.TCustomServerSocket.acceptImpl:()Lorg/apache/cassandra/thrift/TCustomSocket;
areturn
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws org.apache.thrift.transport.TTransportException
}
SourceFile: "TCustomServerSocket.java"