public interface ExceptionMapperStatistics
Monitoring statistics of
exception mapperexecutions. Statistics retrieved from Jersey runtime might be mutable and thanks to it might provide inconsistent data as not all statistics are updated in the same time. To retrieve the immutable and consistent statistics data the method
snapshot()should be used.
- Miroslav Fuksa
- See Also:
Method SummaryModifier and TypeMethodDescriptionGet the count of exception mapper executions.
longGet count of all successful exception mappings.
longGet count of exception mappings that were performed on exceptions.
longGet count of all unsuccessful exception mappings.
snapshot()Deprecated.implementing class is immutable hence snapshot creation is not needed anymore
getExceptionMapperExecutionsGet the count of exception mapper executions. The returned map contains
exception mappersand corresponding execution count as values. One execution of exception mapper is one call of
- Map with exception mappers as keys and execution count as values.
getSuccessfulMappingslong getSuccessfulMappings()Get count of all successful exception mappings. Successful exception mapping occurs when any
exception mapperreturns an valid response (even if response contains non-successful response status code).
- Count of successfully mapped exception.
getUnsuccessfulMappingslong 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 the
exception mapperis not found, or is found but throws exception.
- Count of unmapped exception.
getTotalMappingslong getTotalMappings()Get count of exception mappings that were performed on exceptions.
- Count of all exception being mapped in the runtime.
snapshotDeprecated.implementing class is immutable hence snapshot creation is not needed anymoreGet the immutable consistent snapshot of the monitoring statistics. Working with snapshots might have negative performance impact as snapshot must be created but ensures consistency of data over time. However, the usage of snapshot is encouraged to avoid working with inconsistent data. Not all statistics must be updated in the same time on mutable version of statistics.
- Snapshot of exception mapper statistics.