com.netflix.hystrix.contrib.servopublisher
Class HystrixServoMetricsPublisherThreadPool

java.lang.Object
  extended by com.netflix.hystrix.contrib.servopublisher.HystrixServoMetricsPublisherThreadPool
All Implemented Interfaces:
com.netflix.hystrix.strategy.metrics.HystrixMetricsPublisherThreadPool

public class HystrixServoMetricsPublisherThreadPool
extends java.lang.Object
implements com.netflix.hystrix.strategy.metrics.HystrixMetricsPublisherThreadPool

Implementation of HystrixMetricsPublisherThreadPool using Servo (https://github.com/Netflix/servo)


Constructor Summary
HystrixServoMetricsPublisherThreadPool(com.netflix.hystrix.HystrixThreadPoolKey threadPoolKey, com.netflix.hystrix.HystrixThreadPoolMetrics metrics, com.netflix.hystrix.HystrixThreadPoolProperties properties)
           
 
Method Summary
protected  com.netflix.servo.monitor.Monitor<?> getCumulativeCountForEvent(java.lang.String name, com.netflix.hystrix.HystrixCommandMetrics metrics, com.netflix.hystrix.util.HystrixRollingNumberEvent event)
           
protected  com.netflix.servo.monitor.Monitor<?> getRollingCountForEvent(java.lang.String name, com.netflix.hystrix.HystrixCommandMetrics metrics, com.netflix.hystrix.util.HystrixRollingNumberEvent event)
           
protected  com.netflix.servo.tag.Tag getServoInstanceTag()
           
protected  com.netflix.servo.tag.Tag getServoTypeTag()
           
 void initialize()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HystrixServoMetricsPublisherThreadPool

public HystrixServoMetricsPublisherThreadPool(com.netflix.hystrix.HystrixThreadPoolKey threadPoolKey,
                                              com.netflix.hystrix.HystrixThreadPoolMetrics metrics,
                                              com.netflix.hystrix.HystrixThreadPoolProperties properties)
Method Detail

initialize

public void initialize()
Specified by:
initialize in interface com.netflix.hystrix.strategy.metrics.HystrixMetricsPublisherThreadPool

getServoTypeTag

protected com.netflix.servo.tag.Tag getServoTypeTag()

getServoInstanceTag

protected com.netflix.servo.tag.Tag getServoInstanceTag()

getCumulativeCountForEvent

protected com.netflix.servo.monitor.Monitor<?> getCumulativeCountForEvent(java.lang.String name,
                                                                          com.netflix.hystrix.HystrixCommandMetrics metrics,
                                                                          com.netflix.hystrix.util.HystrixRollingNumberEvent event)

getRollingCountForEvent

protected com.netflix.servo.monitor.Monitor<?> getRollingCountForEvent(java.lang.String name,
                                                                       com.netflix.hystrix.HystrixCommandMetrics metrics,
                                                                       com.netflix.hystrix.util.HystrixRollingNumberEvent event)