public class com.codahale.metrics.health.SharedHealthCheckRegistries
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.codahale.metrics.health.SharedHealthCheckRegistries
super_class: java.lang.Object
{
private static final java.util.concurrent.ConcurrentMap<java.lang.String, com.codahale.metrics.health.HealthCheckRegistry> 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/health/HealthCheckRegistry;>;
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.health.SharedHealthCheckRegistries.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.health.SharedHealthCheckRegistries.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.health.SharedHealthCheckRegistries.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/health/SharedHealthCheckRegistries;
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.health.SharedHealthCheckRegistries.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.health.SharedHealthCheckRegistries.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.health.SharedHealthCheckRegistries.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.health.HealthCheckRegistry add(java.lang.String, com.codahale.metrics.health.HealthCheckRegistry);
descriptor: (Ljava/lang/String;Lcom/codahale/metrics/health/HealthCheckRegistry;)Lcom/codahale/metrics/health/HealthCheckRegistry;
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.health.SharedHealthCheckRegistries.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.health.HealthCheckRegistry
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/health/HealthCheckRegistry;
MethodParameters:
Name Flags
name
registry
public static com.codahale.metrics.health.HealthCheckRegistry getOrCreate(java.lang.String);
descriptor: (Ljava/lang/String;)Lcom/codahale/metrics/health/HealthCheckRegistry;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=4, args_size=1
start local 0 0: getstatic com.codahale.metrics.health.SharedHealthCheckRegistries.REGISTRIES:Ljava/util/concurrent/ConcurrentMap;
aload 0
invokeinterface java.util.concurrent.ConcurrentMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.codahale.metrics.health.HealthCheckRegistry
astore 1
start local 1 1: aload 1
ifnonnull 7
2: new com.codahale.metrics.health.HealthCheckRegistry
dup
invokespecial com.codahale.metrics.health.HealthCheckRegistry.<init>:()V
astore 2
start local 2 3: aload 0
aload 2
invokestatic com.codahale.metrics.health.SharedHealthCheckRegistries.add:(Ljava/lang/String;Lcom/codahale/metrics/health/HealthCheckRegistry;)Lcom/codahale/metrics/health/HealthCheckRegistry;
astore 3
start local 3 4: aload 3
ifnonnull 6
5: aload 2
areturn
6: StackMap locals: com.codahale.metrics.health.HealthCheckRegistry com.codahale.metrics.health.HealthCheckRegistry com.codahale.metrics.health.HealthCheckRegistry
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/health/HealthCheckRegistry;
3 7 2 created Lcom/codahale/metrics/health/HealthCheckRegistry;
4 7 3 raced Lcom/codahale/metrics/health/HealthCheckRegistry;
MethodParameters:
Name Flags
name
public static synchronized com.codahale.metrics.health.HealthCheckRegistry setDefault(java.lang.String);
descriptor: (Ljava/lang/String;)Lcom/codahale/metrics/health/HealthCheckRegistry;
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.health.SharedHealthCheckRegistries.getOrCreate:(Ljava/lang/String;)Lcom/codahale/metrics/health/HealthCheckRegistry;
astore 1
start local 1 1: aload 0
aload 1
invokestatic com.codahale.metrics.health.SharedHealthCheckRegistries.setDefault:(Ljava/lang/String;Lcom/codahale/metrics/health/HealthCheckRegistry;)Lcom/codahale/metrics/health/HealthCheckRegistry;
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/health/HealthCheckRegistry;
MethodParameters:
Name Flags
name
public static com.codahale.metrics.health.HealthCheckRegistry setDefault(java.lang.String, com.codahale.metrics.health.HealthCheckRegistry);
descriptor: (Ljava/lang/String;Lcom/codahale/metrics/health/HealthCheckRegistry;)Lcom/codahale/metrics/health/HealthCheckRegistry;
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.health.SharedHealthCheckRegistries.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.health.SharedHealthCheckRegistries.add:(Ljava/lang/String;Lcom/codahale/metrics/health/HealthCheckRegistry;)Lcom/codahale/metrics/health/HealthCheckRegistry;
pop
2: aload 1
areturn
3: StackMap locals:
StackMap stack:
new java.lang.IllegalStateException
dup
ldc "Default health check registry 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 healthCheckRegistry Lcom/codahale/metrics/health/HealthCheckRegistry;
MethodParameters:
Name Flags
name
healthCheckRegistry
public static com.codahale.metrics.health.HealthCheckRegistry getDefault();
descriptor: ()Lcom/codahale/metrics/health/HealthCheckRegistry;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=1, args_size=0
0: invokestatic com.codahale.metrics.health.SharedHealthCheckRegistries.tryGetDefault:()Lcom/codahale/metrics/health/HealthCheckRegistry;
astore 0
start local 0 1: aload 0
ifnull 3
2: aload 0
areturn
3: StackMap locals: com.codahale.metrics.health.HealthCheckRegistry
StackMap stack:
new java.lang.IllegalStateException
dup
ldc "Default registry name has not been set."
invokespecial java.lang.IllegalStateException.<init>:(Ljava/lang/String;)V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
1 4 0 healthCheckRegistry Lcom/codahale/metrics/health/HealthCheckRegistry;
public static com.codahale.metrics.health.HealthCheckRegistry tryGetDefault();
descriptor: ()Lcom/codahale/metrics/health/HealthCheckRegistry;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=0
0: getstatic com.codahale.metrics.health.SharedHealthCheckRegistries.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.health.SharedHealthCheckRegistries.getOrCreate:(Ljava/lang/String;)Lcom/codahale/metrics/health/HealthCheckRegistry;
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: "SharedHealthCheckRegistries.java"