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()
private com.google.common.collect.ImmutableList<io.dropwizard.metrics.ReporterFactory> reporters;
descriptor: Lcom/google/common/collect/ImmutableList;
flags: (0x0002) ACC_PRIVATE
Signature: Lcom/google/common/collect/ImmutableList<Lio/dropwizard/metrics/ReporterFactory;>;
RuntimeVisibleAnnotations:
javax.validation.Valid()
javax.validation.constraints.NotNull()
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 com.google.common.collect.ImmutableList.of:()Lcom/google/common/collect/ImmutableList;
putfield io.dropwizard.metrics.MetricsFactory.reporters:Lcom/google/common/collect/ImmutableList;
3: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lio/dropwizard/metrics/MetricsFactory;
public com.google.common.collect.ImmutableList<io.dropwizard.metrics.ReporterFactory> getReporters();
descriptor: ()Lcom/google/common/collect/ImmutableList;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield io.dropwizard.metrics.MetricsFactory.reporters:Lcom/google/common/collect/ImmutableList;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lio/dropwizard/metrics/MetricsFactory;
Signature: ()Lcom/google/common/collect/ImmutableList<Lio/dropwizard/metrics/ReporterFactory;>;
RuntimeVisibleAnnotations:
com.fasterxml.jackson.annotation.JsonProperty()
public void setReporters(com.google.common.collect.ImmutableList<io.dropwizard.metrics.ReporterFactory>);
descriptor: (Lcom/google/common/collect/ImmutableList;)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.reporters:Lcom/google/common/collect/ImmutableList;
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 Lcom/google/common/collect/ImmutableList<Lio/dropwizard/metrics/ReporterFactory;>;
Signature: (Lcom/google/common/collect/ImmutableList<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 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:Lcom/google/common/collect/ImmutableList;
invokevirtual com.google.common.collect.ImmutableList.iterator:()Ljava/util/Iterator;
astore 4
goto 10
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: invokespecial io.dropwizard.metrics.ScheduledReporterManager.<init>:(Lcom/codahale/metrics/ScheduledReporter;Lio/dropwizard/util/Duration;)V
5: astore 5
start local 5 6: aload 1
aload 5
invokevirtual io.dropwizard.lifecycle.setup.LifecycleEnvironment.manage:(Lio/dropwizard/lifecycle/Managed;)V
end local 5 7: goto 10
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
8: astore 5
start local 5 9: 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 10: 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
11: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 12 0 this Lio/dropwizard/metrics/MetricsFactory;
0 12 1 environment Lio/dropwizard/lifecycle/setup/LifecycleEnvironment;
0 12 2 registry Lcom/codahale/metrics/MetricRegistry;
2 10 3 reporter Lio/dropwizard/metrics/ReporterFactory;
6 7 5 manager Lio/dropwizard/metrics/ScheduledReporterManager;
9 10 5 e Ljava/lang/Exception;
Exception table:
from to target type
2 7 8 Class java.lang.Exception
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: aload 0
invokestatic com.google.common.base.MoreObjects.toStringHelper:(Ljava/lang/Object;)Lcom/google/common/base/MoreObjects$ToStringHelper;
1: ldc "frequency"
aload 0
getfield io.dropwizard.metrics.MetricsFactory.frequency:Lio/dropwizard/util/Duration;
invokevirtual com.google.common.base.MoreObjects$ToStringHelper.add:(Ljava/lang/String;Ljava/lang/Object;)Lcom/google/common/base/MoreObjects$ToStringHelper;
2: ldc "reporters"
aload 0
getfield io.dropwizard.metrics.MetricsFactory.reporters:Lcom/google/common/collect/ImmutableList;
invokevirtual com.google.common.base.MoreObjects$ToStringHelper.add:(Ljava/lang/String;Ljava/lang/Object;)Lcom/google/common/base/MoreObjects$ToStringHelper;
3: invokevirtual com.google.common.base.MoreObjects$ToStringHelper.toString:()Ljava/lang/String;
4: areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lio/dropwizard/metrics/MetricsFactory;
}
SourceFile: "MetricsFactory.java"
InnerClasses:
public final ToStringHelper = com.google.common.base.MoreObjects$ToStringHelper of com.google.common.base.MoreObjects
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles