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
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=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: 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;
2: aload 0
aload 1
putfield org.apache.tomcat.util.net.Acceptor.endpoint:Lorg/apache/tomcat/util/net/AbstractEndpoint;
3: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/apache/tomcat/util/net/Acceptor<TU;>;
0 4 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=5, 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.endpoint:Lorg/apache/tomcat/util/net/AbstractEndpoint;
invokevirtual org.apache.tomcat.util.net.AbstractEndpoint.isRunning:()Z
ifne 2
7: 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.isRunning:()Z
ifne 9
8: goto 40
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 40
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.endpoint:Lorg/apache/tomcat/util/net/AbstractEndpoint;
invokevirtual org.apache.tomcat.util.net.AbstractEndpoint.isRunning:()Z
ifeq 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.endpoint:Lorg/apache/tomcat/util/net/AbstractEndpoint;
invokevirtual org.apache.tomcat.util.net.AbstractEndpoint.isRunning:()Z
ifne 6
40: StackMap locals:
StackMap stack:
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;
41: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 42 0 this Lorg/apache/tomcat/util/net/Acceptor<TU;>;
1 42 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
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