Interface ExceptionMapperMXBean
-
public interface ExceptionMapperMXBeanMXBean interface of theexception mapperstatistics.- Author:
- Miroslav Fuksa
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<String,Long>getExceptionMapperCount()Get the statistics of execution of exception mappers.longgetSuccessfulMappings()Get count of all successful exception mappings.longgetTotalMappings()Get count of exception mappings that were performed on exceptions.longgetUnsuccessfulMappings()Get count of all unsuccessful exception mappings.
-
-
-
Method Detail
-
getExceptionMapperCount
Map<String,Long> getExceptionMapperCount()
Get the statistics of execution of exception mappers.- Returns:
- Map where keys are string class names of
exception mappersand values are counts of execution of these mappers.
-
getSuccessfulMappings
long getSuccessfulMappings()
Get count of all successful exception mappings. Successful exception mapping occurs when anyexception mapperreturns an valid response (even if response contains non-successful response status code).- Returns:
- Count of successfully mapped exception.
-
getUnsuccessfulMappings
long getUnsuccessfulMappings()
Get count of all unsuccessful exception mappings. Unsuccessful exception mapping occurs when any exception mapping process does not produce an valid response. The reason can be that theexception mapperis not found, or is found but throws exception.- Returns:
- Count of unmapped exception.
-
getTotalMappings
long getTotalMappings()
Get count of exception mappings that were performed on exceptions.- Returns:
- Count of all exception being mapped in the runtime.
-
-