public class io.dropwizard.metrics.MetricsFactory
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: io.dropwizard.metrics.MetricsFactory
super_class: java.lang.Object
{
private static final org.slf4j.Logger LOGGER;
descriptor: Lorg/slf4j/Logger;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private io.dropwizard.util.Duration frequency;
descriptor: Lio/dropwizard/util/Duration;
flags: (0x0002) ACC_PRIVATE
RuntimeVisibleAnnotations:
javax.validation.Valid()
javax.validation.constraints.NotNull()
RuntimeVisibleTypeAnnotations:
FIELD
javax.validation.Valid()
FIELD
javax.validation.constraints.NotNull()
private java.util.List<io.dropwizard.metrics.ReporterFactory> reporters;
descriptor: Ljava/util/List;
flags: (0x0002) ACC_PRIVATE
Signature: Ljava/util/List<Lio/dropwizard/metrics/ReporterFactory;>;
RuntimeVisibleAnnotations:
javax.validation.Valid()
javax.validation.constraints.NotNull()
RuntimeVisibleTypeAnnotations:
FIELD
javax.validation.Valid()
FIELD
javax.validation.constraints.NotNull()
private boolean reportOnStop;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lio/dropwizard/metrics/MetricsFactory;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic io.dropwizard.metrics.MetricsFactory.LOGGER:Lorg/slf4j/Logger;
return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
lconst_1
invokestatic io.dropwizard.util.Duration.minutes:(J)Lio/dropwizard/util/Duration;
putfield io.dropwizard.metrics.MetricsFactory.frequency:Lio/dropwizard/util/Duration;
2: aload 0
invokestatic java.util.Collections.emptyList:()Ljava/util/List;
putfield io.dropwizard.metrics.MetricsFactory.reporters:Ljava/util/List;
3: aload 0
iconst_0
putfield io.dropwizard.metrics.MetricsFactory.reportOnStop:Z
4: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/dropwizard/metrics/MetricsFactory;
public java.util.List<io.dropwizard.metrics.ReporterFactory> getReporters();
descriptor: ()Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.dropwizard.metrics.MetricsFactory.reporters:Ljava/util/List;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/metrics/MetricsFactory;
Signature: ()Ljava/util/List<Lio/dropwizard/metrics/ReporterFactory;>;
RuntimeVisibleAnnotations:
com.fasterxml.jackson.annotation.JsonProperty()
public void setReporters(java.util.List<io.dropwizard.metrics.ReporterFactory>);
descriptor: (Ljava/util/List;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
new java.util.ArrayList
dup
aload 1
invokespecial java.util.ArrayList.<init>:(Ljava/util/Collection;)V
putfield io.dropwizard.metrics.MetricsFactory.reporters:Ljava/util/List;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/dropwizard/metrics/MetricsFactory;
0 2 1 reporters Ljava/util/List<Lio/dropwizard/metrics/ReporterFactory;>;
Signature: (Ljava/util/List<Lio/dropwizard/metrics/ReporterFactory;>;)V
RuntimeVisibleAnnotations:
com.fasterxml.jackson.annotation.JsonProperty()
MethodParameters:
Name Flags
reporters
public io.dropwizard.util.Duration getFrequency();
descriptor: ()Lio/dropwizard/util/Duration;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.dropwizard.metrics.MetricsFactory.frequency:Lio/dropwizard/util/Duration;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/metrics/MetricsFactory;
RuntimeVisibleAnnotations:
com.fasterxml.jackson.annotation.JsonProperty()
public void setFrequency(io.dropwizard.util.Duration);
descriptor: (Lio/dropwizard/util/Duration;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield io.dropwizard.metrics.MetricsFactory.frequency:Lio/dropwizard/util/Duration;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/dropwizard/metrics/MetricsFactory;
0 2 1 frequency Lio/dropwizard/util/Duration;
RuntimeVisibleAnnotations:
com.fasterxml.jackson.annotation.JsonProperty()
MethodParameters:
Name Flags
frequency
public boolean isReportOnStop();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.dropwizard.metrics.MetricsFactory.reportOnStop:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/metrics/MetricsFactory;
RuntimeVisibleAnnotations:
com.fasterxml.jackson.annotation.JsonProperty()
public void setReportOnStop(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield io.dropwizard.metrics.MetricsFactory.reportOnStop:Z
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lio/dropwizard/metrics/MetricsFactory;
0 2 1 reportOnStop Z
RuntimeVisibleAnnotations:
com.fasterxml.jackson.annotation.JsonProperty()
MethodParameters:
Name Flags
reportOnStop
public void configure(io.dropwizard.lifecycle.setup.LifecycleEnvironment, com.codahale.metrics.MetricRegistry);
descriptor: (Lio/dropwizard/lifecycle/setup/LifecycleEnvironment;Lcom/codahale/metrics/MetricRegistry;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=6, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield io.dropwizard.metrics.MetricsFactory.reporters:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 11
StackMap locals: io.dropwizard.metrics.MetricsFactory io.dropwizard.lifecycle.setup.LifecycleEnvironment com.codahale.metrics.MetricRegistry top java.util.Iterator
StackMap stack:
1: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast io.dropwizard.metrics.ReporterFactory
astore 3
start local 3 2: new io.dropwizard.metrics.ScheduledReporterManager
dup
aload 3
aload 2
invokeinterface io.dropwizard.metrics.ReporterFactory.build:(Lcom/codahale/metrics/MetricRegistry;)Lcom/codahale/metrics/ScheduledReporter;
3: aload 3
invokeinterface io.dropwizard.metrics.ReporterFactory.getFrequency:()Ljava/util/Optional;
aload 0
invokedynamic get(Lio/dropwizard/metrics/MetricsFactory;)Ljava/util/function/Supplier;
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;
io/dropwizard/metrics/MetricsFactory.getFrequency()Lio/dropwizard/util/Duration; (5)
()Lio/dropwizard/util/Duration;
invokevirtual java.util.Optional.orElseGet:(Ljava/util/function/Supplier;)Ljava/lang/Object;
checkcast io.dropwizard.util.Duration
4: aload 0
invokevirtual io.dropwizard.metrics.MetricsFactory.isReportOnStop:()Z
5: invokespecial io.dropwizard.metrics.ScheduledReporterManager.<init>:(Lcom/codahale/metrics/ScheduledReporter;Lio/dropwizard/util/Duration;Z)V
6: astore 5
start local 5 7: aload 1
aload 5
invokevirtual io.dropwizard.lifecycle.setup.LifecycleEnvironment.manage:(Lio/dropwizard/lifecycle/Managed;)V
end local 5 8: goto 11
StackMap locals: io.dropwizard.metrics.MetricsFactory io.dropwizard.lifecycle.setup.LifecycleEnvironment com.codahale.metrics.MetricRegistry io.dropwizard.metrics.ReporterFactory java.util.Iterator
StackMap stack: java.lang.Exception
9: astore 5
start local 5 10: getstatic io.dropwizard.metrics.MetricsFactory.LOGGER:Lorg/slf4j/Logger;
ldc "Failed to create reporter, metrics may not be properly reported."
aload 5
invokeinterface org.slf4j.Logger.warn:(Ljava/lang/String;Ljava/lang/Throwable;)V
end local 5 end local 3 11: StackMap locals: io.dropwizard.metrics.MetricsFactory io.dropwizard.lifecycle.setup.LifecycleEnvironment com.codahale.metrics.MetricRegistry top java.util.Iterator
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
12: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lio/dropwizard/metrics/MetricsFactory;
0 13 1 environment Lio/dropwizard/lifecycle/setup/LifecycleEnvironment;
0 13 2 registry Lcom/codahale/metrics/MetricRegistry;
2 11 3 reporter Lio/dropwizard/metrics/ReporterFactory;
7 8 5 manager Lio/dropwizard/metrics/ScheduledReporterManager;
10 11 5 e Ljava/lang/Exception;
Exception table:
from to target type
2 8 9 Class java.lang.Exception
RuntimeVisibleAnnotations:
com.fasterxml.jackson.annotation.JsonProperty()
MethodParameters:
Name Flags
environment
registry
public java.lang.String toString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
ldc "MetricsFactory{frequency="
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield io.dropwizard.metrics.MetricsFactory.frequency:Lio/dropwizard/util/Duration;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc ", reporters="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield io.dropwizard.metrics.MetricsFactory.reporters:Ljava/util/List;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc ", reportOnStop="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
getfield io.dropwizard.metrics.MetricsFactory.reportOnStop:Z
invokevirtual java.lang.StringBuilder.append:(Z)Ljava/lang/StringBuilder;
bipush 125
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/metrics/MetricsFactory;
}
SourceFile: "MetricsFactory.java"
InnerClasses:
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles