public RollingCommandEventCounterStreamTest(ITestOutputHelper output) : base() { RollingCommandEventCounterStream.Reset(); HystrixCommandCompletionStream.Reset(); this.output = output; }
public RollingCommandLatencyDistributionStreamTest(ITestOutputHelper output) : base() { this.output = output; RollingCommandLatencyDistributionStream.Reset(); HystrixCommandCompletionStream.Reset(); }
public static void Reset() { foreach (var stream in Streams.Values) { stream.Unsubscribe(); } HystrixCommandCompletionStream.Reset(); Streams.Clear(); }
public HystrixThreadEventStreamTest(ITestOutputHelper output) : base() { this.output = output; commandKey = HystrixCommandKeyDefault.AsKey("CMD-ThreadStream"); threadPoolKey = HystrixThreadPoolKeyDefault.AsKey("TP-ThreadStream"); writeToStream = HystrixThreadEventStream.GetInstance(); readCommandStream = HystrixCommandCompletionStream.GetInstance(commandKey); readThreadPoolStream = HystrixThreadPoolCompletionStream.GetInstance(threadPoolKey); }
private RollingCommandLatencyDistributionStream(IHystrixCommandKey commandKey, int numPercentileBuckets, int percentileBucketSizeInMs) : base(HystrixCommandCompletionStream.GetInstance(commandKey), numPercentileBuckets, percentileBucketSizeInMs, AddValuesToBucket) { }
private HealthCountsStream(IHystrixCommandKey commandKey, int numBuckets, int bucketSizeInMs, Func <long[], HystrixCommandCompletion, long[]> reduceCommandCompletion) : base(HystrixCommandCompletionStream.GetInstance(commandKey), numBuckets, bucketSizeInMs, reduceCommandCompletion, HealthCheckAccumulator) { }
private RollingCommandEventCounterStream(IHystrixCommandKey commandKey, int numCounterBuckets, int counterBucketSizeInMs, Func <long[], HystrixCommandCompletion, long[]> reduceCommandCompletion, Func <long[], long[], long[]> reduceBucket) : base(HystrixCommandCompletionStream.GetInstance(commandKey), numCounterBuckets, counterBucketSizeInMs, reduceCommandCompletion, reduceBucket) { }