public final class io.vertx.micrometer.backends.PrometheusBackendRegistry implements io.vertx.micrometer.backends.BackendRegistry
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: io.vertx.micrometer.backends.PrometheusBackendRegistry
super_class: java.lang.Object
{
private static final io.vertx.core.logging.Logger LOGGER;
descriptor: Lio/vertx/core/logging/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private final io.micrometer.prometheus.PrometheusMeterRegistry registry;
descriptor: Lio/micrometer/prometheus/PrometheusMeterRegistry;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final io.vertx.micrometer.VertxPrometheusOptions options;
descriptor: Lio/vertx/micrometer/VertxPrometheusOptions;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private io.vertx.core.Vertx vertx;
descriptor: Lio/vertx/core/Vertx;
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lio/vertx/micrometer/backends/PrometheusBackendRegistry;
invokestatic io.vertx.core.logging.LoggerFactory.getLogger:(Ljava/lang/Class;)Lio/vertx/core/logging/Logger;
putstatic io.vertx.micrometer.backends.PrometheusBackendRegistry.LOGGER:Lio/vertx/core/logging/Logger;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>(io.vertx.micrometer.VertxPrometheusOptions);
descriptor: (Lio/vertx/micrometer/VertxPrometheusOptions;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
new io.micrometer.prometheus.PrometheusMeterRegistry
dup
getstatic io.micrometer.prometheus.PrometheusConfig.DEFAULT:Lio/micrometer/prometheus/PrometheusConfig;
invokespecial io.micrometer.prometheus.PrometheusMeterRegistry.<init>:(Lio/micrometer/prometheus/PrometheusConfig;)V
invokespecial io.vertx.micrometer.backends.PrometheusBackendRegistry.<init>:(Lio/vertx/micrometer/VertxPrometheusOptions;Lio/micrometer/prometheus/PrometheusMeterRegistry;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/vertx/micrometer/backends/PrometheusBackendRegistry;
0 2 1 options Lio/vertx/micrometer/VertxPrometheusOptions;
MethodParameters:
Name Flags
options
public void <init>(io.vertx.micrometer.VertxPrometheusOptions, io.micrometer.prometheus.PrometheusMeterRegistry);
descriptor: (Lio/vertx/micrometer/VertxPrometheusOptions;Lio/micrometer/prometheus/PrometheusMeterRegistry;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield io.vertx.micrometer.backends.PrometheusBackendRegistry.options:Lio/vertx/micrometer/VertxPrometheusOptions;
2: aload 0
aload 2
putfield io.vertx.micrometer.backends.PrometheusBackendRegistry.registry:Lio/micrometer/prometheus/PrometheusMeterRegistry;
3: aload 1
invokevirtual io.vertx.micrometer.VertxPrometheusOptions.isPublishQuantiles:()Z
ifeq 7
4: aload 2
invokevirtual io.micrometer.prometheus.PrometheusMeterRegistry.config:()Lio/micrometer/core/instrument/MeterRegistry$Config;
5: new io.vertx.micrometer.backends.PrometheusBackendRegistry$1
dup
aload 0
invokespecial io.vertx.micrometer.backends.PrometheusBackendRegistry$1.<init>:(Lio/vertx/micrometer/backends/PrometheusBackendRegistry;)V
6: invokevirtual io.micrometer.core.instrument.MeterRegistry$Config.meterFilter:(Lio/micrometer/core/instrument/config/MeterFilter;)Lio/micrometer/core/instrument/MeterRegistry$Config;
pop
7: StackMap locals: io.vertx.micrometer.backends.PrometheusBackendRegistry io.vertx.micrometer.VertxPrometheusOptions io.micrometer.prometheus.PrometheusMeterRegistry
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lio/vertx/micrometer/backends/PrometheusBackendRegistry;
0 8 1 options Lio/vertx/micrometer/VertxPrometheusOptions;
0 8 2 registry Lio/micrometer/prometheus/PrometheusMeterRegistry;
MethodParameters:
Name Flags
options
registry
public io.micrometer.core.instrument.MeterRegistry getMeterRegistry();
descriptor: ()Lio/micrometer/core/instrument/MeterRegistry;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.micrometer.backends.PrometheusBackendRegistry.registry:Lio/micrometer/prometheus/PrometheusMeterRegistry;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/vertx/micrometer/backends/PrometheusBackendRegistry;
public void init();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield io.vertx.micrometer.backends.PrometheusBackendRegistry.options:Lio/vertx/micrometer/VertxPrometheusOptions;
invokevirtual io.vertx.micrometer.VertxPrometheusOptions.isStartEmbeddedServer:()Z
ifeq 9
1: aload 0
invokestatic io.vertx.core.Vertx.vertx:()Lio/vertx/core/Vertx;
putfield io.vertx.micrometer.backends.PrometheusBackendRegistry.vertx:Lio/vertx/core/Vertx;
2: aload 0
getfield io.vertx.micrometer.backends.PrometheusBackendRegistry.options:Lio/vertx/micrometer/VertxPrometheusOptions;
invokevirtual io.vertx.micrometer.VertxPrometheusOptions.getEmbeddedServerOptions:()Lio/vertx/core/http/HttpServerOptions;
astore 1
start local 1 3: aload 1
ifnonnull 5
4: new io.vertx.core.http.HttpServerOptions
dup
invokespecial io.vertx.core.http.HttpServerOptions.<init>:()V
astore 1
5: StackMap locals: io.vertx.core.http.HttpServerOptions
StackMap stack:
aload 0
getfield io.vertx.micrometer.backends.PrometheusBackendRegistry.vertx:Lio/vertx/core/Vertx;
aload 1
invokeinterface io.vertx.core.Vertx.createHttpServer:(Lio/vertx/core/http/HttpServerOptions;)Lio/vertx/core/http/HttpServer;
6: aload 0
invokedynamic handle(Lio/vertx/micrometer/backends/PrometheusBackendRegistry;)Lio/vertx/core/Handler;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)V
io/vertx/micrometer/backends/PrometheusBackendRegistry.handleRequest(Lio/vertx/core/http/HttpServerRequest;)V (7)
(Lio/vertx/core/http/HttpServerRequest;)V
invokeinterface io.vertx.core.http.HttpServer.requestHandler:(Lio/vertx/core/Handler;)Lio/vertx/core/http/HttpServer;
7: invokedynamic handle()Lio/vertx/core/Handler;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
(Ljava/lang/Object;)V
io/vertx/micrometer/backends/PrometheusBackendRegistry.lambda$1(Ljava/lang/Throwable;)V (6)
(Ljava/lang/Throwable;)V
invokeinterface io.vertx.core.http.HttpServer.exceptionHandler:(Lio/vertx/core/Handler;)Lio/vertx/core/http/HttpServer;
8: aload 1
invokevirtual io.vertx.core.http.HttpServerOptions.getPort:()I
aload 1
invokevirtual io.vertx.core.http.HttpServerOptions.getHost:()Ljava/lang/String;
invokeinterface io.vertx.core.http.HttpServer.listen:(ILjava/lang/String;)Lio/vertx/core/http/HttpServer;
pop
end local 1 9: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lio/vertx/micrometer/backends/PrometheusBackendRegistry;
3 9 1 serverOptions Lio/vertx/core/http/HttpServerOptions;
private void handleRequest(io.vertx.core.http.HttpServerRequest);
descriptor: (Lio/vertx/core/http/HttpServerRequest;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield io.vertx.micrometer.backends.PrometheusBackendRegistry.options:Lio/vertx/micrometer/VertxPrometheusOptions;
invokevirtual io.vertx.micrometer.VertxPrometheusOptions.getEmbeddedServerEndpoint:()Ljava/lang/String;
aload 1
invokeinterface io.vertx.core.http.HttpServerRequest.path:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 5
1: aload 1
invokeinterface io.vertx.core.http.HttpServerRequest.response:()Lio/vertx/core/http/HttpServerResponse;
2: getstatic io.vertx.core.http.HttpHeaders.CONTENT_TYPE:Ljava/lang/CharSequence;
ldc "text/plain; version=0.0.4; charset=utf-8"
invokeinterface io.vertx.core.http.HttpServerResponse.putHeader:(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Lio/vertx/core/http/HttpServerResponse;
3: aload 0
getfield io.vertx.micrometer.backends.PrometheusBackendRegistry.registry:Lio/micrometer/prometheus/PrometheusMeterRegistry;
invokevirtual io.micrometer.prometheus.PrometheusMeterRegistry.scrape:()Ljava/lang/String;
invokeinterface io.vertx.core.http.HttpServerResponse.end:(Ljava/lang/String;)V
4: goto 6
5: StackMap locals:
StackMap stack:
aload 1
invokeinterface io.vertx.core.http.HttpServerRequest.response:()Lio/vertx/core/http/HttpServerResponse;
sipush 404
invokeinterface io.vertx.core.http.HttpServerResponse.setStatusCode:(I)Lio/vertx/core/http/HttpServerResponse;
invokeinterface io.vertx.core.http.HttpServerResponse.end:()V
6: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 this Lio/vertx/micrometer/backends/PrometheusBackendRegistry;
0 7 1 request Lio/vertx/core/http/HttpServerRequest;
MethodParameters:
Name Flags
request
public void close();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.vertx.micrometer.backends.PrometheusBackendRegistry.vertx:Lio/vertx/core/Vertx;
ifnull 2
1: aload 0
getfield io.vertx.micrometer.backends.PrometheusBackendRegistry.vertx:Lio/vertx/core/Vertx;
invokeinterface io.vertx.core.Vertx.close:()V
2: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lio/vertx/micrometer/backends/PrometheusBackendRegistry;
private static void lambda$1(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)V
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: getstatic io.vertx.micrometer.backends.PrometheusBackendRegistry.LOGGER:Lio/vertx/core/logging/Logger;
ldc "Error in Prometheus registry embedded server"
aload 0
invokevirtual io.vertx.core.logging.Logger.error:(Ljava/lang/Object;Ljava/lang/Throwable;)V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 t Ljava/lang/Throwable;
}
SourceFile: "PrometheusBackendRegistry.java"
NestMembers:
io.vertx.micrometer.backends.PrometheusBackendRegistry$1
InnerClasses:
public Config = io.micrometer.core.instrument.MeterRegistry$Config of io.micrometer.core.instrument.MeterRegistry
io.vertx.micrometer.backends.PrometheusBackendRegistry$1
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles