public class org.apache.cassandra.thrift.CustomTThreadPoolServer extends org.apache.thrift.server.TServer
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.cassandra.thrift.CustomTThreadPoolServer
super_class: org.apache.thrift.server.TServer
{
private static final org.slf4j.Logger logger;
descriptor: Lorg/slf4j/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final java.util.concurrent.ExecutorService executorService;
descriptor: Ljava/util/concurrent/ExecutorService;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private volatile boolean stopped;
descriptor: Z
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private final org.apache.thrift.server.TThreadPoolServer$Args args;
descriptor: Lorg/apache/thrift/server/TThreadPoolServer$Args;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.util.concurrent.atomic.AtomicInteger activeClients;
descriptor: Ljava/util/concurrent/atomic/AtomicInteger;
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/CustomTThreadPoolServer;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/String;)Lorg/slf4j/Logger;
putstatic org.apache.cassandra.thrift.CustomTThreadPoolServer.logger:Lorg/slf4j/Logger;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(org.apache.thrift.server.TThreadPoolServer$Args, java.util.concurrent.ExecutorService);
descriptor: (Lorg/apache/thrift/server/TThreadPoolServer$Args;Ljava/util/concurrent/ExecutorService;)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
invokespecial org.apache.thrift.server.TServer.<init>:(Lorg/apache/thrift/server/TServer$AbstractServerArgs;)V
1: aload 0
aload 2
putfield org.apache.cassandra.thrift.CustomTThreadPoolServer.executorService:Ljava/util/concurrent/ExecutorService;
2: aload 0
iconst_0
putfield org.apache.cassandra.thrift.CustomTThreadPoolServer.stopped:Z
3: aload 0
aload 1
putfield org.apache.cassandra.thrift.CustomTThreadPoolServer.args:Lorg/apache/thrift/server/TThreadPoolServer$Args;
4: aload 0
new java.util.concurrent.atomic.AtomicInteger
dup
iconst_0
invokespecial java.util.concurrent.atomic.AtomicInteger.<init>:(I)V
putfield org.apache.cassandra.thrift.CustomTThreadPoolServer.activeClients:Ljava/util/concurrent/atomic/AtomicInteger;
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/cassandra/thrift/CustomTThreadPoolServer;
0 6 1 args Lorg/apache/thrift/server/TThreadPoolServer$Args;
0 6 2 executorService Ljava/util/concurrent/ExecutorService;
MethodParameters:
Name Flags
args
executorService
public void serve();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: aload 0
getfield org.apache.cassandra.thrift.CustomTThreadPoolServer.serverTransport_:Lorg/apache/thrift/transport/TServerTransport;
invokevirtual org.apache.thrift.transport.TServerTransport.listen:()V
1: goto 23
2: StackMap locals:
StackMap stack: org.apache.thrift.transport.TTransportException
astore 1
start local 1 3: getstatic org.apache.cassandra.thrift.CustomTThreadPoolServer.logger:Lorg/slf4j/Logger;
ldc "Error occurred during listening."
aload 1
invokeinterface org.slf4j.Logger.error:(Ljava/lang/String;Ljava/lang/Throwable;)V
4: return
end local 1 5: StackMap locals:
StackMap stack:
ldc 10
getstatic java.util.concurrent.TimeUnit.MILLISECONDS:Ljava/util/concurrent/TimeUnit;
invokestatic com.google.common.util.concurrent.Uninterruptibles.sleepUninterruptibly:(JLjava/util/concurrent/TimeUnit;)V
6: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.thrift.CustomTThreadPoolServer.activeClients:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.get:()I
aload 0
getfield org.apache.cassandra.thrift.CustomTThreadPoolServer.args:Lorg/apache/thrift/server/TThreadPoolServer$Args;
getfield org.apache.thrift.server.TThreadPoolServer$Args.maxWorkerThreads:I
if_icmpge 5
7: aload 0
getfield org.apache.cassandra.thrift.CustomTThreadPoolServer.serverTransport_:Lorg/apache/thrift/transport/TServerTransport;
invokevirtual org.apache.thrift.transport.TServerTransport.accept:()Lorg/apache/thrift/transport/TTransport;
astore 1
start local 1 8: aload 0
getfield org.apache.cassandra.thrift.CustomTThreadPoolServer.activeClients:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.incrementAndGet:()I
pop
9: new org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess
dup
aload 0
aload 1
invokespecial org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess.<init>:(Lorg/apache/cassandra/thrift/CustomTThreadPoolServer;Lorg/apache/thrift/transport/TTransport;)V
astore 2
start local 2 10: aload 0
getfield org.apache.cassandra.thrift.CustomTThreadPoolServer.executorService:Ljava/util/concurrent/ExecutorService;
aload 2
invokeinterface java.util.concurrent.ExecutorService.execute:(Ljava/lang/Runnable;)V
end local 2 end local 1 11: goto 21
12: StackMap locals:
StackMap stack: org.apache.thrift.transport.TTransportException
astore 1
start local 1 13: aload 1
invokevirtual org.apache.thrift.transport.TTransportException.getCause:()Ljava/lang/Throwable;
instanceof java.net.SocketTimeoutException
ifeq 15
14: goto 23
15: StackMap locals: org.apache.thrift.transport.TTransportException
StackMap stack:
aload 0
getfield org.apache.cassandra.thrift.CustomTThreadPoolServer.stopped:Z
ifne 21
16: getstatic org.apache.cassandra.thrift.CustomTThreadPoolServer.logger:Lorg/slf4j/Logger;
ldc "Transport error occurred during acceptance of message."
aload 1
invokeinterface org.slf4j.Logger.warn:(Ljava/lang/String;Ljava/lang/Throwable;)V
end local 1 17: goto 21
18: StackMap locals: org.apache.cassandra.thrift.CustomTThreadPoolServer
StackMap stack: java.util.concurrent.RejectedExecutionException
pop
19: getstatic org.apache.cassandra.thrift.CustomTThreadPoolServer.logger:Lorg/slf4j/Logger;
ldc "Dropping client connection because our limit of {} has been reached"
aload 0
getfield org.apache.cassandra.thrift.CustomTThreadPoolServer.args:Lorg/apache/thrift/server/TThreadPoolServer$Args;
getfield org.apache.thrift.server.TThreadPoolServer$Args.maxWorkerThreads:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface org.slf4j.Logger.trace:(Ljava/lang/String;Ljava/lang/Object;)V
20: goto 23
21: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.thrift.CustomTThreadPoolServer.activeClients:Ljava/util/concurrent/atomic/AtomicInteger;
invokevirtual java.util.concurrent.atomic.AtomicInteger.get:()I
aload 0
getfield org.apache.cassandra.thrift.CustomTThreadPoolServer.args:Lorg/apache/thrift/server/TThreadPoolServer$Args;
getfield org.apache.thrift.server.TThreadPoolServer$Args.maxWorkerThreads:I
if_icmplt 23
22: getstatic org.apache.cassandra.thrift.CustomTThreadPoolServer.logger:Lorg/slf4j/Logger;
ldc "Maximum number of clients {} reached"
aload 0
getfield org.apache.cassandra.thrift.CustomTThreadPoolServer.args:Lorg/apache/thrift/server/TThreadPoolServer$Args;
getfield org.apache.thrift.server.TThreadPoolServer$Args.maxWorkerThreads:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface org.slf4j.Logger.warn:(Ljava/lang/String;Ljava/lang/Object;)V
23: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.cassandra.thrift.CustomTThreadPoolServer.stopped:Z
ifeq 6
24: aload 0
getfield org.apache.cassandra.thrift.CustomTThreadPoolServer.executorService:Ljava/util/concurrent/ExecutorService;
invokeinterface java.util.concurrent.ExecutorService.shutdown:()V
25: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 26 0 this Lorg/apache/cassandra/thrift/CustomTThreadPoolServer;
3 5 1 ttx Lorg/apache/thrift/transport/TTransportException;
8 11 1 client Lorg/apache/thrift/transport/TTransport;
10 11 2 wp Lorg/apache/cassandra/thrift/CustomTThreadPoolServer$WorkerProcess;
13 17 1 ttx Lorg/apache/thrift/transport/TTransportException;
Exception table:
from to target type
0 1 2 Class org.apache.thrift.transport.TTransportException
7 11 12 Class org.apache.thrift.transport.TTransportException
7 11 18 Class java.util.concurrent.RejectedExecutionException
public void stop();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_1
putfield org.apache.cassandra.thrift.CustomTThreadPoolServer.stopped:Z
1: aload 0
getfield org.apache.cassandra.thrift.CustomTThreadPoolServer.serverTransport_:Lorg/apache/thrift/transport/TServerTransport;
invokevirtual org.apache.thrift.transport.TServerTransport.interrupt:()V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/apache/cassandra/thrift/CustomTThreadPoolServer;
static org.apache.thrift.transport.TTransportFactory access$0(org.apache.cassandra.thrift.CustomTThreadPoolServer);
descriptor: (Lorg/apache/cassandra/thrift/CustomTThreadPoolServer;)Lorg/apache/thrift/transport/TTransportFactory;
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
getfield org.apache.cassandra.thrift.CustomTThreadPoolServer.inputTransportFactory_:Lorg/apache/thrift/transport/TTransportFactory;
areturn
LocalVariableTable:
Start End Slot Name Signature
static org.apache.thrift.transport.TTransportFactory access$1(org.apache.cassandra.thrift.CustomTThreadPoolServer);
descriptor: (Lorg/apache/cassandra/thrift/CustomTThreadPoolServer;)Lorg/apache/thrift/transport/TTransportFactory;
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
getfield org.apache.cassandra.thrift.CustomTThreadPoolServer.outputTransportFactory_:Lorg/apache/thrift/transport/TTransportFactory;
areturn
LocalVariableTable:
Start End Slot Name Signature
static org.apache.thrift.TProcessorFactory access$2(org.apache.cassandra.thrift.CustomTThreadPoolServer);
descriptor: (Lorg/apache/cassandra/thrift/CustomTThreadPoolServer;)Lorg/apache/thrift/TProcessorFactory;
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
getfield org.apache.cassandra.thrift.CustomTThreadPoolServer.processorFactory_:Lorg/apache/thrift/TProcessorFactory;
areturn
LocalVariableTable:
Start End Slot Name Signature
static org.apache.thrift.protocol.TProtocolFactory access$3(org.apache.cassandra.thrift.CustomTThreadPoolServer);
descriptor: (Lorg/apache/cassandra/thrift/CustomTThreadPoolServer;)Lorg/apache/thrift/protocol/TProtocolFactory;
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
getfield org.apache.cassandra.thrift.CustomTThreadPoolServer.inputProtocolFactory_:Lorg/apache/thrift/protocol/TProtocolFactory;
areturn
LocalVariableTable:
Start End Slot Name Signature
static org.apache.thrift.protocol.TProtocolFactory access$4(org.apache.cassandra.thrift.CustomTThreadPoolServer);
descriptor: (Lorg/apache/cassandra/thrift/CustomTThreadPoolServer;)Lorg/apache/thrift/protocol/TProtocolFactory;
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
getfield org.apache.cassandra.thrift.CustomTThreadPoolServer.outputProtocolFactory_:Lorg/apache/thrift/protocol/TProtocolFactory;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "CustomTThreadPoolServer.java"
NestMembers:
org.apache.cassandra.thrift.CustomTThreadPoolServer$Factory org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess
InnerClasses:
public Factory = org.apache.cassandra.thrift.CustomTThreadPoolServer$Factory of org.apache.cassandra.thrift.CustomTThreadPoolServer
private WorkerProcess = org.apache.cassandra.thrift.CustomTThreadPoolServer$WorkerProcess of org.apache.cassandra.thrift.CustomTThreadPoolServer
public abstract AbstractServerArgs = org.apache.thrift.server.TServer$AbstractServerArgs of org.apache.thrift.server.TServer
public Args = org.apache.thrift.server.TThreadPoolServer$Args of org.apache.thrift.server.TThreadPoolServer