public class com.codahale.metrics.SharedMetricRegistries
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.codahale.metrics.SharedMetricRegistries
super_class: java.lang.Object
{
private static final java.util.concurrent.ConcurrentMap<java.lang.String, com.codahale.metrics.MetricRegistry> REGISTRIES;
descriptor: Ljava/util/concurrent/ConcurrentMap;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/concurrent/ConcurrentMap<Ljava/lang/String;Lcom/codahale/metrics/MetricRegistry;>;
private static java.util.concurrent.atomic.AtomicReference<java.lang.String> defaultRegistryName;
descriptor: Ljava/util/concurrent/atomic/AtomicReference;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Signature: Ljava/util/concurrent/atomic/AtomicReference<Ljava/lang/String;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=0, args_size=0
0: new java.util.concurrent.ConcurrentHashMap
dup
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:()V
1: putstatic com.codahale.metrics.SharedMetricRegistries.REGISTRIES:Ljava/util/concurrent/ConcurrentMap;
2: new java.util.concurrent.atomic.AtomicReference
dup
invokespecial java.util.concurrent.atomic.AtomicReference.<init>:()V
putstatic com.codahale.metrics.SharedMetricRegistries.defaultRegistryName:Ljava/util/concurrent/atomic/AtomicReference;
return
LocalVariableTable:
Start End Slot Name Signature
static void setDefaultRegistryName(java.util.concurrent.atomic.AtomicReference<java.lang.String>);
descriptor: (Ljava/util/concurrent/atomic/AtomicReference;)V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
putstatic com.codahale.metrics.SharedMetricRegistries.defaultRegistryName:Ljava/util/concurrent/atomic/AtomicReference;
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 defaultRegistryName Ljava/util/concurrent/atomic/AtomicReference<Ljava/lang/String;>;
Signature: (Ljava/util/concurrent/atomic/AtomicReference<Ljava/lang/String;>;)V
MethodParameters:
Name Flags
defaultRegistryName
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
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 Lcom/codahale/metrics/SharedMetricRegistries;
public static void clear();
descriptor: ()V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic com.codahale.metrics.SharedMetricRegistries.REGISTRIES:Ljava/util/concurrent/ConcurrentMap;
invokeinterface java.util.concurrent.ConcurrentMap.clear:()V
1: return
LocalVariableTable:
Start End Slot Name Signature
public static java.util.Set<java.lang.String> names();
descriptor: ()Ljava/util/Set;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic com.codahale.metrics.SharedMetricRegistries.REGISTRIES:Ljava/util/concurrent/ConcurrentMap;
invokeinterface java.util.concurrent.ConcurrentMap.keySet:()Ljava/util/Set;
areturn
LocalVariableTable:
Start End Slot Name Signature
Signature: ()Ljava/util/Set<Ljava/lang/String;>;
public static void remove(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic com.codahale.metrics.SharedMetricRegistries.REGISTRIES:Ljava/util/concurrent/ConcurrentMap;
aload 0
invokeinterface java.util.concurrent.ConcurrentMap.remove:(Ljava/lang/Object;)Ljava/lang/Object;
pop
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 key Ljava/lang/String;
MethodParameters:
Name Flags
key
public static com.codahale.metrics.MetricRegistry add(java.lang.String, com.codahale.metrics.MetricRegistry);
descriptor: (Ljava/lang/String;Lcom/codahale/metrics/MetricRegistry;)Lcom/codahale/metrics/MetricRegistry;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: getstatic com.codahale.metrics.SharedMetricRegistries.REGISTRIES:Ljava/util/concurrent/ConcurrentMap;
aload 0
aload 1
invokeinterface java.util.concurrent.ConcurrentMap.putIfAbsent:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.codahale.metrics.MetricRegistry
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 name Ljava/lang/String;
0 1 1 registry Lcom/codahale/metrics/MetricRegistry;
MethodParameters:
Name Flags
name
registry
public static com.codahale.metrics.MetricRegistry getOrCreate(java.lang.String);
descriptor: (Ljava/lang/String;)Lcom/codahale/metrics/MetricRegistry;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=4, args_size=1
start local 0 0: getstatic com.codahale.metrics.SharedMetricRegistries.REGISTRIES:Ljava/util/concurrent/ConcurrentMap;
aload 0
invokeinterface java.util.concurrent.ConcurrentMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.codahale.metrics.MetricRegistry
astore 1
start local 1 1: aload 1
ifnonnull 7
2: new com.codahale.metrics.MetricRegistry
dup
invokespecial com.codahale.metrics.MetricRegistry.<init>:()V
astore 2
start local 2 3: aload 0
aload 2
invokestatic com.codahale.metrics.SharedMetricRegistries.add:(Ljava/lang/String;Lcom/codahale/metrics/MetricRegistry;)Lcom/codahale/metrics/MetricRegistry;
astore 3
start local 3 4: aload 3
ifnonnull 6
5: aload 2
areturn
6: StackMap locals: com.codahale.metrics.MetricRegistry com.codahale.metrics.MetricRegistry com.codahale.metrics.MetricRegistry
StackMap stack:
aload 3
areturn
end local 3 end local 2 7: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 name Ljava/lang/String;
1 8 1 existing Lcom/codahale/metrics/MetricRegistry;
3 7 2 created Lcom/codahale/metrics/MetricRegistry;
4 7 3 raced Lcom/codahale/metrics/MetricRegistry;
MethodParameters:
Name Flags
name
public static synchronized com.codahale.metrics.MetricRegistry setDefault(java.lang.String);
descriptor: (Ljava/lang/String;)Lcom/codahale/metrics/MetricRegistry;
flags: (0x0029) ACC_PUBLIC, ACC_STATIC, ACC_SYNCHRONIZED
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
invokestatic com.codahale.metrics.SharedMetricRegistries.getOrCreate:(Ljava/lang/String;)Lcom/codahale/metrics/MetricRegistry;
astore 1
start local 1 1: aload 0
aload 1
invokestatic com.codahale.metrics.SharedMetricRegistries.setDefault:(Ljava/lang/String;Lcom/codahale/metrics/MetricRegistry;)Lcom/codahale/metrics/MetricRegistry;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 name Ljava/lang/String;
1 2 1 registry Lcom/codahale/metrics/MetricRegistry;
MethodParameters:
Name Flags
name
public static com.codahale.metrics.MetricRegistry setDefault(java.lang.String, com.codahale.metrics.MetricRegistry);
descriptor: (Ljava/lang/String;Lcom/codahale/metrics/MetricRegistry;)Lcom/codahale/metrics/MetricRegistry;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: getstatic com.codahale.metrics.SharedMetricRegistries.defaultRegistryName:Ljava/util/concurrent/atomic/AtomicReference;
aconst_null
aload 0
invokevirtual java.util.concurrent.atomic.AtomicReference.compareAndSet:(Ljava/lang/Object;Ljava/lang/Object;)Z
ifeq 3
1: aload 0
aload 1
invokestatic com.codahale.metrics.SharedMetricRegistries.add:(Ljava/lang/String;Lcom/codahale/metrics/MetricRegistry;)Lcom/codahale/metrics/MetricRegistry;
pop
2: aload 1
areturn
3: StackMap locals:
StackMap stack:
new java.lang.IllegalStateException
dup
ldc "Default metric registry name is already set."
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 name Ljava/lang/String;
0 4 1 metricRegistry Lcom/codahale/metrics/MetricRegistry;
MethodParameters:
Name Flags
name
metricRegistry
public static com.codahale.metrics.MetricRegistry getDefault();
descriptor: ()Lcom/codahale/metrics/MetricRegistry;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=0
0: invokestatic com.codahale.metrics.SharedMetricRegistries.tryGetDefault:()Lcom/codahale/metrics/MetricRegistry;
astore 0
start local 0 1: aload 0
ifnonnull 3
2: new java.lang.IllegalStateException
dup
ldc "Default registry name has not been set."
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: com.codahale.metrics.MetricRegistry
StackMap stack:
aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 4 0 metricRegistry Lcom/codahale/metrics/MetricRegistry;
public static com.codahale.metrics.MetricRegistry tryGetDefault();
descriptor: ()Lcom/codahale/metrics/MetricRegistry;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=0
0: getstatic com.codahale.metrics.SharedMetricRegistries.defaultRegistryName:Ljava/util/concurrent/atomic/AtomicReference;
invokevirtual java.util.concurrent.atomic.AtomicReference.get:()Ljava/lang/Object;
checkcast java.lang.String
astore 0
start local 0 1: aload 0
ifnull 3
2: aload 0
invokestatic com.codahale.metrics.SharedMetricRegistries.getOrCreate:(Ljava/lang/String;)Lcom/codahale/metrics/MetricRegistry;
areturn
3: StackMap locals: java.lang.String
StackMap stack:
aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 4 0 name Ljava/lang/String;
}
SourceFile: "SharedMetricRegistries.java"