public class HystrixCodaHaleMetricsPublisherCommand
extends java.lang.Object
implements com.netflix.hystrix.strategy.metrics.HystrixMetricsPublisherCommand
HystrixMetricsPublisherCommand using Coda Hale Metrics (https://github.com/codahale/metrics)| Constructor and Description |
|---|
HystrixCodaHaleMetricsPublisherCommand(com.netflix.hystrix.HystrixCommandKey commandKey,
com.netflix.hystrix.HystrixCommandGroupKey commandGroupKey,
com.netflix.hystrix.HystrixCommandMetrics metrics,
com.netflix.hystrix.HystrixCircuitBreaker circuitBreaker,
com.netflix.hystrix.HystrixCommandProperties properties,
com.codahale.metrics.MetricRegistry metricRegistry) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
createCumulativeCountForEvent(java.lang.String name,
com.netflix.hystrix.util.HystrixRollingNumberEvent event) |
protected java.lang.String |
createMetricName(java.lang.String name) |
protected void |
createRollingCountForEvent(java.lang.String name,
com.netflix.hystrix.util.HystrixRollingNumberEvent event) |
void |
initialize()
An implementation note.
|
protected void |
safelyCreateCumulativeCountForEvent(java.lang.String name,
rx.functions.Func0<com.netflix.hystrix.util.HystrixRollingNumberEvent> eventThunk) |
protected void |
safelyCreateRollingCountForEvent(java.lang.String name,
rx.functions.Func0<com.netflix.hystrix.util.HystrixRollingNumberEvent> eventThunk) |
public HystrixCodaHaleMetricsPublisherCommand(com.netflix.hystrix.HystrixCommandKey commandKey,
com.netflix.hystrix.HystrixCommandGroupKey commandGroupKey,
com.netflix.hystrix.HystrixCommandMetrics metrics,
com.netflix.hystrix.HystrixCircuitBreaker circuitBreaker,
com.netflix.hystrix.HystrixCommandProperties properties,
com.codahale.metrics.MetricRegistry metricRegistry)
public void initialize()
initialize in interface com.netflix.hystrix.strategy.metrics.HystrixMetricsPublisherCommandprotected java.lang.String createMetricName(java.lang.String name)
protected void createCumulativeCountForEvent(java.lang.String name,
com.netflix.hystrix.util.HystrixRollingNumberEvent event)
protected void safelyCreateCumulativeCountForEvent(java.lang.String name,
rx.functions.Func0<com.netflix.hystrix.util.HystrixRollingNumberEvent> eventThunk)
protected void createRollingCountForEvent(java.lang.String name,
com.netflix.hystrix.util.HystrixRollingNumberEvent event)
protected void safelyCreateRollingCountForEvent(java.lang.String name,
rx.functions.Func0<com.netflix.hystrix.util.HystrixRollingNumberEvent> eventThunk)