Interface ExceptionMapperMXBean
- All Known Implementing Classes:
ExceptionMapperMXBeanImpl
public interface ExceptionMapperMXBean
MXBean interface of the
exception mapper statistics.- Author:
- Miroslav Fuksa
-
Method Summary
Modifier and TypeMethodDescriptionGet the statistics of execution of exception mappers.longGet count of all successful exception mappings.longGet count of exception mappings that were performed on exceptions.longGet count of all unsuccessful exception mappings.
-
Method Details
-
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.
-