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中。 

  • 相关阅读:
    sql 行转列
    wm_concat函数 用法
    PL/SQL如何调试Oracle存储过程
    Oracle&SQLServer中实现跨库查询
    Oracle 中 decode 函数用法
    Oracle中给用户赋予debug权限
    Oracle中的NVL函数
    oracle 触发器 pragma autonomous_transaction
    ORACLE中%TYPE和%ROWTYPE的使用
    A complete example using RAISE_APPLICATION_ERROR : raise_application_error
  • 原文地址:https://www.cnblogs.com/zhangwanhua/p/8192215.html
Copyright © 2011-2022 走看看