public class com.codahale.metrics.health.HealthCheckRegistry
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.codahale.metrics.health.HealthCheckRegistry
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 static final int ASYNC_EXECUTOR_POOL_SIZE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 2
private final java.util.concurrent.ConcurrentMap<java.lang.String, com.codahale.metrics.health.HealthCheck> healthChecks;
descriptor: Ljava/util/concurrent/ConcurrentMap;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/concurrent/ConcurrentMap<Ljava/lang/String;Lcom/codahale/metrics/health/HealthCheck;>;
private final java.util.List<com.codahale.metrics.health.HealthCheckRegistryListener> listeners;
descriptor: Ljava/util/List;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
Signature: Ljava/util/List<Lcom/codahale/metrics/health/HealthCheckRegistryListener;>;
private final java.util.concurrent.ScheduledExecutorService asyncExecutorService;
descriptor: Ljava/util/concurrent/ScheduledExecutorService;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private final java.lang.Object lock;
descriptor: Ljava/lang/Object;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: ldc Lcom/codahale/metrics/health/HealthCheckRegistry;
invokestatic org.slf4j.LoggerFactory.getLogger:(Ljava/lang/Class;)Lorg/slf4j/Logger;
putstatic com.codahale.metrics.health.HealthCheckRegistry.LOGGER:Lorg/slf4j/Logger;
1: return
LocalVariableTable:
Start End Slot Name Signature
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_2
invokespecial com.codahale.metrics.health.HealthCheckRegistry.<init>:(I)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/codahale/metrics/health/HealthCheckRegistry;
public void <init>(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
invokestatic com.codahale.metrics.health.HealthCheckRegistry.createExecutorService:(I)Ljava/util/concurrent/ScheduledExecutorService;
invokespecial com.codahale.metrics.health.HealthCheckRegistry.<init>:(Ljava/util/concurrent/ScheduledExecutorService;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/codahale/metrics/health/HealthCheckRegistry;
0 2 1 asyncExecutorPoolSize I
MethodParameters:
Name Flags
asyncExecutorPoolSize
public void <init>(java.util.concurrent.ScheduledExecutorService);
descriptor: (Ljava/util/concurrent/ScheduledExecutorService;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new java.lang.Object
dup
invokespecial java.lang.Object.<init>:()V
putfield com.codahale.metrics.health.HealthCheckRegistry.lock:Ljava/lang/Object;
2: aload 0
new java.util.concurrent.ConcurrentHashMap
dup
invokespecial java.util.concurrent.ConcurrentHashMap.<init>:()V
putfield com.codahale.metrics.health.HealthCheckRegistry.healthChecks:Ljava/util/concurrent/ConcurrentMap;
3: aload 0
new java.util.concurrent.CopyOnWriteArrayList
dup
invokespecial java.util.concurrent.CopyOnWriteArrayList.<init>:()V
putfield com.codahale.metrics.health.HealthCheckRegistry.listeners:Ljava/util/List;
4: aload 0
aload 1
putfield com.codahale.metrics.health.HealthCheckRegistry.asyncExecutorService:Ljava/util/concurrent/ScheduledExecutorService;
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/codahale/metrics/health/HealthCheckRegistry;
0 6 1 asyncExecutorService Ljava/util/concurrent/ScheduledExecutorService;
MethodParameters:
Name Flags
asyncExecutorService
public void addListener(com.codahale.metrics.health.HealthCheckRegistryListener);
descriptor: (Lcom/codahale/metrics/health/HealthCheckRegistryListener;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield com.codahale.metrics.health.HealthCheckRegistry.listeners:Ljava/util/List;
aload 1
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
1: aload 0
getfield com.codahale.metrics.health.HealthCheckRegistry.healthChecks:Ljava/util/concurrent/ConcurrentMap;
invokeinterface java.util.concurrent.ConcurrentMap.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 3
goto 4
StackMap locals: com.codahale.metrics.health.HealthCheckRegistry com.codahale.metrics.health.HealthCheckRegistryListener top java.util.Iterator
StackMap stack:
2: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 2
start local 2 3: aload 1
aload 2
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.lang.String
aload 2
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast com.codahale.metrics.health.HealthCheck
invokeinterface com.codahale.metrics.health.HealthCheckRegistryListener.onHealthCheckAdded:(Ljava/lang/String;Lcom/codahale/metrics/health/HealthCheck;)V
end local 2 4: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
5: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Lcom/codahale/metrics/health/HealthCheckRegistry;
0 6 1 listener Lcom/codahale/metrics/health/HealthCheckRegistryListener;
3 4 2 entry Ljava/util/Map$Entry<Ljava/lang/String;Lcom/codahale/metrics/health/HealthCheck;>;
MethodParameters:
Name Flags
listener
public void removeListener(com.codahale.metrics.health.HealthCheckRegistryListener);
descriptor: (Lcom/codahale/metrics/health/HealthCheckRegistryListener;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.codahale.metrics.health.HealthCheckRegistry.listeners:Ljava/util/List;
aload 1
invokeinterface java.util.List.remove:(Ljava/lang/Object;)Z
pop
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/codahale/metrics/health/HealthCheckRegistry;
0 2 1 listener Lcom/codahale/metrics/health/HealthCheckRegistryListener;
MethodParameters:
Name Flags
listener
public void register(java.lang.String, com.codahale.metrics.health.HealthCheck);
descriptor: (Ljava/lang/String;Lcom/codahale/metrics/health/HealthCheck;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield com.codahale.metrics.health.HealthCheckRegistry.lock:Ljava/lang/Object;
dup
astore 4
monitorenter
1: aload 0
getfield com.codahale.metrics.health.HealthCheckRegistry.healthChecks:Ljava/util/concurrent/ConcurrentMap;
aload 1
invokeinterface java.util.concurrent.ConcurrentMap.containsKey:(Ljava/lang/Object;)Z
ifeq 3
2: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "A health check named "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " already exists"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: com.codahale.metrics.health.HealthCheckRegistry java.lang.String com.codahale.metrics.health.HealthCheck top java.lang.Object
StackMap stack:
aload 2
astore 3
start local 3 4: aload 2
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
ldc Lcom/codahale/metrics/health/annotation/Async;
invokevirtual java.lang.Class.isAnnotationPresent:(Ljava/lang/Class;)Z
ifeq 6
5: new com.codahale.metrics.health.AsyncHealthCheckDecorator
dup
aload 2
aload 0
getfield com.codahale.metrics.health.HealthCheckRegistry.asyncExecutorService:Ljava/util/concurrent/ScheduledExecutorService;
invokespecial com.codahale.metrics.health.AsyncHealthCheckDecorator.<init>:(Lcom/codahale/metrics/health/HealthCheck;Ljava/util/concurrent/ScheduledExecutorService;)V
astore 3
6: StackMap locals: com.codahale.metrics.health.HealthCheckRegistry java.lang.String com.codahale.metrics.health.HealthCheck com.codahale.metrics.health.HealthCheck java.lang.Object
StackMap stack:
aload 0
getfield com.codahale.metrics.health.HealthCheckRegistry.healthChecks:Ljava/util/concurrent/ConcurrentMap;
aload 1
aload 3
invokeinterface java.util.concurrent.ConcurrentMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
7: aload 4
monitorexit
8: goto 11
end local 3 StackMap locals: com.codahale.metrics.health.HealthCheckRegistry java.lang.String com.codahale.metrics.health.HealthCheck top java.lang.Object
StackMap stack: java.lang.Throwable
9: aload 4
monitorexit
10: athrow
start local 3 11: StackMap locals: com.codahale.metrics.health.HealthCheckRegistry java.lang.String com.codahale.metrics.health.HealthCheck com.codahale.metrics.health.HealthCheck
StackMap stack:
aload 0
aload 1
aload 3
invokevirtual com.codahale.metrics.health.HealthCheckRegistry.onHealthCheckAdded:(Ljava/lang/String;Lcom/codahale/metrics/health/HealthCheck;)V
12: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lcom/codahale/metrics/health/HealthCheckRegistry;
0 13 1 name Ljava/lang/String;
0 13 2 healthCheck Lcom/codahale/metrics/health/HealthCheck;
4 9 3 registered Lcom/codahale/metrics/health/HealthCheck;
11 13 3 registered Lcom/codahale/metrics/health/HealthCheck;
Exception table:
from to target type
1 8 9 any
9 10 9 any
MethodParameters:
Name Flags
name
healthCheck
public void unregister(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 0
getfield com.codahale.metrics.health.HealthCheckRegistry.lock:Ljava/lang/Object;
dup
astore 3
monitorenter
1: aload 0
getfield com.codahale.metrics.health.HealthCheckRegistry.healthChecks:Ljava/util/concurrent/ConcurrentMap;
aload 1
invokeinterface java.util.concurrent.ConcurrentMap.remove:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.codahale.metrics.health.HealthCheck
astore 2
start local 2 2: aload 2
instanceof com.codahale.metrics.health.AsyncHealthCheckDecorator
ifeq 4
3: aload 2
checkcast com.codahale.metrics.health.AsyncHealthCheckDecorator
invokevirtual com.codahale.metrics.health.AsyncHealthCheckDecorator.tearDown:()Z
pop
4: StackMap locals: com.codahale.metrics.health.HealthCheck java.lang.Object
StackMap stack:
aload 3
monitorexit
5: goto 8
end local 2 StackMap locals: com.codahale.metrics.health.HealthCheckRegistry java.lang.String top java.lang.Object
StackMap stack: java.lang.Throwable
6: aload 3
monitorexit
7: athrow
start local 2 8: StackMap locals: com.codahale.metrics.health.HealthCheckRegistry java.lang.String com.codahale.metrics.health.HealthCheck
StackMap stack:
aload 2
ifnull 10
9: aload 0
aload 1
aload 2
invokevirtual com.codahale.metrics.health.HealthCheckRegistry.onHealthCheckRemoved:(Ljava/lang/String;Lcom/codahale/metrics/health/HealthCheck;)V
10: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lcom/codahale/metrics/health/HealthCheckRegistry;
0 11 1 name Ljava/lang/String;
2 6 2 healthCheck Lcom/codahale/metrics/health/HealthCheck;
8 11 2 healthCheck Lcom/codahale/metrics/health/HealthCheck;
Exception table:
from to target type
1 5 6 any
6 7 6 any
MethodParameters:
Name Flags
name
public java.util.SortedSet<java.lang.String> getNames();
descriptor: ()Ljava/util/SortedSet;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new java.util.TreeSet
dup
aload 0
getfield com.codahale.metrics.health.HealthCheckRegistry.healthChecks:Ljava/util/concurrent/ConcurrentMap;
invokeinterface java.util.concurrent.ConcurrentMap.keySet:()Ljava/util/Set;
invokespecial java.util.TreeSet.<init>:(Ljava/util/Collection;)V
invokestatic java.util.Collections.unmodifiableSortedSet:(Ljava/util/SortedSet;)Ljava/util/SortedSet;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/codahale/metrics/health/HealthCheckRegistry;
Signature: ()Ljava/util/SortedSet<Ljava/lang/String;>;
public com.codahale.metrics.health.HealthCheck getHealthCheck(java.lang.String);
descriptor: (Ljava/lang/String;)Lcom/codahale/metrics/health/HealthCheck;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield com.codahale.metrics.health.HealthCheckRegistry.healthChecks:Ljava/util/concurrent/ConcurrentMap;
aload 1
invokeinterface java.util.concurrent.ConcurrentMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.codahale.metrics.health.HealthCheck
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/codahale/metrics/health/HealthCheckRegistry;
0 1 1 name Ljava/lang/String;
MethodParameters:
Name Flags
name
public com.codahale.metrics.health.HealthCheck$Result runHealthCheck(java.lang.String);
descriptor: (Ljava/lang/String;)Lcom/codahale/metrics/health/HealthCheck$Result;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield com.codahale.metrics.health.HealthCheckRegistry.healthChecks:Ljava/util/concurrent/ConcurrentMap;
aload 1
invokeinterface java.util.concurrent.ConcurrentMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.codahale.metrics.health.HealthCheck
astore 2
start local 2 1: aload 2
ifnonnull 3
2: new java.util.NoSuchElementException
dup
new java.lang.StringBuilder
dup
ldc "No health check named "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " exists"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.util.NoSuchElementException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: com.codahale.metrics.health.HealthCheck
StackMap stack:
aload 2
invokevirtual com.codahale.metrics.health.HealthCheck.execute:()Lcom/codahale/metrics/health/HealthCheck$Result;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/codahale/metrics/health/HealthCheckRegistry;
0 4 1 name Ljava/lang/String;
1 4 2 healthCheck Lcom/codahale/metrics/health/HealthCheck;
Exceptions:
throws java.util.NoSuchElementException
MethodParameters:
Name Flags
name
public java.util.SortedMap<java.lang.String, com.codahale.metrics.health.HealthCheck$Result> runHealthChecks();
descriptor: ()Ljava/util/SortedMap;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getstatic com.codahale.metrics.health.HealthCheckFilter.ALL:Lcom/codahale/metrics/health/HealthCheckFilter;
invokevirtual com.codahale.metrics.health.HealthCheckRegistry.runHealthChecks:(Lcom/codahale/metrics/health/HealthCheckFilter;)Ljava/util/SortedMap;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/codahale/metrics/health/HealthCheckRegistry;
Signature: ()Ljava/util/SortedMap<Ljava/lang/String;Lcom/codahale/metrics/health/HealthCheck$Result;>;
public java.util.SortedMap<java.lang.String, com.codahale.metrics.health.HealthCheck$Result> runHealthChecks(com.codahale.metrics.health.HealthCheckFilter);
descriptor: (Lcom/codahale/metrics/health/HealthCheckFilter;)Ljava/util/SortedMap;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=8, args_size=2
start local 0 start local 1 0: new java.util.TreeMap
dup
invokespecial java.util.TreeMap.<init>:()V
astore 2
start local 2 1: aload 0
getfield com.codahale.metrics.health.HealthCheckRegistry.healthChecks:Ljava/util/concurrent/ConcurrentMap;
invokeinterface java.util.concurrent.ConcurrentMap.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 4
goto 8
StackMap locals: com.codahale.metrics.health.HealthCheckRegistry com.codahale.metrics.health.HealthCheckFilter java.util.SortedMap top java.util.Iterator
StackMap stack:
2: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 3
start local 3 3: aload 3
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.lang.String
astore 5
start local 5 4: aload 3
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast com.codahale.metrics.health.HealthCheck
astore 6
start local 6 5: aload 1
aload 5
aload 6
invokeinterface com.codahale.metrics.health.HealthCheckFilter.matches:(Ljava/lang/String;Lcom/codahale/metrics/health/HealthCheck;)Z
ifeq 8
6: aload 3
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast com.codahale.metrics.health.HealthCheck
invokevirtual com.codahale.metrics.health.HealthCheck.execute:()Lcom/codahale/metrics/health/HealthCheck$Result;
astore 7
start local 7 7: aload 2
aload 3
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.lang.String
aload 7
invokeinterface java.util.SortedMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 7 end local 6 end local 5 end local 3 8: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
9: aload 2
invokestatic java.util.Collections.unmodifiableSortedMap:(Ljava/util/SortedMap;)Ljava/util/SortedMap;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lcom/codahale/metrics/health/HealthCheckRegistry;
0 10 1 filter Lcom/codahale/metrics/health/HealthCheckFilter;
1 10 2 results Ljava/util/SortedMap<Ljava/lang/String;Lcom/codahale/metrics/health/HealthCheck$Result;>;
3 8 3 entry Ljava/util/Map$Entry<Ljava/lang/String;Lcom/codahale/metrics/health/HealthCheck;>;
4 8 5 name Ljava/lang/String;
5 8 6 healthCheck Lcom/codahale/metrics/health/HealthCheck;
7 8 7 result Lcom/codahale/metrics/health/HealthCheck$Result;
Signature: (Lcom/codahale/metrics/health/HealthCheckFilter;)Ljava/util/SortedMap<Ljava/lang/String;Lcom/codahale/metrics/health/HealthCheck$Result;>;
MethodParameters:
Name Flags
filter
public java.util.SortedMap<java.lang.String, com.codahale.metrics.health.HealthCheck$Result> runHealthChecks(java.util.concurrent.ExecutorService);
descriptor: (Ljava/util/concurrent/ExecutorService;)Ljava/util/SortedMap;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
getstatic com.codahale.metrics.health.HealthCheckFilter.ALL:Lcom/codahale/metrics/health/HealthCheckFilter;
invokevirtual com.codahale.metrics.health.HealthCheckRegistry.runHealthChecks:(Ljava/util/concurrent/ExecutorService;Lcom/codahale/metrics/health/HealthCheckFilter;)Ljava/util/SortedMap;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/codahale/metrics/health/HealthCheckRegistry;
0 1 1 executor Ljava/util/concurrent/ExecutorService;
Signature: (Ljava/util/concurrent/ExecutorService;)Ljava/util/SortedMap<Ljava/lang/String;Lcom/codahale/metrics/health/HealthCheck$Result;>;
MethodParameters:
Name Flags
executor
public java.util.SortedMap<java.lang.String, com.codahale.metrics.health.HealthCheck$Result> runHealthChecks(java.util.concurrent.ExecutorService, com.codahale.metrics.health.HealthCheckFilter);
descriptor: (Ljava/util/concurrent/ExecutorService;Lcom/codahale/metrics/health/HealthCheckFilter;)Ljava/util/SortedMap;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=8, args_size=3
start local 0 start local 1 start local 2 0: new java.util.HashMap
dup
invokespecial java.util.HashMap.<init>:()V
astore 3
start local 3 1: aload 0
getfield com.codahale.metrics.health.HealthCheckRegistry.healthChecks:Ljava/util/concurrent/ConcurrentMap;
invokeinterface java.util.concurrent.ConcurrentMap.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 5
goto 7
StackMap locals: com.codahale.metrics.health.HealthCheckRegistry java.util.concurrent.ExecutorService com.codahale.metrics.health.HealthCheckFilter java.util.Map top java.util.Iterator
StackMap stack:
2: aload 5
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 4
start local 4 3: aload 4
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.lang.String
astore 6
start local 6 4: aload 4
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast com.codahale.metrics.health.HealthCheck
astore 7
start local 7 5: aload 2
aload 6
aload 7
invokeinterface com.codahale.metrics.health.HealthCheckFilter.matches:(Ljava/lang/String;Lcom/codahale/metrics/health/HealthCheck;)Z
ifeq 7
6: aload 3
aload 6
aload 1
aload 7
invokedynamic call(Lcom/codahale/metrics/health/HealthCheck;)Ljava/util/concurrent/Callable;
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;
com/codahale/metrics/health/HealthCheckRegistry.lambda$0(Lcom/codahale/metrics/health/HealthCheck;)Lcom/codahale/metrics/health/HealthCheck$Result; (6)
()Lcom/codahale/metrics/health/HealthCheck$Result;
invokeinterface java.util.concurrent.ExecutorService.submit:(Ljava/util/concurrent/Callable;)Ljava/util/concurrent/Future;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 7 end local 6 end local 4 7: StackMap locals:
StackMap stack:
aload 5
invokeinterface java.util.Iterator.hasNext:()Z
ifne 2
8: new java.util.TreeMap
dup
invokespecial java.util.TreeMap.<init>:()V
astore 4
start local 4 9: aload 3
invokeinterface java.util.Map.entrySet:()Ljava/util/Set;
invokeinterface java.util.Set.iterator:()Ljava/util/Iterator;
astore 6
goto 16
StackMap locals: com.codahale.metrics.health.HealthCheckRegistry java.util.concurrent.ExecutorService com.codahale.metrics.health.HealthCheckFilter java.util.Map java.util.SortedMap top java.util.Iterator
StackMap stack:
10: aload 6
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast java.util.Map$Entry
astore 5
start local 5 11: aload 4
aload 5
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.lang.String
aload 5
invokeinterface java.util.Map$Entry.getValue:()Ljava/lang/Object;
checkcast java.util.concurrent.Future
invokeinterface java.util.concurrent.Future.get:()Ljava/lang/Object;
checkcast com.codahale.metrics.health.HealthCheck$Result
invokeinterface java.util.SortedMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
12: goto 16
StackMap locals: com.codahale.metrics.health.HealthCheckRegistry java.util.concurrent.ExecutorService com.codahale.metrics.health.HealthCheckFilter java.util.Map java.util.SortedMap java.util.Map$Entry java.util.Iterator
StackMap stack: java.lang.Exception
13: astore 7
start local 7 14: getstatic com.codahale.metrics.health.HealthCheckRegistry.LOGGER:Lorg/slf4j/Logger;
ldc "Error executing health check {}"
aload 5
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
aload 7
invokeinterface org.slf4j.Logger.warn:(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
15: aload 4
aload 5
invokeinterface java.util.Map$Entry.getKey:()Ljava/lang/Object;
checkcast java.lang.String
aload 7
invokestatic com.codahale.metrics.health.HealthCheck$Result.unhealthy:(Ljava/lang/Throwable;)Lcom/codahale/metrics/health/HealthCheck$Result;
invokeinterface java.util.SortedMap.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
end local 7 end local 5 16: StackMap locals: com.codahale.metrics.health.HealthCheckRegistry java.util.concurrent.ExecutorService com.codahale.metrics.health.HealthCheckFilter java.util.Map java.util.SortedMap top java.util.Iterator
StackMap stack:
aload 6
invokeinterface java.util.Iterator.hasNext:()Z
ifne 10
17: aload 4
invokestatic java.util.Collections.unmodifiableSortedMap:(Ljava/util/SortedMap;)Ljava/util/SortedMap;
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 this Lcom/codahale/metrics/health/HealthCheckRegistry;
0 18 1 executor Ljava/util/concurrent/ExecutorService;
0 18 2 filter Lcom/codahale/metrics/health/HealthCheckFilter;
1 18 3 futures Ljava/util/Map<Ljava/lang/String;Ljava/util/concurrent/Future<Lcom/codahale/metrics/health/HealthCheck$Result;>;>;
3 7 4 entry Ljava/util/Map$Entry<Ljava/lang/String;Lcom/codahale/metrics/health/HealthCheck;>;
4 7 6 name Ljava/lang/String;
5 7 7 healthCheck Lcom/codahale/metrics/health/HealthCheck;
9 18 4 results Ljava/util/SortedMap<Ljava/lang/String;Lcom/codahale/metrics/health/HealthCheck$Result;>;
11 16 5 entry Ljava/util/Map$Entry<Ljava/lang/String;Ljava/util/concurrent/Future<Lcom/codahale/metrics/health/HealthCheck$Result;>;>;
14 16 7 e Ljava/lang/Exception;
Exception table:
from to target type
11 12 13 Class java.lang.Exception
Signature: (Ljava/util/concurrent/ExecutorService;Lcom/codahale/metrics/health/HealthCheckFilter;)Ljava/util/SortedMap<Ljava/lang/String;Lcom/codahale/metrics/health/HealthCheck$Result;>;
MethodParameters:
Name Flags
executor
filter
private void onHealthCheckAdded(java.lang.String, com.codahale.metrics.health.HealthCheck);
descriptor: (Ljava/lang/String;Lcom/codahale/metrics/health/HealthCheck;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield com.codahale.metrics.health.HealthCheckRegistry.listeners:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 3
StackMap locals: com.codahale.metrics.health.HealthCheckRegistry java.lang.String com.codahale.metrics.health.HealthCheck top java.util.Iterator
StackMap stack:
1: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.codahale.metrics.health.HealthCheckRegistryListener
astore 3
start local 3 2: aload 3
aload 1
aload 2
invokeinterface com.codahale.metrics.health.HealthCheckRegistryListener.onHealthCheckAdded:(Ljava/lang/String;Lcom/codahale/metrics/health/HealthCheck;)V
end local 3 3: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/codahale/metrics/health/HealthCheckRegistry;
0 5 1 name Ljava/lang/String;
0 5 2 healthCheck Lcom/codahale/metrics/health/HealthCheck;
2 3 3 listener Lcom/codahale/metrics/health/HealthCheckRegistryListener;
MethodParameters:
Name Flags
name
healthCheck
private void onHealthCheckRemoved(java.lang.String, com.codahale.metrics.health.HealthCheck);
descriptor: (Ljava/lang/String;Lcom/codahale/metrics/health/HealthCheck;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=3, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 0
getfield com.codahale.metrics.health.HealthCheckRegistry.listeners:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 4
goto 3
StackMap locals: com.codahale.metrics.health.HealthCheckRegistry java.lang.String com.codahale.metrics.health.HealthCheck top java.util.Iterator
StackMap stack:
1: aload 4
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
checkcast com.codahale.metrics.health.HealthCheckRegistryListener
astore 3
start local 3 2: aload 3
aload 1
aload 2
invokeinterface com.codahale.metrics.health.HealthCheckRegistryListener.onHealthCheckRemoved:(Ljava/lang/String;Lcom/codahale/metrics/health/HealthCheck;)V
end local 3 3: StackMap locals:
StackMap stack:
aload 4
invokeinterface java.util.Iterator.hasNext:()Z
ifne 1
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lcom/codahale/metrics/health/HealthCheckRegistry;
0 5 1 name Ljava/lang/String;
0 5 2 healthCheck Lcom/codahale/metrics/health/HealthCheck;
2 3 3 listener Lcom/codahale/metrics/health/HealthCheckRegistryListener;
MethodParameters:
Name Flags
name
healthCheck
public void shutdown();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
getfield com.codahale.metrics.health.HealthCheckRegistry.asyncExecutorService:Ljava/util/concurrent/ScheduledExecutorService;
invokeinterface java.util.concurrent.ScheduledExecutorService.shutdown:()V
1: aload 0
getfield com.codahale.metrics.health.HealthCheckRegistry.asyncExecutorService:Ljava/util/concurrent/ScheduledExecutorService;
lconst_1
getstatic java.util.concurrent.TimeUnit.SECONDS:Ljava/util/concurrent/TimeUnit;
invokeinterface java.util.concurrent.ScheduledExecutorService.awaitTermination:(JLjava/util/concurrent/TimeUnit;)Z
ifne 7
2: aload 0
getfield com.codahale.metrics.health.HealthCheckRegistry.asyncExecutorService:Ljava/util/concurrent/ScheduledExecutorService;
invokeinterface java.util.concurrent.ScheduledExecutorService.shutdownNow:()Ljava/util/List;
pop
3: goto 7
StackMap locals:
StackMap stack: java.lang.InterruptedException
4: pop
5: aload 0
getfield com.codahale.metrics.health.HealthCheckRegistry.asyncExecutorService:Ljava/util/concurrent/ScheduledExecutorService;
invokeinterface java.util.concurrent.ScheduledExecutorService.shutdownNow:()Ljava/util/List;
pop
6: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.interrupt:()V
7: StackMap locals:
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lcom/codahale/metrics/health/HealthCheckRegistry;
Exception table:
from to target type
1 3 4 Class java.lang.InterruptedException
private static java.util.concurrent.ScheduledExecutorService createExecutorService(int);
descriptor: (I)Ljava/util/concurrent/ScheduledExecutorService;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=6, locals=2, args_size=1
start local 0 0: new java.util.concurrent.ScheduledThreadPoolExecutor
dup
iload 0
1: new com.codahale.metrics.health.HealthCheckRegistry$NamedThreadFactory
dup
ldc "healthcheck-async-executor-"
invokespecial com.codahale.metrics.health.HealthCheckRegistry$NamedThreadFactory.<init>:(Ljava/lang/String;)V
2: invokespecial java.util.concurrent.ScheduledThreadPoolExecutor.<init>:(ILjava/util/concurrent/ThreadFactory;)V
astore 1
start local 1 3: aload 1
iconst_1
invokevirtual java.util.concurrent.ScheduledThreadPoolExecutor.setRemoveOnCancelPolicy:(Z)V
4: aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 corePoolSize I
3 5 1 asyncExecutorService Ljava/util/concurrent/ScheduledThreadPoolExecutor;
MethodParameters:
Name Flags
corePoolSize
private static com.codahale.metrics.health.HealthCheck$Result lambda$0(com.codahale.metrics.health.HealthCheck);
descriptor: (Lcom/codahale/metrics/health/HealthCheck;)Lcom/codahale/metrics/health/HealthCheck$Result;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual com.codahale.metrics.health.HealthCheck.execute:()Lcom/codahale/metrics/health/HealthCheck$Result;
areturn
LocalVariableTable:
Start End Slot Name Signature
Exceptions:
throws java.lang.Exception
}
SourceFile: "HealthCheckRegistry.java"
NestMembers:
com.codahale.metrics.health.HealthCheckRegistry$NamedThreadFactory
InnerClasses:
public Result = com.codahale.metrics.health.HealthCheck$Result of com.codahale.metrics.health.HealthCheck
private NamedThreadFactory = com.codahale.metrics.health.HealthCheckRegistry$NamedThreadFactory of com.codahale.metrics.health.HealthCheckRegistry
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles
public abstract Entry = java.util.Map$Entry of java.util.Map