|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.glassfish.jersey.server.internal.monitoring.jmx.ExceptionMapperMXBeanImpl
public class ExceptionMapperMXBeanImpl
MXBean implementing a ExceptionMapperMXBean mxbean interface.
| Constructor Summary | |
|---|---|
ExceptionMapperMXBeanImpl(ExceptionMapperStatistics mapperStatistics,
MBeanExposer mBeanExposer,
String parentName)
Create a new MXBean and register it into mbean server using mBeanExposer. |
|
| Method Summary | |
|---|---|
Map<String,Long> |
getExceptionMapperCount()
Get the statistics of execution of exception mappers. |
long |
getSuccessfulMappings()
Get count of all successful exception mappings. |
long |
getTotalMappings()
Get count of exception mappings that were performed on exceptions. |
long |
getUnsuccessfulMappings()
Get count of all unsuccessful exception mappings. |
void |
updateExceptionMapperStatistics(ExceptionMapperStatistics mapperStatistics)
Update the MXBean with new statistics. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExceptionMapperMXBeanImpl(ExceptionMapperStatistics mapperStatistics,
MBeanExposer mBeanExposer,
String parentName)
mBeanExposer.
mapperStatistics - Exception mapper statistics that should be exposed.mBeanExposer - Mbean exposer.parentName - Object name prefix of the parent mbeans.| Method Detail |
|---|
public void updateExceptionMapperStatistics(ExceptionMapperStatistics mapperStatistics)
mapperStatistics - New exception mapper statistics.public Map<String,Long> getExceptionMapperCount()
ExceptionMapperMXBean
getExceptionMapperCount in interface ExceptionMapperMXBeanexception mappers
and values are counts of execution of these mappers.public long getSuccessfulMappings()
ExceptionMapperMXBeanexception mapper returns an valid response
(even if response contains non-successful response status code).
getSuccessfulMappings in interface ExceptionMapperMXBeanpublic long getUnsuccessfulMappings()
ExceptionMapperMXBeanexception mapper is not found, or is found but throws
exception.
getUnsuccessfulMappings in interface ExceptionMapperMXBeanpublic long getTotalMappings()
ExceptionMapperMXBean
getTotalMappings in interface ExceptionMapperMXBean
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||