public class io.vertx.ext.consul.ConsulServiceVerticle extends io.vertx.core.AbstractVerticle
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.vertx.ext.consul.ConsulServiceVerticle
super_class: io.vertx.core.AbstractVerticle
{
private io.vertx.ext.consul.ConsulService service;
descriptor: Lio/vertx/ext/consul/ConsulService;
flags: (0x0002) ACC_PRIVATE
private io.vertx.core.eventbus.MessageConsumer<io.vertx.core.json.JsonObject> messageConsumer;
descriptor: Lio/vertx/core/eventbus/MessageConsumer;
flags: (0x0002) ACC_PRIVATE
Signature: Lio/vertx/core/eventbus/MessageConsumer<Lio/vertx/core/json/JsonObject;>;
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 // io.vertx.ext.consul.ConsulServiceVerticle this
0: .line 12
aload 0 /* this */
invokespecial io.vertx.core.AbstractVerticle.<init>:()V
return
end local 0 // io.vertx.ext.consul.ConsulServiceVerticle this
LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/ext/consul/ConsulServiceVerticle;
public void start();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=2, args_size=1
start local 0 // io.vertx.ext.consul.ConsulServiceVerticle this
0: .line 19
aload 0 /* this */
new io.vertx.ext.consul.impl.ConsulServiceImpl
dup
aload 0 /* this */
getfield io.vertx.ext.consul.ConsulServiceVerticle.vertx:Lio/vertx/core/Vertx;
new io.vertx.ext.consul.ConsulClientOptions
dup
aload 0 /* this */
invokevirtual io.vertx.ext.consul.ConsulServiceVerticle.config:()Lio/vertx/core/json/JsonObject;
invokespecial io.vertx.ext.consul.ConsulClientOptions.<init>:(Lio/vertx/core/json/JsonObject;)V
invokestatic io.vertx.ext.consul.ConsulClient.create:(Lio/vertx/core/Vertx;Lio/vertx/ext/consul/ConsulClientOptions;)Lio/vertx/ext/consul/ConsulClient;
invokespecial io.vertx.ext.consul.impl.ConsulServiceImpl.<init>:(Lio/vertx/ext/consul/ConsulClient;)V
putfield io.vertx.ext.consul.ConsulServiceVerticle.service:Lio/vertx/ext/consul/ConsulService;
1: .line 20
aload 0 /* this */
invokevirtual io.vertx.ext.consul.ConsulServiceVerticle.config:()Lio/vertx/core/json/JsonObject;
ldc "address"
invokevirtual io.vertx.core.json.JsonObject.getString:(Ljava/lang/String;)Ljava/lang/String;
astore 1 /* address */
start local 1 // java.lang.String address
2: .line 21
aload 1 /* address */
ifnonnull 4
3: .line 22
new java.lang.IllegalStateException
dup
ldc "address field must be specified in config for client verticle"
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
4: .line 24
StackMap locals: java.lang.String
StackMap stack:
aload 0 /* this */
ldc Lio/vertx/ext/consul/ConsulService;
aload 0 /* this */
getfield io.vertx.ext.consul.ConsulServiceVerticle.vertx:Lio/vertx/core/Vertx;
aload 0 /* this */
getfield io.vertx.ext.consul.ConsulServiceVerticle.service:Lio/vertx/ext/consul/ConsulService;
aload 1 /* address */
invokestatic io.vertx.serviceproxy.ProxyHelper.registerService:(Ljava/lang/Class;Lio/vertx/core/Vertx;Ljava/lang/Object;Ljava/lang/String;)Lio/vertx/core/eventbus/MessageConsumer;
putfield io.vertx.ext.consul.ConsulServiceVerticle.messageConsumer:Lio/vertx/core/eventbus/MessageConsumer;
5: .line 25
return
end local 1 // java.lang.String address
end local 0 // io.vertx.ext.consul.ConsulServiceVerticle this
LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lio/vertx/ext/consul/ConsulServiceVerticle;
2 6 1 address Ljava/lang/String;
Exceptions:
throws java.lang.Exception
public void stop();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 // io.vertx.ext.consul.ConsulServiceVerticle this
0: .line 29
aload 0 /* this */
getfield io.vertx.ext.consul.ConsulServiceVerticle.messageConsumer:Lio/vertx/core/eventbus/MessageConsumer;
ifnull 2
1: .line 30
aload 0 /* this */
getfield io.vertx.ext.consul.ConsulServiceVerticle.messageConsumer:Lio/vertx/core/eventbus/MessageConsumer;
invokestatic io.vertx.serviceproxy.ProxyHelper.unregisterService:(Lio/vertx/core/eventbus/MessageConsumer;)V
2: .line 32
StackMap locals:
StackMap stack:
aload 0 /* this */
getfield io.vertx.ext.consul.ConsulServiceVerticle.service:Lio/vertx/ext/consul/ConsulService;
invokeinterface io.vertx.ext.consul.ConsulService.close:()V
3: .line 33
return
end local 0 // io.vertx.ext.consul.ConsulServiceVerticle this
LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/vertx/ext/consul/ConsulServiceVerticle;
Exceptions:
throws java.lang.Exception
}
SourceFile: "ConsulServiceVerticle.java"