public final class io.netty.example.uptime.UptimeClient
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: io.netty.example.uptime.UptimeClient
super_class: java.lang.Object
{
static final java.lang.String HOST;
descriptor: Ljava/lang/String;
flags: (0x0018) ACC_STATIC, ACC_FINAL
static final int PORT;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
static final int RECONNECT_DELAY;
descriptor: I
flags: (0x0018) ACC_STATIC, ACC_FINAL
private static final int READ_TIMEOUT;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final io.netty.example.uptime.UptimeClientHandler handler;
descriptor: Lio/netty/example/uptime/UptimeClientHandler;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final io.netty.bootstrap.Bootstrap bs;
descriptor: Lio/netty/bootstrap/Bootstrap;
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 "host"
ldc "127.0.0.1"
invokestatic java.lang.System.getProperty:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
putstatic io.netty.example.uptime.UptimeClient.HOST:Ljava/lang/String;
1: 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.UptimeClient.PORT:I
2: ldc "reconnectDelay"
ldc "5"
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.UptimeClient.RECONNECT_DELAY:I
3: ldc "readTimeout"
ldc "10"
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.UptimeClient.READ_TIMEOUT:I
4: new io.netty.example.uptime.UptimeClientHandler
dup
invokespecial io.netty.example.uptime.UptimeClientHandler.<init>:()V
putstatic io.netty.example.uptime.UptimeClient.handler:Lio/netty/example/uptime/UptimeClientHandler;
5: new io.netty.bootstrap.Bootstrap
dup
invokespecial io.netty.bootstrap.Bootstrap.<init>:()V
putstatic io.netty.example.uptime.UptimeClient.bs:Lio/netty/bootstrap/Bootstrap;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/netty/example/uptime/UptimeClient;
public static void main(java.lang.String[]);
descriptor: ([Ljava/lang/String;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: new io.netty.channel.nio.NioEventLoopGroup
dup
invokespecial io.netty.channel.nio.NioEventLoopGroup.<init>:()V
astore 1
start local 1 1: getstatic io.netty.example.uptime.UptimeClient.bs:Lio/netty/bootstrap/Bootstrap;
aload 1
invokevirtual io.netty.bootstrap.Bootstrap.group:(Lio/netty/channel/EventLoopGroup;)Lio/netty/bootstrap/AbstractBootstrap;
checkcast io.netty.bootstrap.Bootstrap
2: ldc Lio/netty/channel/socket/nio/NioSocketChannel;
invokevirtual io.netty.bootstrap.Bootstrap.channel:(Ljava/lang/Class;)Lio/netty/bootstrap/AbstractBootstrap;
checkcast io.netty.bootstrap.Bootstrap
3: getstatic io.netty.example.uptime.UptimeClient.HOST:Ljava/lang/String;
getstatic io.netty.example.uptime.UptimeClient.PORT:I
invokevirtual io.netty.bootstrap.Bootstrap.remoteAddress:(Ljava/lang/String;I)Lio/netty/bootstrap/Bootstrap;
4: new io.netty.example.uptime.UptimeClient$1
dup
invokespecial io.netty.example.uptime.UptimeClient$1.<init>:()V
invokevirtual io.netty.bootstrap.Bootstrap.handler:(Lio/netty/channel/ChannelHandler;)Lio/netty/bootstrap/AbstractBootstrap;
pop
5: getstatic io.netty.example.uptime.UptimeClient.bs:Lio/netty/bootstrap/Bootstrap;
invokevirtual io.netty.bootstrap.Bootstrap.connect:()Lio/netty/channel/ChannelFuture;
pop
6: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 args [Ljava/lang/String;
1 7 1 group Lio/netty/channel/EventLoopGroup;
Exceptions:
throws java.lang.Exception
MethodParameters:
Name Flags
args
static void connect();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: getstatic io.netty.example.uptime.UptimeClient.bs:Lio/netty/bootstrap/Bootstrap;
invokevirtual io.netty.bootstrap.Bootstrap.connect:()Lio/netty/channel/ChannelFuture;
new io.netty.example.uptime.UptimeClient$2
dup
invokespecial io.netty.example.uptime.UptimeClient$2.<init>:()V
invokeinterface io.netty.channel.ChannelFuture.addListener:(Lio/netty/util/concurrent/GenericFutureListener;)Lio/netty/channel/ChannelFuture;
pop
1: return
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "UptimeClient.java"
NestMembers:
io.netty.example.uptime.UptimeClient$1 io.netty.example.uptime.UptimeClient$2
InnerClasses:
io.netty.example.uptime.UptimeClient$1
io.netty.example.uptime.UptimeClient$2