public class org.eclipse.jetty.server.ShutdownMonitor
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.eclipse.jetty.server.ShutdownMonitor
super_class: java.lang.Object
{
private final java.util.Set<org.eclipse.jetty.util.component.LifeCycle> _lifeCycles;
descriptor: Ljava/util/Set;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/Set<Lorg/eclipse/jetty/util/component/LifeCycle;>;
private boolean debug;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private final java.lang.String host;
descriptor: Ljava/lang/String;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private int port;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private java.lang.String key;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private boolean exitVm;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private boolean alive;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
public static org.eclipse.jetty.server.ShutdownMonitor getInstance();
descriptor: ()Lorg/eclipse/jetty/server/ShutdownMonitor;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic org.eclipse.jetty.server.ShutdownMonitor$Holder.instance:Lorg/eclipse/jetty/server/ShutdownMonitor;
areturn
LocalVariableTable:
Start End Slot Name Signature
protected static void reset();
descriptor: ()V
flags: (0x000c) ACC_PROTECTED, ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new org.eclipse.jetty.server.ShutdownMonitor
dup
invokespecial org.eclipse.jetty.server.ShutdownMonitor.<init>:()V
putstatic org.eclipse.jetty.server.ShutdownMonitor$Holder.instance:Lorg/eclipse/jetty/server/ShutdownMonitor;
1: return
LocalVariableTable:
Start End Slot Name Signature
public static void register(org.eclipse.jetty.util.component.LifeCycle[]);
descriptor: ([Lorg/eclipse/jetty/util/component/LifeCycle;)V
flags: (0x0089) ACC_PUBLIC, ACC_STATIC, ACC_VARARGS
Code:
stack=2, locals=1, args_size=1
start local 0 0: invokestatic org.eclipse.jetty.server.ShutdownMonitor.getInstance:()Lorg/eclipse/jetty/server/ShutdownMonitor;
aload 0
invokevirtual org.eclipse.jetty.server.ShutdownMonitor.addLifeCycles:([Lorg/eclipse/jetty/util/component/LifeCycle;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 lifeCycles [Lorg/eclipse/jetty/util/component/LifeCycle;
MethodParameters:
Name Flags
lifeCycles
public static void deregister(org.eclipse.jetty.util.component.LifeCycle);
descriptor: (Lorg/eclipse/jetty/util/component/LifeCycle;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: invokestatic org.eclipse.jetty.server.ShutdownMonitor.getInstance:()Lorg/eclipse/jetty/server/ShutdownMonitor;
aload 0
invokevirtual org.eclipse.jetty.server.ShutdownMonitor.removeLifeCycle:(Lorg/eclipse/jetty/util/component/LifeCycle;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 lifeCycle Lorg/eclipse/jetty/util/component/LifeCycle;
MethodParameters:
Name Flags
lifeCycle
public static boolean isRegistered(org.eclipse.jetty.util.component.LifeCycle);
descriptor: (Lorg/eclipse/jetty/util/component/LifeCycle;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: invokestatic org.eclipse.jetty.server.ShutdownMonitor.getInstance:()Lorg/eclipse/jetty/server/ShutdownMonitor;
aload 0
invokevirtual org.eclipse.jetty.server.ShutdownMonitor.containsLifeCycle:(Lorg/eclipse/jetty/util/component/LifeCycle;)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 lifeCycle Lorg/eclipse/jetty/util/component/LifeCycle;
MethodParameters:
Name Flags
lifeCycle
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.util.LinkedHashSet
dup
invokespecial java.util.LinkedHashSet.<init>:()V
putfield org.eclipse.jetty.server.ShutdownMonitor._lifeCycles:Ljava/util/Set;
2: aload 0
ldc "DEBUG"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;)Ljava/lang/String;
ifnull 3
iconst_1
goto 4
StackMap locals: org.eclipse.jetty.server.ShutdownMonitor
StackMap stack: org.eclipse.jetty.server.ShutdownMonitor
3: iconst_0
StackMap locals: org.eclipse.jetty.server.ShutdownMonitor
StackMap stack: org.eclipse.jetty.server.ShutdownMonitor int
4: putfield org.eclipse.jetty.server.ShutdownMonitor.debug:Z
5: aload 0
ldc "STOP.HOST"
ldc "127.0.0.1"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
putfield org.eclipse.jetty.server.ShutdownMonitor.host:Ljava/lang/String;
6: aload 0
ldc "STOP.PORT"
iconst_m1
invokestatic java.lang.Integer.getInteger:(Ljava/lang/String;I)Ljava/lang/Integer;
invokevirtual java.lang.Integer.intValue:()I
putfield org.eclipse.jetty.server.ShutdownMonitor.port:I
7: aload 0
ldc "STOP.KEY"
aconst_null
invokestatic java.lang.System.getProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
putfield org.eclipse.jetty.server.ShutdownMonitor.key:Ljava/lang/String;
8: aload 0
iconst_1
putfield org.eclipse.jetty.server.ShutdownMonitor.exitVm:Z
9: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/eclipse/jetty/server/ShutdownMonitor;
private void addLifeCycles(org.eclipse.jetty.util.component.LifeCycle[]);
descriptor: ([Lorg/eclipse/jetty/util/component/LifeCycle;)V
flags: (0x0082) ACC_PRIVATE, ACC_VARARGS
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
dup
astore 2
monitorenter
1: aload 0
getfield org.eclipse.jetty.server.ShutdownMonitor._lifeCycles:Ljava/util/Set;
aload 1
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
invokeinterface java.util.Set.addAll:(Ljava/util/Collection;)Z
pop
2: aload 2
monitorexit
3: goto 6
StackMap locals: org.eclipse.jetty.server.ShutdownMonitor org.eclipse.jetty.util.component.LifeCycle[] org.eclipse.jetty.server.ShutdownMonitor
StackMap stack: java.lang.Throwable
4: aload 2
monitorexit
5: athrow
6: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/eclipse/jetty/server/ShutdownMonitor;
0 7 1 lifeCycles [Lorg/eclipse/jetty/util/component/LifeCycle;
Exception table:
from to target type
1 3 4 any
4 5 4 any
MethodParameters:
Name Flags
lifeCycles
private void removeLifeCycle(org.eclipse.jetty.util.component.LifeCycle);
descriptor: (Lorg/eclipse/jetty/util/component/LifeCycle;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
dup
astore 2
monitorenter
1: aload 0
getfield org.eclipse.jetty.server.ShutdownMonitor._lifeCycles:Ljava/util/Set;
aload 1
invokeinterface java.util.Set.remove:(Ljava/lang/Object;)Z
pop
2: aload 2
monitorexit
3: goto 6
StackMap locals: org.eclipse.jetty.server.ShutdownMonitor org.eclipse.jetty.util.component.LifeCycle org.eclipse.jetty.server.ShutdownMonitor
StackMap stack: java.lang.Throwable
4: aload 2
monitorexit
5: athrow
6: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lorg/eclipse/jetty/server/ShutdownMonitor;
0 7 1 lifeCycle Lorg/eclipse/jetty/util/component/LifeCycle;
Exception table:
from to target type
1 3 4 any
4 5 4 any
MethodParameters:
Name Flags
lifeCycle
private boolean containsLifeCycle(org.eclipse.jetty.util.component.LifeCycle);
descriptor: (Lorg/eclipse/jetty/util/component/LifeCycle;)Z
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
dup
astore 2
monitorenter
1: aload 0
getfield org.eclipse.jetty.server.ShutdownMonitor._lifeCycles:Ljava/util/Set;
aload 1
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
aload 2
monitorexit
2: ireturn
3: StackMap locals: org.eclipse.jetty.server.ShutdownMonitor org.eclipse.jetty.util.component.LifeCycle org.eclipse.jetty.server.ShutdownMonitor
StackMap stack: java.lang.Throwable
aload 2
monitorexit
4: athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/eclipse/jetty/server/ShutdownMonitor;
0 5 1 lifeCycle Lorg/eclipse/jetty/util/component/LifeCycle;
Exception table:
from to target type
1 2 3 any
3 4 3 any
MethodParameters:
Name Flags
lifeCycle
private void debug(java.lang.String, java.lang.Object[]);
descriptor: (Ljava/lang/String;[Ljava/lang/Object;)V
flags: (0x0082) ACC_PRIVATE, ACC_VARARGS
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield org.eclipse.jetty.server.ShutdownMonitor.debug:Z
ifeq 2
1: getstatic java.lang.System.err:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "[ShutdownMonitor] "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "%n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aload 2
invokevirtual java.io.PrintStream.printf:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintStream;
pop
2: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/eclipse/jetty/server/ShutdownMonitor;
0 3 1 format Ljava/lang/String;
0 3 2 args [Ljava/lang/Object;
MethodParameters:
Name Flags
format
args
private void debug(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.eclipse.jetty.server.ShutdownMonitor.debug:Z
ifeq 2
1: aload 1
getstatic java.lang.System.err:Ljava/io/PrintStream;
invokevirtual java.lang.Throwable.printStackTrace:(Ljava/io/PrintStream;)V
2: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/eclipse/jetty/server/ShutdownMonitor;
0 3 1 t Ljava/lang/Throwable;
MethodParameters:
Name Flags
t
public java.lang.String getKey();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
dup
astore 1
monitorenter
1: aload 0
getfield org.eclipse.jetty.server.ShutdownMonitor.key:Ljava/lang/String;
aload 1
monitorexit
2: areturn
3: StackMap locals: org.eclipse.jetty.server.ShutdownMonitor org.eclipse.jetty.server.ShutdownMonitor
StackMap stack: java.lang.Throwable
aload 1
monitorexit
4: athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/eclipse/jetty/server/ShutdownMonitor;
Exception table:
from to target type
1 2 3 any
3 4 3 any
public int getPort();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
dup
astore 1
monitorenter
1: aload 0
getfield org.eclipse.jetty.server.ShutdownMonitor.port:I
aload 1
monitorexit
2: ireturn
3: StackMap locals: org.eclipse.jetty.server.ShutdownMonitor org.eclipse.jetty.server.ShutdownMonitor
StackMap stack: java.lang.Throwable
aload 1
monitorexit
4: athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/eclipse/jetty/server/ShutdownMonitor;
Exception table:
from to target type
1 2 3 any
3 4 3 any
public boolean isExitVm();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
dup
astore 1
monitorenter
1: aload 0
getfield org.eclipse.jetty.server.ShutdownMonitor.exitVm:Z
aload 1
monitorexit
2: ireturn
3: StackMap locals: org.eclipse.jetty.server.ShutdownMonitor org.eclipse.jetty.server.ShutdownMonitor
StackMap stack: java.lang.Throwable
aload 1
monitorexit
4: athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/eclipse/jetty/server/ShutdownMonitor;
Exception table:
from to target type
1 2 3 any
3 4 3 any
public void setDebug(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield org.eclipse.jetty.server.ShutdownMonitor.debug:Z
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/eclipse/jetty/server/ShutdownMonitor;
0 2 1 flag Z
MethodParameters:
Name Flags
flag
public void setExitVm(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
dup
astore 2
monitorenter
1: aload 0
getfield org.eclipse.jetty.server.ShutdownMonitor.alive:Z
ifeq 3
2: new java.lang.IllegalStateException
dup
ldc "ShutdownMonitor already started"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: org.eclipse.jetty.server.ShutdownMonitor
StackMap stack:
aload 0
iload 1
putfield org.eclipse.jetty.server.ShutdownMonitor.exitVm:Z
4: aload 2
monitorexit
5: goto 8
StackMap locals:
StackMap stack: java.lang.Throwable
6: aload 2
monitorexit
7: athrow
8: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/eclipse/jetty/server/ShutdownMonitor;
0 9 1 exitVm Z
Exception table:
from to target type
1 5 6 any
6 7 6 any
MethodParameters:
Name Flags
exitVm
public void setKey(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
dup
astore 2
monitorenter
1: aload 0
getfield org.eclipse.jetty.server.ShutdownMonitor.alive:Z
ifeq 3
2: new java.lang.IllegalStateException
dup
ldc "ShutdownMonitor already started"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: org.eclipse.jetty.server.ShutdownMonitor
StackMap stack:
aload 0
aload 1
putfield org.eclipse.jetty.server.ShutdownMonitor.key:Ljava/lang/String;
4: aload 2
monitorexit
5: goto 8
StackMap locals:
StackMap stack: java.lang.Throwable
6: aload 2
monitorexit
7: athrow
8: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/eclipse/jetty/server/ShutdownMonitor;
0 9 1 key Ljava/lang/String;
Exception table:
from to target type
1 5 6 any
6 7 6 any
MethodParameters:
Name Flags
key
public void setPort(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
dup
astore 2
monitorenter
1: aload 0
getfield org.eclipse.jetty.server.ShutdownMonitor.alive:Z
ifeq 3
2: new java.lang.IllegalStateException
dup
ldc "ShutdownMonitor already started"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: org.eclipse.jetty.server.ShutdownMonitor
StackMap stack:
aload 0
iload 1
putfield org.eclipse.jetty.server.ShutdownMonitor.port:I
4: aload 2
monitorexit
5: goto 8
StackMap locals:
StackMap stack: java.lang.Throwable
6: aload 2
monitorexit
7: athrow
8: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/eclipse/jetty/server/ShutdownMonitor;
0 9 1 port I
Exception table:
from to target type
1 5 6 any
6 7 6 any
MethodParameters:
Name Flags
port
protected void start();
descriptor: ()V
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=4, args_size=1
start local 0 0: aload 0
dup
astore 1
monitorenter
1: aload 0
getfield org.eclipse.jetty.server.ShutdownMonitor.alive:Z
ifeq 5
2: aload 0
ldc "Already started"
iconst_0
anewarray java.lang.Object
invokevirtual org.eclipse.jetty.server.ShutdownMonitor.debug:(Ljava/lang/String;[Ljava/lang/Object;)V
3: aload 1
monitorexit
4: return
5: StackMap locals: org.eclipse.jetty.server.ShutdownMonitor
StackMap stack:
aload 0
invokevirtual org.eclipse.jetty.server.ShutdownMonitor.listen:()Ljava/net/ServerSocket;
astore 2
start local 2 6: aload 2
ifnull 12
7: aload 0
iconst_1
putfield org.eclipse.jetty.server.ShutdownMonitor.alive:Z
8: new java.lang.Thread
dup
new org.eclipse.jetty.server.ShutdownMonitor$ShutdownMonitorRunnable
dup
aload 0
aload 2
invokespecial org.eclipse.jetty.server.ShutdownMonitor$ShutdownMonitorRunnable.<init>:(Lorg/eclipse/jetty/server/ShutdownMonitor;Ljava/net/ServerSocket;)V
invokespecial java.lang.Thread.<init>:(Ljava/lang/Runnable;)V
astore 3
start local 3 9: aload 3
iconst_1
invokevirtual java.lang.Thread.setDaemon:(Z)V
10: aload 3
ldc "ShutdownMonitor"
invokevirtual java.lang.Thread.setName:(Ljava/lang/String;)V
11: aload 3
invokevirtual java.lang.Thread.start:()V
end local 3 end local 2 12: StackMap locals:
StackMap stack:
aload 1
monitorexit
13: goto 16
StackMap locals:
StackMap stack: java.lang.Throwable
14: aload 1
monitorexit
15: athrow
16: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lorg/eclipse/jetty/server/ShutdownMonitor;
6 12 2 serverSocket Ljava/net/ServerSocket;
9 12 3 thread Ljava/lang/Thread;
Exception table:
from to target type
1 4 14 any
5 13 14 any
14 15 14 any
Exceptions:
throws java.lang.Exception
private void stop();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
dup
astore 1
monitorenter
1: aload 0
iconst_0
putfield org.eclipse.jetty.server.ShutdownMonitor.alive:Z
2: aload 0
invokevirtual java.lang.Object.notifyAll:()V
3: aload 1
monitorexit
4: goto 7
StackMap locals: org.eclipse.jetty.server.ShutdownMonitor org.eclipse.jetty.server.ShutdownMonitor
StackMap stack: java.lang.Throwable
5: aload 1
monitorexit
6: athrow
7: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/eclipse/jetty/server/ShutdownMonitor;
Exception table:
from to target type
1 4 5 any
5 6 5 any
void await();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
dup
astore 1
monitorenter
1: goto 3
2: StackMap locals: org.eclipse.jetty.server.ShutdownMonitor
StackMap stack:
aload 0
invokevirtual java.lang.Object.wait:()V
3: StackMap locals:
StackMap stack:
aload 0
getfield org.eclipse.jetty.server.ShutdownMonitor.alive:Z
ifne 2
4: aload 1
monitorexit
5: goto 8
StackMap locals:
StackMap stack: java.lang.Throwable
6: aload 1
monitorexit
7: athrow
8: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/eclipse/jetty/server/ShutdownMonitor;
Exception table:
from to target type
1 5 6 any
6 7 6 any
Exceptions:
throws java.lang.InterruptedException
protected boolean isAlive();
descriptor: ()Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
dup
astore 1
monitorenter
1: aload 0
getfield org.eclipse.jetty.server.ShutdownMonitor.alive:Z
aload 1
monitorexit
2: ireturn
3: StackMap locals: org.eclipse.jetty.server.ShutdownMonitor org.eclipse.jetty.server.ShutdownMonitor
StackMap stack: java.lang.Throwable
aload 1
monitorexit
4: athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/eclipse/jetty/server/ShutdownMonitor;
Exception table:
from to target type
1 2 3 any
3 4 3 any
private java.net.ServerSocket listen();
descriptor: ()Ljava/net/ServerSocket;
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=6, args_size=1
start local 0 0: aload 0
invokevirtual org.eclipse.jetty.server.ShutdownMonitor.getPort:()I
istore 1
start local 1 1: iload 1
ifge 4
2: aload 0
ldc "Not enabled (port < 0): %d"
iconst_1
anewarray java.lang.Object
dup
iconst_0
iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokevirtual org.eclipse.jetty.server.ShutdownMonitor.debug:(Ljava/lang/String;[Ljava/lang/Object;)V
3: aconst_null
areturn
4: StackMap locals: int
StackMap stack:
aload 0
invokevirtual org.eclipse.jetty.server.ShutdownMonitor.getKey:()Ljava/lang/String;
astore 2
start local 2 5: new java.net.ServerSocket
dup
invokespecial java.net.ServerSocket.<init>:()V
astore 3
start local 3 6: aload 3
iconst_1
invokevirtual java.net.ServerSocket.setReuseAddress:(Z)V
7: aload 3
new java.net.InetSocketAddress
dup
aload 0
getfield org.eclipse.jetty.server.ShutdownMonitor.host:Ljava/lang/String;
invokestatic java.net.InetAddress.getByName:(Ljava/lang/String;)Ljava/net/InetAddress;
iload 1
invokespecial java.net.InetSocketAddress.<init>:(Ljava/net/InetAddress;I)V
invokevirtual java.net.ServerSocket.bind:(Ljava/net/SocketAddress;)V
8: iload 1
ifne 12
9: aload 3
invokevirtual java.net.ServerSocket.getLocalPort:()I
istore 1
10: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "STOP.PORT=%d%n"
iconst_1
anewarray java.lang.Object
dup
iconst_0
iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokevirtual java.io.PrintStream.printf:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintStream;
pop
11: aload 0
iload 1
invokevirtual org.eclipse.jetty.server.ShutdownMonitor.setPort:(I)V
12: StackMap locals: java.lang.String java.net.ServerSocket
StackMap stack:
aload 2
ifnonnull 16
13: ldc 9.223372036854776E18
invokestatic java.lang.Math.random:()D
dmul
aload 0
invokevirtual java.lang.Object.hashCode:()I
i2d
dadd
invokestatic java.lang.System.currentTimeMillis:()J
l2d
dadd
d2l
bipush 36
invokestatic java.lang.Long.toString:(JI)Ljava/lang/String;
astore 2
14: getstatic java.lang.System.out:Ljava/io/PrintStream;
ldc "STOP.KEY=%s%n"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 2
aastore
invokevirtual java.io.PrintStream.printf:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/io/PrintStream;
pop
15: aload 0
aload 2
invokevirtual org.eclipse.jetty.server.ShutdownMonitor.setKey:(Ljava/lang/String;)V
16: StackMap locals:
StackMap stack:
aload 3
astore 5
17: aload 0
ldc "STOP.PORT=%d"
iconst_1
anewarray java.lang.Object
dup
iconst_0
iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokevirtual org.eclipse.jetty.server.ShutdownMonitor.debug:(Ljava/lang/String;[Ljava/lang/Object;)V
18: aload 0
ldc "STOP.KEY=%s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 2
aastore
invokevirtual org.eclipse.jetty.server.ShutdownMonitor.debug:(Ljava/lang/String;[Ljava/lang/Object;)V
19: aload 5
areturn
end local 3 20: StackMap locals: org.eclipse.jetty.server.ShutdownMonitor int java.lang.String
StackMap stack: java.lang.Throwable
astore 3
start local 3 21: aload 0
aload 3
invokevirtual org.eclipse.jetty.server.ShutdownMonitor.debug:(Ljava/lang/Throwable;)V
22: getstatic java.lang.System.err:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "Error binding ShutdownMonitor to port "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc ": "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 3
invokevirtual java.lang.Throwable.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
23: aload 0
ldc "STOP.PORT=%d"
iconst_1
anewarray java.lang.Object
dup
iconst_0
iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokevirtual org.eclipse.jetty.server.ShutdownMonitor.debug:(Ljava/lang/String;[Ljava/lang/Object;)V
24: aload 0
ldc "STOP.KEY=%s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 2
aastore
invokevirtual org.eclipse.jetty.server.ShutdownMonitor.debug:(Ljava/lang/String;[Ljava/lang/Object;)V
25: aconst_null
areturn
end local 3 26: StackMap locals:
StackMap stack: java.lang.Throwable
astore 4
27: aload 0
ldc "STOP.PORT=%d"
iconst_1
anewarray java.lang.Object
dup
iconst_0
iload 1
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
invokevirtual org.eclipse.jetty.server.ShutdownMonitor.debug:(Ljava/lang/String;[Ljava/lang/Object;)V
28: aload 0
ldc "STOP.KEY=%s"
iconst_1
anewarray java.lang.Object
dup
iconst_0
aload 2
aastore
invokevirtual org.eclipse.jetty.server.ShutdownMonitor.debug:(Ljava/lang/String;[Ljava/lang/Object;)V
29: aload 4
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 30 0 this Lorg/eclipse/jetty/server/ShutdownMonitor;
1 30 1 port I
5 30 2 key Ljava/lang/String;
6 20 3 serverSocket Ljava/net/ServerSocket;
21 26 3 x Ljava/lang/Throwable;
Exception table:
from to target type
5 17 20 Class java.lang.Throwable
5 17 26 any
20 23 26 any
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: ldc "%s[port=%d,alive=%b]"
iconst_3
anewarray java.lang.Object
dup
iconst_0
aload 0
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
invokevirtual java.lang.Class.getName:()Ljava/lang/String;
aastore
dup
iconst_1
aload 0
invokevirtual org.eclipse.jetty.server.ShutdownMonitor.getPort:()I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
dup
iconst_2
aload 0
invokevirtual org.eclipse.jetty.server.ShutdownMonitor.isAlive:()Z
invokestatic java.lang.Boolean.valueOf:(Z)Ljava/lang/Boolean;
aastore
invokestatic java.lang.String.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/eclipse/jetty/server/ShutdownMonitor;
}
SourceFile: "ShutdownMonitor.java"
NestMembers:
org.eclipse.jetty.server.ShutdownMonitor$Holder org.eclipse.jetty.server.ShutdownMonitor$ShutdownMonitorRunnable
InnerClasses:
private Holder = org.eclipse.jetty.server.ShutdownMonitor$Holder of org.eclipse.jetty.server.ShutdownMonitor
private ShutdownMonitorRunnable = org.eclipse.jetty.server.ShutdownMonitor$ShutdownMonitorRunnable of org.eclipse.jetty.server.ShutdownMonitor