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