public class com.netflix.hystrix.metric.consumer.HealthCountsStream extends com.netflix.hystrix.metric.consumer.BucketedRollingCounterStream<com.netflix.hystrix.metric.HystrixCommandCompletion, long[], com.netflix.hystrix.HystrixCommandMetrics$HealthCounts>
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.netflix.hystrix.metric.consumer.HealthCountsStream
super_class: com.netflix.hystrix.metric.consumer.BucketedRollingCounterStream
{
private static final java.util.concurrent.ConcurrentMap<java.lang.String, com.netflix.hystrix.metric.consumer.HealthCountsStream> streams;
descriptor: Ljava/util/concurrent/ConcurrentMap;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/concurrent/ConcurrentMap<Ljava/lang/String;Lcom/netflix/hystrix/metric/consumer/HealthCountsStream;>;
private static final int NUM_EVENT_TYPES;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final rx.functions.Func2<com.netflix.hystrix.HystrixCommandMetrics$HealthCounts, long[], com.netflix.hystrix.HystrixCommandMetrics$HealthCounts> healthCheckAccumulator;
descriptor: Lrx/functions/Func2;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Lrx/functions/Func2<Lcom/netflix/hystrix/HystrixCommandMetrics$HealthCounts;[JLcom/netflix/hystrix/HystrixCommandMetrics$HealthCounts;>;
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
putstatic com.netflix.hystrix.metric.consumer.HealthCountsStream.streams:Ljava/util/concurrent/ConcurrentMap;
1: invokestatic com.netflix.hystrix.HystrixEventType.values:()[Lcom/netflix/hystrix/HystrixEventType;
arraylength
putstatic com.netflix.hystrix.metric.consumer.HealthCountsStream.NUM_EVENT_TYPES:I
2: new com.netflix.hystrix.metric.consumer.HealthCountsStream$1
dup
invokespecial com.netflix.hystrix.metric.consumer.HealthCountsStream$1.<init>:()V
putstatic com.netflix.hystrix.metric.consumer.HealthCountsStream.healthCheckAccumulator:Lrx/functions/Func2;
3: return
LocalVariableTable:
Start End Slot Name Signature
public static com.netflix.hystrix.metric.consumer.HealthCountsStream getInstance(com.netflix.hystrix.HystrixCommandKey, com.netflix.hystrix.HystrixCommandProperties);
descriptor: (Lcom/netflix/hystrix/HystrixCommandKey;Lcom/netflix/hystrix/HystrixCommandProperties;)Lcom/netflix/hystrix/metric/consumer/HealthCountsStream;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=4, args_size=2
start local 0 start local 1 0: aload 1
invokevirtual com.netflix.hystrix.HystrixCommandProperties.metricsHealthSnapshotIntervalInMilliseconds:()Lcom/netflix/hystrix/strategy/properties/HystrixProperty;
invokeinterface com.netflix.hystrix.strategy.properties.HystrixProperty.get:()Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
istore 2
start local 2 1: iload 2
ifne 3
2: new java.lang.RuntimeException
dup
ldc "You have set the bucket size to 0ms. Please set a positive number, so that the metric stream can be properly consumed"
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;)V
athrow
3: StackMap locals: int
StackMap stack:
aload 1
invokevirtual com.netflix.hystrix.HystrixCommandProperties.metricsRollingStatisticalWindowInMilliseconds:()Lcom/netflix/hystrix/strategy/properties/HystrixProperty;
invokeinterface com.netflix.hystrix.strategy.properties.HystrixProperty.get:()Ljava/lang/Object;
checkcast java.lang.Integer
invokevirtual java.lang.Integer.intValue:()I
iload 2
idiv
istore 3
start local 3 4: aload 0
iload 3
iload 2
invokestatic com.netflix.hystrix.metric.consumer.HealthCountsStream.getInstance:(Lcom/netflix/hystrix/HystrixCommandKey;II)Lcom/netflix/hystrix/metric/consumer/HealthCountsStream;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 commandKey Lcom/netflix/hystrix/HystrixCommandKey;
0 5 1 properties Lcom/netflix/hystrix/HystrixCommandProperties;
1 5 2 healthCountBucketSizeInMs I
4 5 3 numHealthCountBuckets I
MethodParameters:
Name Flags
commandKey
properties
public static com.netflix.hystrix.metric.consumer.HealthCountsStream getInstance(com.netflix.hystrix.HystrixCommandKey, int, int);
descriptor: (Lcom/netflix/hystrix/HystrixCommandKey;II)Lcom/netflix/hystrix/metric/consumer/HealthCountsStream;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=6, locals=8, args_size=3
start local 0 start local 1 start local 2 0: getstatic com.netflix.hystrix.metric.consumer.HealthCountsStream.streams:Ljava/util/concurrent/ConcurrentMap;
aload 0
invokeinterface com.netflix.hystrix.HystrixCommandKey.name:()Ljava/lang/String;
invokeinterface java.util.concurrent.ConcurrentMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.netflix.hystrix.metric.consumer.HealthCountsStream
astore 3
start local 3 1: aload 3
ifnull 3
2: aload 3
areturn
3: StackMap locals: com.netflix.hystrix.metric.consumer.HealthCountsStream
StackMap stack:
ldc Lcom/netflix/hystrix/metric/consumer/HealthCountsStream;
dup
astore 5
monitorenter
4: getstatic com.netflix.hystrix.metric.consumer.HealthCountsStream.streams:Ljava/util/concurrent/ConcurrentMap;
aload 0
invokeinterface com.netflix.hystrix.HystrixCommandKey.name:()Ljava/lang/String;
invokeinterface java.util.concurrent.ConcurrentMap.get:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast com.netflix.hystrix.metric.consumer.HealthCountsStream
astore 6
start local 6 5: aload 6
ifnonnull 12
6: new com.netflix.hystrix.metric.consumer.HealthCountsStream
dup
aload 0
iload 1
iload 2
7: getstatic com.netflix.hystrix.HystrixCommandMetrics.appendEventToBucket:Lrx/functions/Func2;
8: invokespecial com.netflix.hystrix.metric.consumer.HealthCountsStream.<init>:(Lcom/netflix/hystrix/HystrixCommandKey;IILrx/functions/Func2;)V
astore 7
start local 7 9: getstatic com.netflix.hystrix.metric.consumer.HealthCountsStream.streams:Ljava/util/concurrent/ConcurrentMap;
aload 0
invokeinterface com.netflix.hystrix.HystrixCommandKey.name:()Ljava/lang/String;
aload 7
invokeinterface java.util.concurrent.ConcurrentMap.putIfAbsent:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
10: aload 7
astore 4
end local 7 start local 4 11: goto 13
end local 4 12: StackMap locals: com.netflix.hystrix.HystrixCommandKey int int com.netflix.hystrix.metric.consumer.HealthCountsStream top java.lang.Class com.netflix.hystrix.metric.consumer.HealthCountsStream
StackMap stack:
aload 6
astore 4
end local 6 start local 4 13: StackMap locals: com.netflix.hystrix.HystrixCommandKey int int com.netflix.hystrix.metric.consumer.HealthCountsStream com.netflix.hystrix.metric.consumer.HealthCountsStream java.lang.Class
StackMap stack:
aload 5
monitorexit
14: goto 17
end local 4 StackMap locals: com.netflix.hystrix.HystrixCommandKey int int com.netflix.hystrix.metric.consumer.HealthCountsStream top java.lang.Class
StackMap stack: java.lang.Throwable
15: aload 5
monitorexit
16: athrow
start local 4 17: StackMap locals: com.netflix.hystrix.HystrixCommandKey int int com.netflix.hystrix.metric.consumer.HealthCountsStream com.netflix.hystrix.metric.consumer.HealthCountsStream
StackMap stack:
aload 4
invokevirtual com.netflix.hystrix.metric.consumer.HealthCountsStream.startCachingStreamValuesIfUnstarted:()V
18: aload 4
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 19 0 commandKey Lcom/netflix/hystrix/HystrixCommandKey;
0 19 1 numBuckets I
0 19 2 bucketSizeInMs I
1 19 3 initialStream Lcom/netflix/hystrix/metric/consumer/HealthCountsStream;
11 12 4 healthStream Lcom/netflix/hystrix/metric/consumer/HealthCountsStream;
13 15 4 healthStream Lcom/netflix/hystrix/metric/consumer/HealthCountsStream;
17 19 4 healthStream Lcom/netflix/hystrix/metric/consumer/HealthCountsStream;
5 13 6 existingStream Lcom/netflix/hystrix/metric/consumer/HealthCountsStream;
9 11 7 newStream Lcom/netflix/hystrix/metric/consumer/HealthCountsStream;
Exception table:
from to target type
4 14 15 any
15 16 15 any
MethodParameters:
Name Flags
commandKey
numBuckets
bucketSizeInMs
public static void reset();
descriptor: ()V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=0, args_size=0
0: getstatic com.netflix.hystrix.metric.consumer.HealthCountsStream.streams:Ljava/util/concurrent/ConcurrentMap;
invokeinterface java.util.concurrent.ConcurrentMap.clear:()V
1: return
LocalVariableTable:
Start End Slot Name Signature
public static void removeByKey(com.netflix.hystrix.HystrixCommandKey);
descriptor: (Lcom/netflix/hystrix/HystrixCommandKey;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic com.netflix.hystrix.metric.consumer.HealthCountsStream.streams:Ljava/util/concurrent/ConcurrentMap;
aload 0
invokeinterface com.netflix.hystrix.HystrixCommandKey.name:()Ljava/lang/String;
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 Lcom/netflix/hystrix/HystrixCommandKey;
MethodParameters:
Name Flags
key
private void <init>(com.netflix.hystrix.HystrixCommandKey, int, int, rx.functions.Func2<long[], com.netflix.hystrix.metric.HystrixCommandCompletion, long[]>);
descriptor: (Lcom/netflix/hystrix/HystrixCommandKey;IILrx/functions/Func2;)V
flags: (0x0002) ACC_PRIVATE
Code:
stack=6, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
aload 1
invokestatic com.netflix.hystrix.metric.HystrixCommandCompletionStream.getInstance:(Lcom/netflix/hystrix/HystrixCommandKey;)Lcom/netflix/hystrix/metric/HystrixCommandCompletionStream;
iload 2
iload 3
aload 4
getstatic com.netflix.hystrix.metric.consumer.HealthCountsStream.healthCheckAccumulator:Lrx/functions/Func2;
invokespecial com.netflix.hystrix.metric.consumer.BucketedRollingCounterStream.<init>:(Lcom/netflix/hystrix/metric/HystrixEventStream;IILrx/functions/Func2;Lrx/functions/Func2;)V
1: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lcom/netflix/hystrix/metric/consumer/HealthCountsStream;
0 2 1 commandKey Lcom/netflix/hystrix/HystrixCommandKey;
0 2 2 numBuckets I
0 2 3 bucketSizeInMs I
0 2 4 reduceCommandCompletion Lrx/functions/Func2<[JLcom/netflix/hystrix/metric/HystrixCommandCompletion;[J>;
Signature: (Lcom/netflix/hystrix/HystrixCommandKey;IILrx/functions/Func2<[JLcom/netflix/hystrix/metric/HystrixCommandCompletion;[J>;)V
MethodParameters:
Name Flags
commandKey final
numBuckets final
bucketSizeInMs final
reduceCommandCompletion
long[] getEmptyBucketSummary();
descriptor: ()[J
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: getstatic com.netflix.hystrix.metric.consumer.HealthCountsStream.NUM_EVENT_TYPES:I
newarray 11
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/netflix/hystrix/metric/consumer/HealthCountsStream;
com.netflix.hystrix.HystrixCommandMetrics$HealthCounts getEmptyOutputValue();
descriptor: ()Lcom/netflix/hystrix/HystrixCommandMetrics$HealthCounts;
flags: (0x0000)
Code:
stack=1, locals=1, args_size=1
start local 0 0: invokestatic com.netflix.hystrix.HystrixCommandMetrics$HealthCounts.empty:()Lcom/netflix/hystrix/HystrixCommandMetrics$HealthCounts;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lcom/netflix/hystrix/metric/consumer/HealthCountsStream;
java.lang.Object getEmptyOutputValue();
descriptor: ()Ljava/lang/Object;
flags: (0x1040) ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual com.netflix.hystrix.metric.consumer.HealthCountsStream.getEmptyOutputValue:()Lcom/netflix/hystrix/HystrixCommandMetrics$HealthCounts;
areturn
LocalVariableTable:
Start End Slot Name Signature
java.lang.Object getEmptyBucketSummary();
descriptor: ()Ljava/lang/Object;
flags: (0x1040) ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual com.netflix.hystrix.metric.consumer.HealthCountsStream.getEmptyBucketSummary:()[J
areturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Lcom/netflix/hystrix/metric/consumer/BucketedRollingCounterStream<Lcom/netflix/hystrix/metric/HystrixCommandCompletion;[JLcom/netflix/hystrix/HystrixCommandMetrics$HealthCounts;>;
SourceFile: "HealthCountsStream.java"
NestMembers:
com.netflix.hystrix.metric.consumer.HealthCountsStream$1
InnerClasses:
public HealthCounts = com.netflix.hystrix.HystrixCommandMetrics$HealthCounts of com.netflix.hystrix.HystrixCommandMetrics
com.netflix.hystrix.metric.consumer.HealthCountsStream$1