Example #1
0
 public RollingCommandEventCounterStreamTest(ITestOutputHelper output)
     : base()
 {
     RollingCommandEventCounterStream.Reset();
     HystrixCommandCompletionStream.Reset();
     this.output = output;
 }
Example #2
0
 public RollingCommandLatencyDistributionStreamTest(ITestOutputHelper output)
     : base()
 {
     this.output = output;
     RollingCommandLatencyDistributionStream.Reset();
     HystrixCommandCompletionStream.Reset();
 }
Example #3
0
        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);
        }
Example #5
0
 private RollingCommandLatencyDistributionStream(IHystrixCommandKey commandKey, int numPercentileBuckets, int percentileBucketSizeInMs)
     : base(HystrixCommandCompletionStream.GetInstance(commandKey), numPercentileBuckets, percentileBucketSizeInMs, AddValuesToBucket)
 {
 }
Example #6
0
 private HealthCountsStream(IHystrixCommandKey commandKey, int numBuckets, int bucketSizeInMs, Func <long[], HystrixCommandCompletion, long[]> reduceCommandCompletion)
     : base(HystrixCommandCompletionStream.GetInstance(commandKey), numBuckets, bucketSizeInMs, reduceCommandCompletion, HealthCheckAccumulator)
 {
 }
Example #7
0
 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)
 {
 }