public class org.apache.tomcat.util.net.Acceptor<U> implements java.lang.Runnable
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.apache.tomcat.util.net.Acceptor
super_class: java.lang.Object
{
private static final org.apache.juli.logging.Log log;
descriptor: Lorg/apache/juli/logging/Log;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final org.apache.tomcat.util.res.StringManager sm;
descriptor: Lorg/apache/tomcat/util/res/StringManager;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int INITIAL_ERROR_DELAY;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 50
private static final int MAX_ERROR_DELAY;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1600
private final org.apache.tomcat.util.net.AbstractEndpoint<?, U> endpoint;
descriptor: Lorg/apache/tomcat/util/net/AbstractEndpoint;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Lorg/apache/tomcat/util/net/AbstractEndpoint<*TU;>;
private java.lang.String threadName;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private volatile boolean stopCalled;
descriptor: Z
flags: (0x0042) ACC_PRIVATE, ACC_VOLATILE
private final java.util.concurrent.CountDownLatch stopLatch;
descriptor: Ljava/util/concurrent/CountDownLatch;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
protected volatile org.apache.tomcat.util.net.Acceptor$AcceptorState state;
descriptor: Lorg/apache/tomcat/util/net/Acceptor$AcceptorState;
flags: (0x0044) ACC_PROTECTED, ACC_VOLATILE
Signature: Lorg/apache/tomcat/util/net/Acceptor$AcceptorState;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lorg/apache/tomcat/util/net/Acceptor;
invokestatic org.apache.juli.logging.LogFactory.getLog:(Ljava/lang/Class;)Lorg/apache/juli/logging/Log;
putstatic org.apache.tomcat.util.net.Acceptor.log:Lorg/apache/juli/logging/Log;
1: ldc Lorg/apache/tomcat/util/net/Acceptor;
invokestatic org.apache.tomcat.util.res.StringManager.getManager:(Ljava/lang/Class;)Lorg/apache/tomcat/util/res/StringManager;
putstatic org.apache.tomcat.util.net.Acceptor.sm:Lorg/apache/tomcat/util/res/StringManager;
2: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(org.apache.tomcat.util.net.AbstractEndpoint<?, U>);
descriptor: (Lorg/apache/tomcat/util/net/AbstractEndpoint;)V
flags: (0x0001) ACC_PUBLIC
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
iconst_0
putfield org.apache.tomcat.util.net.Acceptor.stopCalled:Z
2: aload 0
new java.util.concurrent.CountDownLatch
dup
iconst_1
invokespecial java.util.concurrent.CountDownLatch.<init>:(I)V
putfield org.apache.tomcat.util.net.Acceptor.stopLatch:Ljava/util/concurrent/CountDownLatch;
3: aload 0
getstatic org.apache.tomcat.util.net.Acceptor$AcceptorState.NEW:Lorg/apache/tomcat/util/net/Acceptor$AcceptorState;
putfield org.apache.tomcat.util.net.Acceptor.state:Lorg/apache/tomcat/util/net/Acceptor$AcceptorState;
4: aload 0
aload 1
putfield org.apache.tomcat.util.net.Acceptor.endpoint:Lorg/apache/tomcat/util/net/AbstractEndpoint;
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lorg/apache/tomcat/util/net/Acceptor<TU;>;
0 6 1 endpoint Lorg/apache/tomcat/util/net/AbstractEndpoint<*TU;>;
Signature: (Lorg/apache/tomcat/util/net/AbstractEndpoint<*TU;>;)V
MethodParameters:
Name Flags
endpoint
public final org.apache.tomcat.util.net.Acceptor$AcceptorState getState();
descriptor: ()Lorg/apache/tomcat/util/net/Acceptor$AcceptorState;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.tomcat.util.net.Acceptor.state:Lorg/apache/tomcat/util/net/Acceptor$AcceptorState;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/tomcat/util/net/Acceptor<TU;>;
Signature: ()Lorg/apache/tomcat/util/net/Acceptor$AcceptorState;
final void setThreadName(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0010) ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.apache.tomcat.util.net.Acceptor.threadName:Ljava/lang/String;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/tomcat/util/net/Acceptor<TU;>;
0 2 1 threadName Ljava/lang/String;
MethodParameters:
Name Flags
threadName final
final java.lang.String getThreadName();
descriptor: ()Ljava/lang/String;
flags: (0x0010) ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.apache.tomcat.util.net.Acceptor.threadName:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/apache/tomcat/util/net/Acceptor<TU;>;
public void run();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=6, args_size=1
start local 0 0: iconst_0
istore 1
start local 1 1: goto 39
2: StackMap locals: int
StackMap stack:
aload 0
getstatic org.apache.tomcat.util.net.Acceptor$AcceptorState.PAUSED:Lorg/apache/tomcat/util/net/Acceptor$AcceptorState;
putfield org.apache.tomcat.util.net.Acceptor.state:Lorg/apache/tomcat/util/net/Acceptor$AcceptorState;
3: ldc 50
invokestatic java.lang.Thread.sleep:(J)V
4: goto 6
StackMap locals:
StackMap stack: java.lang.InterruptedException
5: pop
6: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.tomcat.util.net.Acceptor.endpoint:Lorg/apache/tomcat/util/net/AbstractEndpoint;
invokevirtual org.apache.tomcat.util.net.AbstractEndpoint.isPaused:()Z
ifeq 7
aload 0
getfield org.apache.tomcat.util.net.Acceptor.stopCalled:Z
ifeq 2
7: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.tomcat.util.net.Acceptor.stopCalled:Z
ifeq 9
8: goto 44
9: StackMap locals:
StackMap stack:
aload 0
getstatic org.apache.tomcat.util.net.Acceptor$AcceptorState.RUNNING:Lorg/apache/tomcat/util/net/Acceptor$AcceptorState;
putfield org.apache.tomcat.util.net.Acceptor.state:Lorg/apache/tomcat/util/net/Acceptor$AcceptorState;
10: aload 0
getfield org.apache.tomcat.util.net.Acceptor.endpoint:Lorg/apache/tomcat/util/net/AbstractEndpoint;
invokevirtual org.apache.tomcat.util.net.AbstractEndpoint.countUpOrAwaitConnection:()V
11: aload 0
getfield org.apache.tomcat.util.net.Acceptor.endpoint:Lorg/apache/tomcat/util/net/AbstractEndpoint;
invokevirtual org.apache.tomcat.util.net.AbstractEndpoint.isPaused:()Z
ifeq 13
12: goto 39
13: StackMap locals:
StackMap stack:
aconst_null
astore 2
start local 2 14: aload 0
getfield org.apache.tomcat.util.net.Acceptor.endpoint:Lorg/apache/tomcat/util/net/AbstractEndpoint;
invokevirtual org.apache.tomcat.util.net.AbstractEndpoint.serverSocketAccept:()Ljava/lang/Object;
astore 2
15: goto 21
StackMap locals: org.apache.tomcat.util.net.Acceptor int java.lang.Object
StackMap stack: java.lang.Exception
16: astore 3
start local 3 17: aload 0
getfield org.apache.tomcat.util.net.Acceptor.endpoint:Lorg/apache/tomcat/util/net/AbstractEndpoint;
invokevirtual org.apache.tomcat.util.net.AbstractEndpoint.countDownConnection:()J
pop2
18: aload 0
getfield org.apache.tomcat.util.net.Acceptor.endpoint:Lorg/apache/tomcat/util/net/AbstractEndpoint;
invokevirtual org.apache.tomcat.util.net.AbstractEndpoint.isRunning:()Z
ifeq 44
19: aload 0
iload 1
invokevirtual org.apache.tomcat.util.net.Acceptor.handleExceptionWithDelay:(I)I
istore 1
20: aload 3
athrow
end local 3 21: StackMap locals:
StackMap stack:
iconst_0
istore 1
22: aload 0
getfield org.apache.tomcat.util.net.Acceptor.stopCalled:Z
ifne 26
aload 0
getfield org.apache.tomcat.util.net.Acceptor.endpoint:Lorg/apache/tomcat/util/net/AbstractEndpoint;
invokevirtual org.apache.tomcat.util.net.AbstractEndpoint.isPaused:()Z
ifne 26
23: aload 0
getfield org.apache.tomcat.util.net.Acceptor.endpoint:Lorg/apache/tomcat/util/net/AbstractEndpoint;
aload 2
invokevirtual org.apache.tomcat.util.net.AbstractEndpoint.setSocketOptions:(Ljava/lang/Object;)Z
ifne 39
24: aload 0
getfield org.apache.tomcat.util.net.Acceptor.endpoint:Lorg/apache/tomcat/util/net/AbstractEndpoint;
aload 2
invokevirtual org.apache.tomcat.util.net.AbstractEndpoint.closeSocket:(Ljava/lang/Object;)V
25: goto 39
26: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.tomcat.util.net.Acceptor.endpoint:Lorg/apache/tomcat/util/net/AbstractEndpoint;
aload 2
invokevirtual org.apache.tomcat.util.net.AbstractEndpoint.destroySocket:(Ljava/lang/Object;)V
end local 2 27: goto 39
StackMap locals: org.apache.tomcat.util.net.Acceptor int
StackMap stack: java.lang.Throwable
28: astore 2
start local 2 29: aload 2
invokestatic org.apache.tomcat.util.ExceptionUtils.handleThrowable:(Ljava/lang/Throwable;)V
30: getstatic org.apache.tomcat.util.net.Acceptor.sm:Lorg/apache/tomcat/util/res/StringManager;
ldc "endpoint.accept.fail"
invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;)Ljava/lang/String;
astore 3
start local 3 31: aload 2
instanceof org.apache.tomcat.jni.Error
ifeq 38
32: aload 2
checkcast org.apache.tomcat.jni.Error
astore 4
start local 4 33: aload 4
invokevirtual org.apache.tomcat.jni.Error.getError:()I
sipush 233
if_icmpne 36
34: getstatic org.apache.tomcat.util.net.Acceptor.log:Lorg/apache/juli/logging/Log;
aload 3
aload 2
invokeinterface org.apache.juli.logging.Log.warn:(Ljava/lang/Object;Ljava/lang/Throwable;)V
35: goto 39
36: StackMap locals: java.lang.Throwable java.lang.String org.apache.tomcat.jni.Error
StackMap stack:
getstatic org.apache.tomcat.util.net.Acceptor.log:Lorg/apache/juli/logging/Log;
aload 3
aload 2
invokeinterface org.apache.juli.logging.Log.error:(Ljava/lang/Object;Ljava/lang/Throwable;)V
end local 4 37: goto 39
38: StackMap locals:
StackMap stack:
getstatic org.apache.tomcat.util.net.Acceptor.log:Lorg/apache/juli/logging/Log;
aload 3
aload 2
invokeinterface org.apache.juli.logging.Log.error:(Ljava/lang/Object;Ljava/lang/Throwable;)V
end local 3 end local 2 39: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.tomcat.util.net.Acceptor.stopCalled:Z
ifeq 6
40: goto 44
StackMap locals:
StackMap stack: java.lang.Throwable
41: astore 5
42: aload 0
getfield org.apache.tomcat.util.net.Acceptor.stopLatch:Ljava/util/concurrent/CountDownLatch;
invokevirtual java.util.concurrent.CountDownLatch.countDown:()V
43: aload 5
athrow
44: StackMap locals:
StackMap stack:
aload 0
getfield org.apache.tomcat.util.net.Acceptor.stopLatch:Ljava/util/concurrent/CountDownLatch;
invokevirtual java.util.concurrent.CountDownLatch.countDown:()V
45: aload 0
getstatic org.apache.tomcat.util.net.Acceptor$AcceptorState.ENDED:Lorg/apache/tomcat/util/net/Acceptor$AcceptorState;
putfield org.apache.tomcat.util.net.Acceptor.state:Lorg/apache/tomcat/util/net/Acceptor$AcceptorState;
46: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 47 0 this Lorg/apache/tomcat/util/net/Acceptor<TU;>;
1 47 1 errorDelay I
14 27 2 socket TU;
17 21 3 ioe Ljava/lang/Exception;
29 39 2 t Ljava/lang/Throwable;
31 39 3 msg Ljava/lang/String;
33 37 4 e Lorg/apache/tomcat/jni/Error;
Exception table:
from to target type
3 4 5 Class java.lang.InterruptedException
14 15 16 Class java.lang.Exception
10 12 28 Class java.lang.Throwable
13 27 28 Class java.lang.Throwable
1 41 41 any
public void stop();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
bipush 10
invokevirtual org.apache.tomcat.util.net.Acceptor.stop:(I)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/apache/tomcat/util/net/Acceptor<TU;>;
RuntimeVisibleAnnotations:
java.lang.Deprecated()
public void stop(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=3, args_size=2
start local 0 start local 1 0: aload 0
iconst_1
putfield org.apache.tomcat.util.net.Acceptor.stopCalled:Z
1: iload 1
ifle 7
2: aload 0
getfield org.apache.tomcat.util.net.Acceptor.stopLatch:Ljava/util/concurrent/CountDownLatch;
iload 1
i2l
getstatic java.util.concurrent.TimeUnit.SECONDS:Ljava/util/concurrent/TimeUnit;
invokevirtual java.util.concurrent.CountDownLatch.await:(JLjava/util/concurrent/TimeUnit;)Z
ifne 7
3: getstatic org.apache.tomcat.util.net.Acceptor.log:Lorg/apache/juli/logging/Log;
getstatic org.apache.tomcat.util.net.Acceptor.sm:Lorg/apache/tomcat/util/res/StringManager;
ldc "acceptor.stop.fail"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
invokevirtual org.apache.tomcat.util.net.Acceptor.getThreadName:()Ljava/lang/String;
aastore
invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
invokeinterface org.apache.juli.logging.Log.warn:(Ljava/lang/Object;)V
4: goto 7
StackMap locals:
StackMap stack: java.lang.InterruptedException
5: astore 2
start local 2 6: getstatic org.apache.tomcat.util.net.Acceptor.log:Lorg/apache/juli/logging/Log;
getstatic org.apache.tomcat.util.net.Acceptor.sm:Lorg/apache/tomcat/util/res/StringManager;
ldc "acceptor.stop.interrupted"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 0
invokevirtual org.apache.tomcat.util.net.Acceptor.getThreadName:()Ljava/lang/String;
aastore
invokevirtual org.apache.tomcat.util.res.StringManager.getString:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
aload 2
invokeinterface org.apache.juli.logging.Log.warn:(Ljava/lang/Object;Ljava/lang/Throwable;)V
end local 2 7: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/apache/tomcat/util/net/Acceptor<TU;>;
0 8 1 waitSeconds I
6 7 2 e Ljava/lang/InterruptedException;
Exception table:
from to target type
2 4 5 Class java.lang.InterruptedException
MethodParameters:
Name Flags
waitSeconds
protected int handleExceptionWithDelay(int);
descriptor: (I)I
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: iload 1
ifle 4
1: iload 1
i2l
invokestatic java.lang.Thread.sleep:(J)V
2: goto 4
StackMap locals:
StackMap stack: java.lang.InterruptedException
3: pop
4: StackMap locals:
StackMap stack:
iload 1
ifne 6
5: bipush 50
ireturn
6: StackMap locals:
StackMap stack:
iload 1
sipush 1600
if_icmpge 8
7: iload 1
iconst_2
imul
ireturn
8: StackMap locals:
StackMap stack:
sipush 1600
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/apache/tomcat/util/net/Acceptor<TU;>;
0 9 1 currentErrorDelay I
Exception table:
from to target type
1 2 3 Class java.lang.InterruptedException
MethodParameters:
Name Flags
currentErrorDelay
}
Signature: <U:Ljava/lang/Object;>Ljava/lang/Object;Ljava/lang/Runnable;
SourceFile: "Acceptor.java"
NestMembers:
org.apache.tomcat.util.net.Acceptor$AcceptorState
InnerClasses:
public final AcceptorState = org.apache.tomcat.util.net.Acceptor$AcceptorState of org.apache.tomcat.util.net.Acceptor