Package com.avanza.astrix.ft.hystrix
Class BeanFaultToleranceMetrics
- java.lang.Object
-
- com.avanza.astrix.ft.hystrix.BeanFaultToleranceMetrics
-
- All Implemented Interfaces:
BeanFaultToleranceMetricsMBean
public class BeanFaultToleranceMetrics extends Object implements BeanFaultToleranceMetricsMBean
-
-
Constructor Summary
Constructors Constructor Description BeanFaultToleranceMetrics(com.netflix.hystrix.HystrixCommandKey key, com.netflix.hystrix.HystrixThreadPoolKey poolKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCurrentConcurrentExecutionCount()longgetErrorCount()The number of failed invocations to a given service bean, i.e the number of times the fault tolerance layer has aborted the invocation (sempahore rejected, timeout, etc)intgetErrorPercentage()intgetIsCircuitBreakerOpen()intgetLatencyExecute100()intgetLatencyExecute50()intgetLatencyExecute90()intgetLatencyExecute99()intgetPoolCurrentActiveCount()intgetPoolCurrentQueueCount()intgetPoolCurrentSize()intgetPoolQueueSizeRejectionThreshold()intgetPoolRollingMaxActiveThreads()longgetRollingMaxConcurrentExecutions()longgetSemaphoreRejectedCount()longgetShortCircuitedCount()longgetSuccessCount()The number of successful invocations of a given service bean.longgetThreadPoolRejectedCount()longgetTimeoutCount()
-
-
-
Method Detail
-
getErrorCount
public long getErrorCount()
Description copied from interface:BeanFaultToleranceMetricsMBeanThe number of failed invocations to a given service bean, i.e the number of times the fault tolerance layer has aborted the invocation (sempahore rejected, timeout, etc)- Specified by:
getErrorCountin interfaceBeanFaultToleranceMetricsMBean- Returns:
-
getErrorPercentage
public int getErrorPercentage()
- Specified by:
getErrorPercentagein interfaceBeanFaultToleranceMetricsMBean
-
getCurrentConcurrentExecutionCount
public int getCurrentConcurrentExecutionCount()
- Specified by:
getCurrentConcurrentExecutionCountin interfaceBeanFaultToleranceMetricsMBean
-
getRollingMaxConcurrentExecutions
public long getRollingMaxConcurrentExecutions()
- Specified by:
getRollingMaxConcurrentExecutionsin interfaceBeanFaultToleranceMetricsMBean
-
getSuccessCount
public long getSuccessCount()
Description copied from interface:BeanFaultToleranceMetricsMBeanThe number of successful invocations of a given service bean.- Specified by:
getSuccessCountin interfaceBeanFaultToleranceMetricsMBean- Returns:
-
getSemaphoreRejectedCount
public long getSemaphoreRejectedCount()
- Specified by:
getSemaphoreRejectedCountin interfaceBeanFaultToleranceMetricsMBean
-
getShortCircuitedCount
public long getShortCircuitedCount()
- Specified by:
getShortCircuitedCountin interfaceBeanFaultToleranceMetricsMBean
-
getTimeoutCount
public long getTimeoutCount()
- Specified by:
getTimeoutCountin interfaceBeanFaultToleranceMetricsMBean
-
getThreadPoolRejectedCount
public long getThreadPoolRejectedCount()
- Specified by:
getThreadPoolRejectedCountin interfaceBeanFaultToleranceMetricsMBean
-
getPoolCurrentActiveCount
public int getPoolCurrentActiveCount()
- Specified by:
getPoolCurrentActiveCountin interfaceBeanFaultToleranceMetricsMBean
-
getPoolCurrentQueueCount
public int getPoolCurrentQueueCount()
- Specified by:
getPoolCurrentQueueCountin interfaceBeanFaultToleranceMetricsMBean
-
getPoolRollingMaxActiveThreads
public int getPoolRollingMaxActiveThreads()
- Specified by:
getPoolRollingMaxActiveThreadsin interfaceBeanFaultToleranceMetricsMBean
-
getIsCircuitBreakerOpen
public int getIsCircuitBreakerOpen()
- Specified by:
getIsCircuitBreakerOpenin interfaceBeanFaultToleranceMetricsMBean
-
getLatencyExecute50
public int getLatencyExecute50()
- Specified by:
getLatencyExecute50in interfaceBeanFaultToleranceMetricsMBean
-
getLatencyExecute90
public int getLatencyExecute90()
- Specified by:
getLatencyExecute90in interfaceBeanFaultToleranceMetricsMBean
-
getLatencyExecute99
public int getLatencyExecute99()
- Specified by:
getLatencyExecute99in interfaceBeanFaultToleranceMetricsMBean
-
getLatencyExecute100
public int getLatencyExecute100()
- Specified by:
getLatencyExecute100in interfaceBeanFaultToleranceMetricsMBean
-
getPoolCurrentSize
public int getPoolCurrentSize()
- Specified by:
getPoolCurrentSizein interfaceBeanFaultToleranceMetricsMBean
-
getPoolQueueSizeRejectionThreshold
public int getPoolQueueSizeRejectionThreshold()
- Specified by:
getPoolQueueSizeRejectionThresholdin interfaceBeanFaultToleranceMetricsMBean
-
-