public class LoggingMethodCallAnnotationMBeanExporter
extends org.springframework.jmx.export.annotation.AnnotationMBeanExporter
MBeanExporter to add logging when a remote call failed. Else, the exception is forwarded to the
client, which may not render the exception correctly (e.g. the JConsole does not show the whole stacktrace)| Modifier and Type | Field and Description |
|---|---|
protected AtomicLong |
nbErrors |
| Constructor and Description |
|---|
LoggingMethodCallAnnotationMBeanExporter() |
| Modifier and Type | Method and Description |
|---|---|
protected ModelMBean |
createModelMBean() |
long |
getNbErrors() |
protected void |
onErrorInRemoteCall(Throwable e) |
setBeanFactory, setDefaultDomainadaptMBeanIfPossible, addExcludedBean, afterPropertiesSet, afterSingletonsInstantiated, createAndConfigureMBean, destroy, getObjectName, isBeanDefinitionLazyInit, isMBean, onRegister, onUnregister, registerBeanNameOrInstance, registerBeans, registerManagedResource, registerManagedResource, setAllowEagerInit, setAssembler, setAutodetect, setAutodetectMode, setAutodetectModeName, setBeanClassLoader, setBeans, setEnsureUniqueRuntimeObjectNames, setExcludedBeans, setExposeManagedResourceClassLoader, setListeners, setNamingStrategy, setNotificationListenerMappings, setNotificationListeners, unregisterManagedResourceprotected final AtomicLong nbErrors
public LoggingMethodCallAnnotationMBeanExporter()
public long getNbErrors()
protected ModelMBean createModelMBean() throws MBeanException
createModelMBean in class org.springframework.jmx.export.MBeanExporterMBeanExceptionprotected void onErrorInRemoteCall(Throwable e)
Copyright © 2014–2017 Pivotal Software, Inc.. All rights reserved.