zoukankan      html  css  js  c++  java
  • hystrix源码小贴士之Servo Publisher

    HystrixServoMetricsPublisher

      继承HystrixMetricsPublisher,创建HystrixServoMetricsPublisherCommand、HystrixServoMetricsPublisherThreadPool、HystrixServoMetricsPublisherCollapser。

        @Override
        public HystrixMetricsPublisherCommand getMetricsPublisherForCommand(HystrixCommandKey commandKey, HystrixCommandGroupKey commandGroupKey, HystrixCommandMetrics metrics, HystrixCircuitBreaker circuitBreaker, HystrixCommandProperties properties) {
            return new HystrixServoMetricsPublisherCommand(commandKey, commandGroupKey, metrics, circuitBreaker, properties);
        }
    
        @Override
        public HystrixMetricsPublisherThreadPool getMetricsPublisherForThreadPool(HystrixThreadPoolKey threadPoolKey, HystrixThreadPoolMetrics metrics, HystrixThreadPoolProperties properties) {
            return new HystrixServoMetricsPublisherThreadPool(threadPoolKey, metrics, properties);
        }
    
        @Override
        public HystrixMetricsPublisherCollapser getMetricsPublisherForCollapser(HystrixCollapserKey collapserKey, HystrixCollapserMetrics metrics, HystrixCollapserProperties properties) {
            return new HystrixServoMetricsPublisherCollapser(collapserKey, metrics, properties);
        }

    HystrixServoMetricsPublisherCommand

      从HystrixCommandMetrics获取数据,然后设置到DefaultMonitorRegistry中。

    HystrixServoMetricsPublisherThreadPool

       从HystrixThreadPoolMetrics获取数据,然后设置到DefaultMonitorRegistry中。

    HystrixServoMetricsPublisherCollapser

      从HystrixCollapserMetrics获取数据,然后设置到DefaultMonitorRegistry中。 

  • 相关阅读:
    寒假刷题之2——Decoder
    寒假刷题之5——竹简文
    一位ACMer的心得,,,
    OD使用教程22 调试篇22
    OD使用教程22 调试篇22
    递归和分治思想4|八皇后问题 数据结构和算法34
    递归和分治思想4|八皇后问题 数据结构和算法34
    字符串 数据结构和算法35
    KMP算法(养成篇) 数据结构和算法36
    OD使用教程23 调试篇23
  • 原文地址:https://www.cnblogs.com/zhangwanhua/p/8192215.html
Copyright © 2011-2022 走看看