public class io.vertx.ext.dropwizard.impl.Helper
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.vertx.ext.dropwizard.impl.Helper
super_class: java.lang.Object
{
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/vertx/ext/dropwizard/impl/Helper;
public static io.vertx.core.json.JsonObject convertMetric(com.codahale.metrics.Metric, java.util.concurrent.TimeUnit, java.util.concurrent.TimeUnit);
descriptor: (Lcom/codahale/metrics/Metric;Ljava/util/concurrent/TimeUnit;Ljava/util/concurrent/TimeUnit;)Lio/vertx/core/json/JsonObject;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
instanceof com.codahale.metrics.Timer
ifeq 2
1: aload 0
checkcast com.codahale.metrics.Timer
aload 1
aload 2
invokestatic io.vertx.ext.dropwizard.impl.Helper.toJson:(Lcom/codahale/metrics/Timer;Ljava/util/concurrent/TimeUnit;Ljava/util/concurrent/TimeUnit;)Lio/vertx/core/json/JsonObject;
areturn
2: StackMap locals:
StackMap stack:
aload 0
instanceof com.codahale.metrics.Gauge
ifeq 4
3: aload 0
checkcast com.codahale.metrics.Gauge
invokestatic io.vertx.ext.dropwizard.impl.Helper.toJson:(Lcom/codahale/metrics/Gauge;)Lio/vertx/core/json/JsonObject;
areturn
4: StackMap locals:
StackMap stack:
aload 0
instanceof com.codahale.metrics.Counter
ifeq 6
5: aload 0
checkcast com.codahale.metrics.Counter
invokestatic io.vertx.ext.dropwizard.impl.Helper.toJson:(Lcom/codahale/metrics/Counter;)Lio/vertx/core/json/JsonObject;
areturn
6: StackMap locals:
StackMap stack:
aload 0
instanceof com.codahale.metrics.Histogram
ifeq 8
7: aload 0
checkcast com.codahale.metrics.Histogram
invokestatic io.vertx.ext.dropwizard.impl.Helper.toJson:(Lcom/codahale/metrics/Histogram;)Lio/vertx/core/json/JsonObject;
areturn
8: StackMap locals:
StackMap stack:
aload 0
instanceof com.codahale.metrics.Meter
ifeq 10
9: aload 0
checkcast com.codahale.metrics.Meter
aload 1
invokestatic io.vertx.ext.dropwizard.impl.Helper.toJson:(Lcom/codahale/metrics/Meter;Ljava/util/concurrent/TimeUnit;)Lio/vertx/core/json/JsonObject;
areturn
10: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Unknown metric "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 metric Lcom/codahale/metrics/Metric;
0 11 1 rateUnit Ljava/util/concurrent/TimeUnit;
0 11 2 durationUnit Ljava/util/concurrent/TimeUnit;
MethodParameters:
Name Flags
metric
rateUnit
durationUnit
private static io.vertx.core.json.JsonObject toJson(com.codahale.metrics.Gauge);
descriptor: (Lcom/codahale/metrics/Gauge;)Lio/vertx/core/json/JsonObject;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new io.vertx.core.json.JsonObject
dup
invokespecial io.vertx.core.json.JsonObject.<init>:()V
ldc "type"
ldc "gauge"
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/Object;)Lio/vertx/core/json/JsonObject;
ldc "value"
aload 0
invokeinterface com.codahale.metrics.Gauge.getValue:()Ljava/lang/Object;
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/Object;)Lio/vertx/core/json/JsonObject;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 gauge Lcom/codahale/metrics/Gauge;
MethodParameters:
Name Flags
gauge
private static io.vertx.core.json.JsonObject toJson(com.codahale.metrics.Counter);
descriptor: (Lcom/codahale/metrics/Counter;)Lio/vertx/core/json/JsonObject;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: new io.vertx.core.json.JsonObject
dup
invokespecial io.vertx.core.json.JsonObject.<init>:()V
ldc "type"
ldc "counter"
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/Object;)Lio/vertx/core/json/JsonObject;
ldc "count"
aload 0
invokevirtual com.codahale.metrics.Counter.getCount:()J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/Object;)Lio/vertx/core/json/JsonObject;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 counter Lcom/codahale/metrics/Counter;
MethodParameters:
Name Flags
counter
private static io.vertx.core.json.JsonObject toJson(com.codahale.metrics.Histogram);
descriptor: (Lcom/codahale/metrics/Histogram;)Lio/vertx/core/json/JsonObject;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: aload 0
invokevirtual com.codahale.metrics.Histogram.getSnapshot:()Lcom/codahale/metrics/Snapshot;
astore 1
start local 1 1: new io.vertx.core.json.JsonObject
dup
invokespecial io.vertx.core.json.JsonObject.<init>:()V
astore 2
start local 2 2: aload 2
ldc "type"
ldc "histogram"
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/Object;)Lio/vertx/core/json/JsonObject;
pop
3: aload 2
ldc "count"
aload 0
invokevirtual com.codahale.metrics.Histogram.getCount:()J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/Object;)Lio/vertx/core/json/JsonObject;
pop
4: aload 2
aload 1
dconst_1
invokestatic io.vertx.ext.dropwizard.impl.Helper.populateSnapshot:(Lio/vertx/core/json/JsonObject;Lcom/codahale/metrics/Snapshot;D)V
5: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 histogram Lcom/codahale/metrics/Histogram;
1 6 1 snapshot Lcom/codahale/metrics/Snapshot;
2 6 2 json Lio/vertx/core/json/JsonObject;
MethodParameters:
Name Flags
histogram
private static io.vertx.core.json.JsonObject toJson(com.codahale.metrics.Meter, java.util.concurrent.TimeUnit);
descriptor: (Lcom/codahale/metrics/Meter;Ljava/util/concurrent/TimeUnit;)Lio/vertx/core/json/JsonObject;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: new io.vertx.core.json.JsonObject
dup
invokespecial io.vertx.core.json.JsonObject.<init>:()V
astore 2
start local 2 1: aload 2
ldc "type"
ldc "meter"
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/Object;)Lio/vertx/core/json/JsonObject;
pop
2: aload 0
instanceof io.vertx.ext.dropwizard.ThroughputMeter
ifeq 5
3: aload 0
checkcast io.vertx.ext.dropwizard.ThroughputMeter
astore 3
start local 3 4: aload 2
ldc "oneSecondRate"
aload 3
invokevirtual io.vertx.ext.dropwizard.ThroughputMeter.getValue:()Ljava/lang/Long;
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/Object;)Lio/vertx/core/json/JsonObject;
pop
end local 3 5: StackMap locals: io.vertx.core.json.JsonObject
StackMap stack:
aload 2
aload 0
aload 1
invokestatic io.vertx.ext.dropwizard.impl.Helper.populateMetered:(Lio/vertx/core/json/JsonObject;Lcom/codahale/metrics/Metered;Ljava/util/concurrent/TimeUnit;)V
6: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 7 0 meter Lcom/codahale/metrics/Meter;
0 7 1 rateUnit Ljava/util/concurrent/TimeUnit;
1 7 2 json Lio/vertx/core/json/JsonObject;
4 5 3 throughput Lio/vertx/ext/dropwizard/ThroughputMeter;
MethodParameters:
Name Flags
meter
rateUnit
private static io.vertx.core.json.JsonObject toJson(com.codahale.metrics.Timer, java.util.concurrent.TimeUnit, java.util.concurrent.TimeUnit);
descriptor: (Lcom/codahale/metrics/Timer;Ljava/util/concurrent/TimeUnit;Ljava/util/concurrent/TimeUnit;)Lio/vertx/core/json/JsonObject;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=8, args_size=3
start local 0 start local 1 start local 2 0: aload 0
invokevirtual com.codahale.metrics.Timer.getSnapshot:()Lcom/codahale/metrics/Snapshot;
astore 3
start local 3 1: new io.vertx.core.json.JsonObject
dup
invokespecial io.vertx.core.json.JsonObject.<init>:()V
astore 4
start local 4 2: aload 4
ldc "type"
ldc "timer"
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/Object;)Lio/vertx/core/json/JsonObject;
pop
3: aload 0
instanceof io.vertx.ext.dropwizard.ThroughputTimer
ifeq 6
4: aload 0
checkcast io.vertx.ext.dropwizard.ThroughputTimer
astore 5
start local 5 5: aload 4
ldc "oneSecondRate"
aload 5
invokevirtual io.vertx.ext.dropwizard.ThroughputTimer.getValue:()Ljava/lang/Long;
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/Object;)Lio/vertx/core/json/JsonObject;
pop
end local 5 6: StackMap locals: com.codahale.metrics.Snapshot io.vertx.core.json.JsonObject
StackMap stack:
aload 4
aload 0
aload 1
invokestatic io.vertx.ext.dropwizard.impl.Helper.populateMetered:(Lio/vertx/core/json/JsonObject;Lcom/codahale/metrics/Metered;Ljava/util/concurrent/TimeUnit;)V
7: dconst_1
aload 2
lconst_1
invokevirtual java.util.concurrent.TimeUnit.toNanos:(J)J
l2d
ddiv
dstore 5
start local 5 8: aload 4
aload 3
dload 5
invokestatic io.vertx.ext.dropwizard.impl.Helper.populateSnapshot:(Lio/vertx/core/json/JsonObject;Lcom/codahale/metrics/Snapshot;D)V
9: aload 2
invokevirtual java.util.concurrent.TimeUnit.toString:()Ljava/lang/String;
invokevirtual java.lang.String.toLowerCase:()Ljava/lang/String;
astore 7
start local 7 10: aload 4
ldc "durationRate"
aload 7
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/Object;)Lio/vertx/core/json/JsonObject;
pop
11: aload 4
areturn
end local 7 end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 timer Lcom/codahale/metrics/Timer;
0 12 1 rateUnit Ljava/util/concurrent/TimeUnit;
0 12 2 durationUnit Ljava/util/concurrent/TimeUnit;
1 12 3 snapshot Lcom/codahale/metrics/Snapshot;
2 12 4 json Lio/vertx/core/json/JsonObject;
5 6 5 throughput Lio/vertx/ext/dropwizard/ThroughputTimer;
8 12 5 factor D
10 12 7 duration Ljava/lang/String;
MethodParameters:
Name Flags
timer
rateUnit
durationUnit
private static void populateMetered(io.vertx.core.json.JsonObject, com.codahale.metrics.Metered, java.util.concurrent.TimeUnit);
descriptor: (Lio/vertx/core/json/JsonObject;Lcom/codahale/metrics/Metered;Ljava/util/concurrent/TimeUnit;)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 2
lconst_1
invokevirtual java.util.concurrent.TimeUnit.toSeconds:(J)J
l2d
dstore 3
start local 3 1: aload 0
ldc "count"
aload 1
invokeinterface com.codahale.metrics.Metered.getCount:()J
invokestatic java.lang.Long.valueOf:(J)Ljava/lang/Long;
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/Object;)Lio/vertx/core/json/JsonObject;
pop
2: aload 0
ldc "meanRate"
aload 1
invokeinterface com.codahale.metrics.Metered.getMeanRate:()D
dload 3
dmul
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/Object;)Lio/vertx/core/json/JsonObject;
pop
3: aload 0
ldc "oneMinuteRate"
aload 1
invokeinterface com.codahale.metrics.Metered.getOneMinuteRate:()D
dload 3
dmul
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/Object;)Lio/vertx/core/json/JsonObject;
pop
4: aload 0
ldc "fiveMinuteRate"
aload 1
invokeinterface com.codahale.metrics.Metered.getFiveMinuteRate:()D
dload 3
dmul
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/Object;)Lio/vertx/core/json/JsonObject;
pop
5: aload 0
ldc "fifteenMinuteRate"
aload 1
invokeinterface com.codahale.metrics.Metered.getFifteenMinuteRate:()D
dload 3
dmul
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/Object;)Lio/vertx/core/json/JsonObject;
pop
6: new java.lang.StringBuilder
dup
ldc "events/"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.util.concurrent.TimeUnit.toString:()Ljava/lang/String;
invokevirtual java.lang.String.toLowerCase:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 5
start local 5 7: aload 0
ldc "rate"
aload 5
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/Object;)Lio/vertx/core/json/JsonObject;
pop
8: return
end local 5 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 json Lio/vertx/core/json/JsonObject;
0 9 1 meter Lcom/codahale/metrics/Metered;
0 9 2 rateUnit Ljava/util/concurrent/TimeUnit;
1 9 3 factor D
7 9 5 rate Ljava/lang/String;
MethodParameters:
Name Flags
json
meter
rateUnit
private static void populateSnapshot(io.vertx.core.json.JsonObject, com.codahale.metrics.Snapshot, double);
descriptor: (Lio/vertx/core/json/JsonObject;Lcom/codahale/metrics/Snapshot;D)V
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
ldc "min"
aload 1
invokevirtual com.codahale.metrics.Snapshot.getMin:()J
l2d
dload 2
dmul
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/Object;)Lio/vertx/core/json/JsonObject;
pop
1: aload 0
ldc "max"
aload 1
invokevirtual com.codahale.metrics.Snapshot.getMax:()J
l2d
dload 2
dmul
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/Object;)Lio/vertx/core/json/JsonObject;
pop
2: aload 0
ldc "mean"
aload 1
invokevirtual com.codahale.metrics.Snapshot.getMean:()D
dload 2
dmul
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/Object;)Lio/vertx/core/json/JsonObject;
pop
3: aload 0
ldc "stddev"
aload 1
invokevirtual com.codahale.metrics.Snapshot.getStdDev:()D
dload 2
dmul
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/Object;)Lio/vertx/core/json/JsonObject;
pop
4: aload 0
ldc "median"
aload 1
invokevirtual com.codahale.metrics.Snapshot.getMedian:()D
dload 2
dmul
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/Object;)Lio/vertx/core/json/JsonObject;
pop
5: aload 0
ldc "75%"
aload 1
invokevirtual com.codahale.metrics.Snapshot.get75thPercentile:()D
dload 2
dmul
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/Object;)Lio/vertx/core/json/JsonObject;
pop
6: aload 0
ldc "95%"
aload 1
invokevirtual com.codahale.metrics.Snapshot.get95thPercentile:()D
dload 2
dmul
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/Object;)Lio/vertx/core/json/JsonObject;
pop
7: aload 0
ldc "98%"
aload 1
invokevirtual com.codahale.metrics.Snapshot.get98thPercentile:()D
dload 2
dmul
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/Object;)Lio/vertx/core/json/JsonObject;
pop
8: aload 0
ldc "99%"
aload 1
invokevirtual com.codahale.metrics.Snapshot.get99thPercentile:()D
dload 2
dmul
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/Object;)Lio/vertx/core/json/JsonObject;
pop
9: aload 0
ldc "99.9%"
aload 1
invokevirtual com.codahale.metrics.Snapshot.get999thPercentile:()D
dload 2
dmul
invokestatic java.lang.Double.valueOf:(D)Ljava/lang/Double;
invokevirtual io.vertx.core.json.JsonObject.put:(Ljava/lang/String;Ljava/lang/Object;)Lio/vertx/core/json/JsonObject;
pop
10: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 json Lio/vertx/core/json/JsonObject;
0 11 1 snapshot Lcom/codahale/metrics/Snapshot;
0 11 2 factor D
MethodParameters:
Name Flags
json
snapshot
factor
}
SourceFile: "Helper.java"