public final class io.netty.example.uptime.UptimeServer
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: io.netty.example.uptime.UptimeServer
super_class: java.lang.Object
{
private static final int PORT;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final io.netty.example.uptime.UptimeServerHandler handler;
descriptor: Lio/netty/example/uptime/UptimeServerHandler;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: ldc "port"
ldc "8080"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
putstatic io.netty.example.uptime.UptimeServer.PORT:I
1: new io.netty.example.uptime.UptimeServerHandler
dup
invokespecial io.netty.example.uptime.UptimeServerHandler.<init>:()V
putstatic io.netty.example.uptime.UptimeServer.handler:Lio/netty/example/uptime/UptimeServerHandler;
return
LocalVariableTable:
Start End Slot Name Signature
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/netty/example/uptime/UptimeServer;
public static void main(java.lang.String[]);
descriptor: ([Ljava/lang/String;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=6, args_size=1
start local 0 0: new io.netty.channel.nio.NioEventLoopGroup
dup
iconst_1
invokespecial io.netty.channel.nio.NioEventLoopGroup.<init>:(I)V
astore 1
start local 1 1: new io.netty.channel.nio.NioEventLoopGroup
dup
invokespecial io.netty.channel.nio.NioEventLoopGroup.<init>:()V
astore 2
start local 2 2: new io.netty.bootstrap.ServerBootstrap
dup
invokespecial io.netty.bootstrap.ServerBootstrap.<init>:()V
astore 3
start local 3 3: aload 3
aload 1
aload 2
invokevirtual io.netty.bootstrap.ServerBootstrap.group:(Lio/netty/channel/EventLoopGroup;Lio/netty/channel/EventLoopGroup;)Lio/netty/bootstrap/ServerBootstrap;
4: ldc Lio/netty/channel/socket/nio/NioServerSocketChannel;
invokevirtual io.netty.bootstrap.ServerBootstrap.channel:(Ljava/lang/Class;)Lio/netty/bootstrap/AbstractBootstrap;
checkcast io.netty.bootstrap.ServerBootstrap
5: new io.netty.handler.logging.LoggingHandler
dup
getstatic io.netty.handler.logging.LogLevel.INFO:Lio/netty/handler/logging/LogLevel;
invokespecial io.netty.handler.logging.LoggingHandler.<init>:(Lio/netty/handler/logging/LogLevel;)V
invokevirtual io.netty.bootstrap.ServerBootstrap.handler:(Lio/netty/channel/ChannelHandler;)Lio/netty/bootstrap/AbstractBootstrap;
checkcast io.netty.bootstrap.ServerBootstrap
6: new io.netty.example.uptime.UptimeServer$1
dup
invokespecial io.netty.example.uptime.UptimeServer$1.<init>:()V
invokevirtual io.netty.bootstrap.ServerBootstrap.childHandler:(Lio/netty/channel/ChannelHandler;)Lio/netty/bootstrap/ServerBootstrap;
pop
7: aload 3
getstatic io.netty.example.uptime.UptimeServer.PORT:I
invokevirtual io.netty.bootstrap.ServerBootstrap.bind:(I)Lio/netty/channel/ChannelFuture;
invokeinterface io.netty.channel.ChannelFuture.sync:()Lio/netty/channel/ChannelFuture;
astore 4
start local 4 8: aload 4
invokeinterface io.netty.channel.ChannelFuture.channel:()Lio/netty/channel/Channel;
invokeinterface io.netty.channel.Channel.closeFuture:()Lio/netty/channel/ChannelFuture;
invokeinterface io.netty.channel.ChannelFuture.sync:()Lio/netty/channel/ChannelFuture;
pop
end local 4 end local 3 9: goto 14
StackMap locals: java.lang.String[] io.netty.channel.EventLoopGroup io.netty.channel.EventLoopGroup
StackMap stack: java.lang.Throwable
10: astore 5
11: aload 2
invokeinterface io.netty.channel.EventLoopGroup.shutdownGracefully:()Lio/netty/util/concurrent/Future;
pop
12: aload 1
invokeinterface io.netty.channel.EventLoopGroup.shutdownGracefully:()Lio/netty/util/concurrent/Future;
pop
13: aload 5
athrow
14: StackMap locals:
StackMap stack:
aload 2
invokeinterface io.netty.channel.EventLoopGroup.shutdownGracefully:()Lio/netty/util/concurrent/Future;
pop
15: aload 1
invokeinterface io.netty.channel.EventLoopGroup.shutdownGracefully:()Lio/netty/util/concurrent/Future;
pop
16: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 args [Ljava/lang/String;
1 17 1 bossGroup Lio/netty/channel/EventLoopGroup;
2 17 2 workerGroup Lio/netty/channel/EventLoopGroup;
3 9 3 b Lio/netty/bootstrap/ServerBootstrap;
8 9 4 f Lio/netty/channel/ChannelFuture;
Exception table:
from to target type
2 10 10 any
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
args
}
SourceFile: "UptimeServer.java"
NestMembers:
io.netty.example.uptime.UptimeServer$1
InnerClasses:
io.netty.example.uptime.UptimeServer$1